#include vars.h main() { parameter=15; //OFF command=112+3; //motor output #3 message=PLCCMD_SET_CNC_VAR; timer=2;do{timer--;}while(timer>0); parameter=2+16; //Attach to Z-axis, "16" is axis inversion command=112+2; //motor output #2 message=PLCCMD_SET_CNC_VAR; timer=2;do{timer--;}while(timer>0); parameter=15; //OFF command=112+5; //motor output #5 message=PLCCMD_SET_CNC_VAR; timer=2;do{timer--;}while(timer>0); parameter=5; //Attach to C-axis command=112+4; //motor output #4 message=PLCCMD_SET_CNC_VAR; timer=2;do{timer--;}while(timer>0); exit(99); };