Mirror axis position
Hello everybody I am trying to restore the axis machine position after switch off the mirror function on does not correct position.
I am doing a macro to check the position of the machine after switch off the mirror function to check that everything has done correctly. to avoid switch off the machine for each time that the mirror function is not good turn off on the right position
Now I know when the machine has a problem with the mirror position but always do I have to turn off the machine to restore the axis position?
Is there any way to solve this problem by macro?
Any idea would be very appreciate
This is the macro that I am using to check the machine position but is not complete, lack the last part to restore the correct machine axis position.
G91G30Z0
G91G30X0Y0
#110=#3007
IF[#110EQ1.0]GOTO10
IF[#110EQ2.0]GOTO10
IF[#110EQ3.0]GOTO10
IF[#110EQ8.0]GOTO10
IF[#110EQ0.0]GOTO20
N10
G91G30Z0
G28B0
G28X0Y0M23
N20
G90G00B0
G91G30Z0
G91G30X0Y0
#111=#5021
#112=#5024
#115=#5041
#116=#5044
#111=ROUND[#111*10]/10
#112=ROUND[#112*10]/10
#115=ROUND[#115*10]/10
#116=ROUND[#116*10]/10
IF[#111NE#115]GOTO30
IF[#112NE#116]GOTO30
M99
N30
#120=1.
#3006=1(WARNING)
IF[#120EQ1.]GOTO30
M99
Thanks