298
4
4 Instructions4.11.1 Communication Instructions
4.11 Communication
Communication
instructions
RS Serial data transfer (For details, see “9.4 Modbus Protocol”
on Page 598 and “9.5 Modbus Conguration and Usage” on
Page 613.)
MODBUS Modbus communication (For details, see section “9.4 Modbus
Protocol” on Page 598 and “9.5 Modbus Conguration and Usage”
on Page 613.)
Verication
CCD Check code
CRC CRC code calculation
LRC LRC code calculation
4.11.1 Communication Instructions
RS: Serial data transfer
◆
Overview
The RS instruction is used for data sending/reception during communication. The data of a designated
register area is automatically sent to serial ports in sequence, and then the data received by serial ports
is stored in a designated area. This achieves the effect of allowing the user program to directly access
the communication buffer. Communication can be conducted using custom protocols by allowing the user
program to process the sent/received data buffer.
RS S m D n
Serial data
transfer
Applicable model:
H3U
S
Data sending
head address
Head address of the register area that stores the data
to be sent
16-bit instruction
(9 steps)
RS: Continuous
execution
m
Sent data
length
Length of the data to be sent, measured in bytes;
value range: 0 to 256
D
Data reception
head address
Head address of the register area that stores the
received data
n
Received data
length
Length of the received data, measured in bytes; value
range: 0 to 256
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
m X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.