I am trying to make a macro program with some uses of the variables for a 840D siemens Pama horizontal machines. I defined the variable at the beginning of the main program as blow:
DEF INT COUNTER=0
DEF REAL TURN
The machines generated alarms for those lines.
Does anyone out there have any idea what wrong with those?
thank you in advanced.
maybe TURN variable is some kind of system variable
Try to use "_TURN" instead of "TURN"
Production: NX 12.0.1Development: C#, Tcl/Tk, CSE
actually I used
DEF INT NTURNS ( stand for number of turns)
I tried couple others words for variable, but it didnt work.