6-172
6.8 Other Convenient Instructions
6.8.8 Fixed cycle pulse output
PLSY
1. With the PLSY instruction, the argument device data are registered in the work
area of the CPU module and counting operation is processed as a system
interrupt. (The device data registered in the work area is cleared by turning the
execution command OFF, or turning the STOP/RUN switch from STOP to
RUN.) For this reason, the pulses that can be counted must have longer ON
and OFF times than the interrupt interval of the CPU module. The interrupt
interval of each module is shown below.
2. Do not change the argument for the PLSY instruction during pulse output
directed by the PLSY instruction (while the execution command is ON). To
change the argument, turn OFF the execution command.
3. The PLSY instruction can be used only once in all programs executed by the
CPU module. The second and the subsequent PLSY instructions are not
processed.
O
p
erat
i
on
E
rror
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The device specified for
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
Program
E
xam
pl
e
In the following program, 10Hz pulse is output for 5 times to Var_Y20 when X0 turns ON.
[Structured ladder]
[ST]
PLSY(X0,10,5,Var_Y20);
CPU module model
Interrupt interval
High Performance model QCPU, Universal model QCPU
1ms
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......