Hallo Norbert,

In fact I already tried this, and more, I tried to start the program with the g54.0 already 1 by starting the program with the machine over the switch.

About Macro B, I have it, at least par 9933#1=1 and all macro functions works fine.

I worked around the problem by using maths and storing the last requested ram bar position on a variable #500 (that will be kept even when the control is down) in this way I'll everytime know where the switch is except if the machine coordinate system changes, that is not usual once I have absolute pulse coders at the machine axes. It works well, but I'm still intricate about why #1000 doesn't became 1.

Thank you,
Eduardo