Requesting current command positions and filing them to "V.A.ABS[ ]”

Release Note

release_note

As of Build V2.10.1504 the command #CHANNEL INIT [CMDPOS] replaces the command #SET DEC LR SOLL. For compatibility reasons, this command is still available but it isrecommended not to use it in new NC programs.

#CHANNEL INIT [CMDPOS]

The NC program interpreter requests the interpolator for the current command positions of all path axes assigned, files them to the working data and initialises the NC channel with these positions. The current command positions in the working data can then be accessed by programming the variable V.A.ABS (see also Section Axis-specific variables (V.A.)). Any stored manual mode offsets in the interpolator are then deleted automatically. The axis positions correspond to those for zero offset. The values stored in the variable V.A.MANUAL_OFFSETS (see also Section Axis-specific variables (V.A.)) are not updated.

Programing Example

prg_example

#CHANNEL INIT [CMDPOS]

%channel_init_cmd

X100

G201

..... Moving in manual mode

G202

#CHANNEL INIT [CMDPOS]

#MSG ["X command pos:%F",V.A.ABS.X]

.....