Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
7-388
DUTY
7.18.2  
Timing pulse generation (DUTY)
DUTY
*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 
, 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.
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.
 • The device designated by 
 is not from SM420 to SM424 or SM430 to SM434.
(Error code: 4101)
 • The values of n1 and n2 are less than 0.
(Error code: 4100)
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)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
n1
––
n2
––
*1
––
––
Basic
Process
High
performance
Redundant Universal
Command
DUTY
n1
n2
D
DUTY
D
D
D
SM420 to SM424
SM430 to SM434
OFF
ON
n2 scans
n1 scans
D
D