3. Instruction Set
3-141
Program Example 1:
M1000
EI
FEND
I 001
IRET
M1000
DPLSY K1000 K1000 Y2
I 101
IRET
SET M1524
END
DPLSY K1000 K1000 Y0
SET M1347
Explanations:
a) Whenever I001 is triggered, Y0 will output 1,000 pulses; whenever I101 is triggered, Y2 will
output 1,000 pulses.
b) When pulse output is completed, there should be an interval of at least one scan cycle
before next pulse output operation is triggered. .
Program Example 2:
X1
PLSY K100 0 K1000 Y0
X2
END
SET M1347
Explanation:
When both X1 and X2 are ON, Y0 pulse output will operate continuously. However, there will be a
delay of approx. 1 scan cycle every 1000 pulses.