Access to the current zero offset

The currently active zero offset in the decoder is accessed via the V.G.NP_AKT.V[i] variable. The operator need not know the zero offset (i.e. the index) that has currently been selected.

Programming example

The current zero offset of the X axis shall be 200.

N10 V.G.NP_AKT.V.X = 200

The current zero offset in all axes shall 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

The modification of the current zero offset does not have an effect across programs. An additional assignment, however, enables the user to employ the current zero offset in other programs.

Programming example

The current zero offset shall be saved under G54 (NPV1) for future utilization in other programs.

N10 V.G.NP[1].ALL = V.G.NP_AKT.ALL