6.6
Predefined Protocol Support Function Instruction
Executing the registered protocols
SP.ECPRTCL
This instruction executes the communication protocol registered using the engineering tool.
Ladder diagram
(U)
FBD/LD
EN
ENO
U0
d
s1
s2
s3
("SP_ECPRTCL" enters .)
Setting data
■Descriptions, ranges, and data types
Operand
Description
*1
(U)
Dummy (Input the character string ['U0'].)
(s1)
Connection number
(s2)
Number of protocols to be executed continuously
(s3)
Head device number for storing the control data
(d)
Head device number which turns ON when the execution of
the instruction is completed and remains on for 1 scan.
If the instruction is completed with an error, (d)+1 is also
turned on.
EN
Execution condition
ENO
Execution result
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(U)
(s1)
(s2)
(s3)
(d)
*1 T, ST, C cannot be used.
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
64
6.6 Predefined Protocol Support Function Instruction
(s1) (s2)
(s3)
(d)
Word
T, ST, C, D, W,
SD, SW, R
*1
Structured text
ENO:=SP_ECPRTCL(EN,U0,s1,s2,s3,d);
Range
1 to 8
1 to 8
Refer to Control data
(Page 65)
Double word Indirect
U\G
Z
LC
Data type
Character string
16-bit unsigned binary
16-bit unsigned binary
Word
Bit
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANYSTRING_SINGLE
ANY16
ANY16
ANY16_ARRAY
(Number of elements: 18)
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL
Others
E
$