Use the Program-Origin Z Position
On an Acramatic 2100, use the current-program-position command when a macro calculation needs the Z value relative to the program origin. This reads the controller’s position directly instead of maintaining a separate Z variable through a DFS subprogram.
Command Syntax
[$CURPOS_PGM(Z)]
The general syntax is [$CURPOS_PGM(axis_letter)]. Specify Z as the axis letter to retrieve the current program-referenced Z position.
Apply and Verify the Value
- Insert
[$CURPOS_PGM(Z)]where the macro calculation requires the Z position. - Run the program under controlled conditions and confirm that the returned value follows Z motion relative to the selected program origin.
- Use the returned position in the radius or profile calculation. Do not increment a duplicate Z variable unless the calculation specifically requires an independently modeled position.
The evidence does not define the returned value’s units, precision, or behavior after an origin change. Verify those details on the machine before using the value for profile generation.
FAQ
How do I read the current Z position on an Acramatic 2100?
Use [$CURPOS_PGM(Z)] to retrieve the current Z position referenced to the program origin.
What does $CURPOS_PGM reference on an Acramatic 2100?
It returns the selected axis position relative to the program origin. Supply the required axis letter inside the parentheses.
Should I increment a separate Z variable in a DFS subprogram?
Not when the calculation needs the controller’s actual program-referenced Z position. Read [$CURPOS_PGM(Z)] directly and verify its value during controlled Z motion.