Programming; Predefined Protocol Support Instruction - Mitsubishi Electric FX5 User Manual

Melsec iq-f series
Hide thumbs Also See for FX5:
Table of Contents

Advertisement

6.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 204 Related Devices.
For communication settings, refer to Page 168 Communication Settings.
For protocol settings, refer to Page 170 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 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,
U\G
F, B, SB, S
(U)
(n1)
(n2)
(s)
*1
(d)
*1 File registers set by each local device and program cannot be used.
*2 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,
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
*1
*1
*1
*2
Range
Data type
Character string
K1 to 4
16-bit unsigned binary
K1 to 8
16-bit unsigned binary
Page 192
Word
Bit
Double word Indirect
specification
Z
LC
LZ
*1
*1
*1
6 PREDEFINED PROTOCOL SUPPORT FUNCTION
6
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
(DX)
K, H
E
$
191
6.8 Programming

Advertisement

Table of Contents
loading

Table of Contents