I am just starting to write a macro which will be used by others than myself. It uses G52 to shift my X zero, as I see many here use. How do you handle operator confusion about where zero is? Like, say, if the operator hits reset while the program is running. Zero could be set somewhere with no clue to the operator as to what is up. What cancels G52 other than G52 X0? Are all offsets effected, or just the one active when the G52 is used? I was thinking of putting a note in the documentation saying, "If you stop the program for any reason, MDI "G52 X0"".
In this macro, I am using G59 to enable the operator to shift X and Y. It engraves lettering and the operator can then shift for a new line, etc. I'm moving G55 to G59 with or without adding a local variable as in...
IF[#24NE#0]THEN#2506=[#2502+#24]
IF[#24EQ#0]THEN#2506=#2502
IF[#25NE#0]THEN#2606=[#2602+#25]
IF[#25EQ#0]THEN#2606=#2602
IF[#26NE#0]THEN#2706=[#2702+#26]
IF[#26EQ#0]THEN#2706=#2702
Would a better way to shift X zero be to use something like this? As in...
#2506=[#2506+.625]
instead of
G52 X.625
to avoid operator confusion about where X is.