5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
95
5
Pre-defined protocol communication
G(P)_CPRTCL
The following instruction can go in the dotted squares.
G_CPRTCL, GP_CPRTCL
■
Executing condition
■
Argument
*1 Local devices and file registers per program cannot be used as setting data.
Processing details
This instruction executes the protocols and functional protocols written to the flash ROM by pre-defined protocol support
function.
Instruction
Executing condition
G_CPRTCL
GP_CPRTCL
Input/output
argument
Name
Description
Data type
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
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
n1
n2
(s)
(d)
Serial
Structured ladder/FBD
ST
G_CPRTCL
EN
ENO
Un*
n1
n2
s
d
G_CPRTCL
(EN, Un*, n1, n2, s, d);
ENO:=
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......