3. Instruction Set
Program example 1:
M0
Y0
M0
M1000
I401
SET
M1156
DMOV
K10000 D1232
DPLSR
K100000
K1000000 K20
FEND
INCP
D0
IRET
END
Explanations:
When M0 is triggered, Y0 executes pulse output. If external interrupt is detected on X4,
pulse output will perform ramp down process for 10,000 pulses and then stop. M1108 will
be ON to indicate the pause status (ramp down). If no interrupt is detected, Y0 pulse output
will stop after 1,000,000 pulses are completed.
When pulse output ramps down and stops after Mark is detected, M1538 will be ON to
indicate the pause status. If users need to complete the remaining pulses, set OFF the flag
M1108 and pulse output will resume.
4. Operation of Mask function on Y0:
Frequency
Start/end
frequency
Target
speed
Y0 is masked from
interrupts on X4
Y0 is ready for
interrupts from X4
Pulse number if no
external interrupt on X4
Time
D1340
Pulses to be masked,
Ramp down time
(D1348)
Specified by DD1026
Ramp-down stop pulse
number when Mark
is detected (D )D1232
Pulse
number