Access to the current zero offset
The currently active NPV in the decoder is accessed via the V.G.NP_AKT.V[i] variable. The operator need not know which NPV (i.e. which index) is currently selected.
Programing Example
The current NPV of the X axis should be 200.
N10 V.G.NP_AKT.V.X = 200
The current NPV in all axes should be expanded by the offset values from G55 (NPV2).
N10 V.G.NP_AKT.ALL = V.G.NP_AKT.ALL + V.G.NP[2].ALL
or
N10 V.G.NP_AKT.ALL += V.G.NP[2].ALL
Changing the current NPV is not effective across programs. However, by adding an assignment, the operator can can also use the current NPV in other programs.
Programing Example
The current NPV should be saved under G54 (NPV1) for future utilisation in other programs.
N10 V.G.NP[1].ALL = V.G.NP_AKT.ALL