Program example
■Program which adds K10 to #100 when #0 is K100 or adds K20 to #100 when #0 is other than
K100
IF #0 == K100
#100 = #100 + K10
ELSE
#100 = #100 + K20
IEND
■Program which executes the speed change of axis 2 with CHGV instruction when M0 or M1 is
ON
IF M0 + M1
CHGV(K2, K10)
IEND
4 OPERATION CONTROL PROGRAMS
4.14 Program Control
4
195