Request current actual positions of axes and file to variables or parameters (#GET ACTPOS)

Release Note

release_note

This command is available as of CNC Build V2.11.2022.05 onwards.

Syntax:

#GET ACTPOS [ (V.S.<string> | V.P. <string> | V.L.<string> | P..)= <axis_name>

                           { (,V.S. <string> | V.P. <string> | V.L.<string> | P..)= <axis_name> } ]

The NC program interpreter requests the interpolator for the current actual positions of the specified path axes and files them to the specified self-defined variables (V.S./ V.P./ V.L.) or parameters (P..). There is no implicit position initialisation of the NC channel. Any manual mode offsets of the selected axes in the interpolator are not deleted. The variables V.A.ABS and V.A.MANUAL_OFFSETS are not updated.

Programing Example

prg_example

#GET ACTPOS [ … ]

.....

#GET ACTPOS [P1 = X, P2 = Y, V.P.POS1 = Z, V.P.POS2 = C]

G01 XP1 YP2

G01 ZV.P.POS1 CV.P.POS2

.....