Adding / Subtracting Offsets

The V.G.NP[j].ALL variable makes it possible that complete zero offset data records can newly be assigned by an additive allocation of existing zero offsets. The offsets of all axes are included in the individual calculations. The notations ` += `, ` -= `, and `=` are permitted in zero offset allocation.

Programming example 1

G54 (NPV1) has the combination of G55 (NPV2) and G57 (NPV4) allocated:

N10 V.G.NP[1].ALL = V.G.NP[2].ALL + V.G.NP[4].ALL

Programming example 2

The same operation; G54 is additionally included:

N10 V.G.NP[1].ALL = V.G.NP[1].ALL + V.G.NP[2].ALL + V.G.NP[4].ALL

or

N10 V.G.NP[1].ALL += V.G.NP[2].ALL + V.G.NP[4].ALL

Notice

Interconnecting V.G.NP[j].ALL variables with axis-related V.G.NP[j].V[i] variables or constants within an assignment is not possible!

Programming example

G54 (NPV1) is defined by the combination of G55 (NPV2), the X offset of G57 (NPV4), and a correction value:

INCORRECT:

N10 V.G.NP[1].ALL = V.G.NP[2].ALL + V.G.NP[4].V.X + 100

CORRECT:

The assignment must be made in two steps

N10 V.G.NP[1].ALL = V.G.NP[2].ALL
N20 V.G.NP[1].V.X = V.G.NP[4].V.X + 100