Requesting for current command positions and filling them into V.A.ABS[ ]

#CHANNEL INIT [CMDPOS] 
Requesting for current command positions and filling them into V.A.ABS[ ] 1:

From version V2.10.1504 the command #CHANNEL INIT [CMDPOS] replaces the command #SET DEC LR SOLL. For compatibility reasons the command is furthermore available, but it should not be used in new NC programs.

The NC program interpreter requests the current command positions of all path axes from the interpolator, filles the data into the NC program interpreter operating data and initializes the NC-channel with these positions. By programming the variable (V.A.ABS. ...) the current command positions within the operating data can be accessed. By this command possibly stored manual mode offsets in the interpolator are deleted. The values entered in the variable "V.A.SOFFS. ..." are not updated by this job (see chapter 13.1).

This command must be exclusive in the NC block.

Programming example

%channel_init_cmd 
X100
G201
..... Moving in manual mode
G202
#CHANNEL INIT [CMDPOS]
#MSG ["X command pos:%F",V.A.ABS.X]
.....