Mitsubishi MELSEC-Q/L Programming Manual page 608

Table of Contents

Advertisement

DUTY
7.18.2
DUTY
Timing pulse generation
7.18.2
DUTY
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)
D
Internal Devices
Setting
Data
Bit
Word
n1
n2
*1
D
*1:
Only SM420 to SM424, SM430 to SM434 can be used.
Function
(1) Turns the user timing clock (SM420 to SM424, SM430 to M434), designated by
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
timing pulse is turned ON and OFF by END processing.
Operation Error
(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.
Error
code
4100
The values of n1 and n2 are less than 0.
The device specified in
4101
SM434.
Program Example
(1) The following program turns SM420 ON for 1 scan, and OFF for 3 scans if X0 is ON.
[Ladder Mode]
606
Command
J
\
R, ZR
Bit
ON
OFF
SM420 to SM424
SM430 to SM434
n1 scans
is registered with the system when the DUTY instruction is executed, and the
D
Error details
is not from SM420 to SM424 or SM430 to
D
[List Mode]
Step
High
Basic
performance
DUTY
n1
U
\G
Word
––
, ON for the duration equivalent to the
D
n2 scans
Q00J/
Q00/
QnH
Q01
––
––
––
––
Instruction
Device
Process
Redundant Universal
LCPU
n2
D
Constants
Zn
Other
K, H
––
––
––
QnPH QnPRH
QnU
LCPU
––
––
––
––

Advertisement

Table of Contents
loading

Table of Contents