The meaning is -
Before starting work, I do a home search, put the spindle in the working zero position and zero all the axes.
I get such a coordinate offset -150.563, -59.190, -73.740
And I remember these values in variables.
Then I run the program.
When I need to abort the program, I send the "!" command, then delay 500 milliseconds to stop the machine, and then send a soft reset command (0x18).
Since after the reset, the offset of the working coordinates is lost, I restore them from the variables. After that I see that the values are wrong: -145.105, -53.930, -73.740
Because of this, the working zero is lost and you need to do a home search again.
Why is this happening?
How to do it right?
The meaning is - Before starting work, I do a home search, put the spindle in the working zero position and zero all the axes. I get such a coordinate offset -150.563, -59.190, -73.740 And I remember these values in variables. Then I run the program. When I need to abort the program, I send the "!" command, then delay 500 milliseconds to stop the machine, and then send a soft reset command (0x18). Since after the reset, the offset of the working coordinates is lost, I restore them from the variables. After that I see that the values are wrong: -145.105, -53.930, -73.740 Because of this, the working zero is lost and you need to do a home search again. Why is this happening? How to do it right?