Messing around with some swap axis macros and stuff. I'm getting it to do what i want when running it in the editor, but when calling the m code in mdi or adding to g code, it won't work. I've tried adding while wend loops before and after, also a sleep, tried saving as multiple m codes, not sure why it won't run. My A axis ref home works fine in all cases, in editor, in mdi, in code. My swap axis only works in editor. It is written as
SwapAxis(6,3) it swaps the A axis and spindle pin out. Like I said, works in editor, not in code or mdi. What am I doing wrong?