606
DUTY
n1
: Number of scans for ON (BIN 16 bits)
n2
: Number of scans for OFF (BIN 16 bits)
: User timing clock (SM420 to SM424, SM430 to M434) (bits)
*1:
Only SM420 to SM424, SM430 to SM434 can be used.
F
unct
i
on
(1) Turns the user timing clock (SM420 to SM424, SM430 to M434), designated by , ON for the duration equivalent to the
number of scans specified by n1, and OFF for the duration equivalent to the number of scans specified by n2.
(2) Scan execution type programs use SM420 to SM424, and low speed execution type programs use SM430 to SM434.
(3) The following will take place if both n1 and n2 have been set for 0:
(a) n1 0, n2 0 SM420 to SM424 and SM430 to SM434 will stay OFF.
(b) n1 0, n2 0 SM420 to SM424 and SM430 to SM434 will stay ON.
(4) The data designated by n1, n2, and is registered with the system when the DUTY instruction is executed, and the
timing pulse is turned ON and OFF by END processing.
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program
E
xamp
l
e
(1) The following program turns SM420 ON for 1 scan, and OFF for 3 scans if X0 is ON.
[Ladder Mode]
[List Mode]
7.18.2
DUTY
Timing pulse generation
7.18.2
DUTY
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
n1
––
n2
––
*1
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The values of n1 and n2 are less than 0.
––
––
––
––
4101
The device specified in is not from SM420 to SM424 or SM430 to
SM434.
––
––
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
Command
D
UTY
n1
n2
D
DUTY
D
D
D
SM
4
20
to
SM
4
2
4
SM
4
30
to
SM
4
3
4
O
FF
O
N
n2
scans
n1
scans
D
D
Step
I
nstruct
i
on
De
vi
ce