Page 1 of 1

Reset CV settings

PostPosted: Thu Feb 18, 2021 9:41 am
by hmnijp
Hey! I am testing a modified postprocessor for dynamically changing the parameters of the CV - G64 H L P Q using data from the CAM: rough / finish work, stock to leave size, tolerance, or manual selection of accuracy/speed for different materials.
This is used to speed up work in places where precision is not needed.

Everything works well! :D but there is one problem...

When you change the parameters of the G64 HLPQ from the g-code, there is no way afterwards to reset them to default (those that are written in the general setting), since the g-code does not know what was installed earlier. Also, you cannot find out the default settings without reboot if you don't remember them.

Yes, the settings are automatically reset to default when you restart uccnc, or they can be written to the PP and changed to default at the end of the g-code, or you can prepare a custom macro for reset, but this deprives you universality...

I wanted to propose an idea - maybe reset the CV settings to default when using G64 without all parameters?

Code: Select all
Example G-code..

(ManualNC test)
G90 G94 G40 G49 G17

(ManualNC test - roughing)
G64 H0.5 Q1 (parameters H and Q are overridden here)
G54
G0 X-0.6 Y22.4
Z5.
G1 Z1. F1500
Z-5.4
G1 Y20.6
G3 X0. Y20. I0.6 J0.
G1 X15
.
.
.
(ManualNC test - finishing)
G64 (default output from PP, without overridden parameters - all reset to default)
G0 X-0.6 Y20.4
Z5.
G1 Z1. F500
Z-5.4
G1 Y18.6
G3 X0. Y18. I0.6 J0.
G1 X15.
.
.
.
M30