NC-program

The NC-channel access the external variables on the basis of the write/read instruction to variable V.E.<name> in the NC-program. The variables available in the NC-program result automatically from the prefix V.E. and the name <name> specified in the configuration list of the variable.

Programming example VE-variable access in the CNC

N100 $IF V.E.CHANNEL_WR >= 100    (In accordance with the
value of)

                  (V.E.CHANNEL_WR branching to
the)

                  (various cases occurs)
N110   G01 X100 Y100 F1000
N120 $ELSE
N130   G01 X100 Y V.E.CHANNEL_WR F1000    (Linear
interpolation in)

                      (Y-direction with the
value)

                      (of V.E.CHANNEL_WR)
N140 $ENDIF
N150 V.E.GLOBAL_SWR = V.A.ABS.X   (The absolute X-coordinate
is assigned)
                  (to the external variable)
N160 G01 XV.E.GLOBAL_SWR      (Linear interpolation in
X-direction)
                  (with the value of V.E.EXT2)

Programming example 2 VE variable access in CNC from version V2.10.1025.00 onwards

N010 $IF V.E.trajektorie.name !=
„“N020    V.E.name =
V.E.trajektorie.nameN030    P1 = 0N040    $WHILE P1 <
V.E.trajektorie.nbr_pointsN050       $IF
V.E.trajektorie.points[P1].valid == TRUEN060     G0 X =
V.E.trajektorie.points[P1].point.xY = V.E.trajektorie.points[P1].point.y         Z =
V.E.trajektorie.points[P1].point.zN070       $ENDIFN080       P1 += 1N090    $ENDWHILEN100 $ENDIFN110 V.E.name = „“N120 M30