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

Скачать
Страница из 412
5-114
5.3 Serial Communication
5.3.15 CPRTCL instruction
G_CPRTCL
5.3.15  
CPRTCL instruction
G_CPRTCL
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction executes the protocols and functional protocols written to the flash ROM by pre-
defined protocol support function.
G(P)_CPRTCL
P: Executing condition
:
 indicates any of the following 
instructions.
G_CPRTCL
GP_CPRTCL
Input argument
EN:
Executing condition
:ANY16
Un*:
Start I/O number of the module
(00 to FE: Higher two digits when expressing the I/O number in 
three digits)
:ANY16
n1:
Channel to communicate with other devices
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
:ANY16
n2:
Number of consecutive protocol executions (1 to 8)
:ANY16
s:
Start number of the device in which control data are stored
:Array of ANY16 [0..17]
Output argument
ENO:
Execution result
:Bit
d:
Variable that turns ON upon completion of the instruction
d[1] also turns ON at the time of error completion.
:Array of bit [0..1]
Setting
data 
*1
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
n1
n2
Serial
Structured ladder/FBD
ST
G_CPRTCL
EN
ENO
Un*
n1
n2
s
d
G_CPRTCL
(EN, Un*, n1, n2, s, d);
ENO:=
s
d