Programming; Predefined Protocol Support Instruction - Mitsubishi MELSEC iQ-F FX5 User Manual

Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

7.8

Programming

This section explains how to create programs for predefined protocol support function using S(P).CPRTCL instruction and
how such programs operate.
For details on related devices, refer to Page 228 Related Devices.
For communication settings, refer to Page 191 Communication Settings.
For protocol settings, refer to Page 193 Protocol Setting.

Predefined protocol support instruction

This section explains the function, operation and programming method of the S(P).CPRTCL instruction.
For details on the expression and executable format of the S(P).CPRTCL instruction, refer to MELSEC iQ-F FX5
Programming Manual (Instructions, Standard Functions/Function Blocks).
S(P).CPRTCL
This instruction is used to execute the predefined protocol registered with the engineering tool via RS-485 built in the CPU
module, or the communication board and communication adapter installed to the CPU module.
Ladder
(U)
(n1) (n2)
Setting data
■Content, range, data types
Operand
Description
*1
(U)
Dummy (Input the character string ['U0'].)
(n1)
Communication CH
(n2)
Number of protocols to be executed continuously
(s)
Start device containing the control data
(d)
Head bit device number to output the instruction execution
status
*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)
(n1)
(n2)
(s)
(d)
*1 T,ST and C cannot be used
ST
ENO:=S_CPRTCL(EN,U0,s,n1,n2,d);
ENO:=SP_CPRTCL(EN,U0,s,n1,n2,d);
(s)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Range
Data type
Character string
K1 to 4
16-bit unsigned binary
K1 to 8
16-bit unsigned binary
Page 216
Word
Bit
Double word Indirect
specification
Z
LC
LZ
7 PREDEFINED PROTOCOL SUPPORT FUNCTION
FBD/LD
EN
ENO
U0
d
s
n1
n2
"S_CPRTCL",
"SP_CPRTCL" enters .)
Data type (label)
ANYSTRING_SINGLE
ANY16_U
ANY16_U
ANY16_ARRAY
(Number of elements:18)
ANYBIT_ARRAY
(Number of elements:2)
Constant
Others
K, H
E
$
215
7.8 Programming
7

Advertisement

Table of Contents
loading

Table of Contents