
648
10 EXTERNAL DEVICE I/O INSTRUCTION
10.1 Serial Communication 2
10
EXTERNAL DEVICE I/O INSTRUCTION
10.1
Serial Communication 2
RS2
This instruction sends or receives data by non-protocol communication via serial ports of RS-232C or RS-485.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1
T, ST, C cannot be used.
Processing details
This instruction sends or receives data by non-protocol communication via built-in RS-485 port or serial ports of RS-232C or
RS-485 provided by add-on modules. This instruction specifies the head device storing the sent data from the CPU module,
amount of data, head device storing the received data and the maximum allowable amount of received data. For details, refer
to
Serial communication manual.
Precautions
• It is not permitted to use instructions for external device I/O, MODBUS communication, and inverter communication on the
same port.
• While this instruction is being driven, the communication format cannot be changed. Set this instruction to OFF before
changing the communication format.
• When using the header and terminator, set them before driving this instruction. Do not change the values of the header and
terminator while this instruction is being driven.
Ladder diagram
Structured text
ENO:=RS2(EN,s,m,n1,n2,d);
Operand
Description
Range
Data type
Data type (label)
(s)
Head device storing send data
16-bit signed binary/
character string
ANY16
(m)
Number of send data
0 to 4096
16-bit unsigned binary
ANY16_U
(d)
Head device storing receive data
16-bit signed binary/
character string
ANY16
(n1)
Amount of received data
0 to 4096
16-bit unsigned binary
ANY16_U
(n2)
Communication channel
K1 to 4
16-bit unsigned binary
ANY16_U
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s)
(m)
(d)
(n1)
(n2)
(s)
(m)
(d)
(n1)
(n2)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......