Response Frame - Omron E5AR - MANUAL 2 User Manual

Digital controller
Hide thumbs Also See for E5AR - MANUAL 2:
Table of Contents

Advertisement

■ Response frame

● Normal response frame
● Error response frame
(6) If the end of the message has not been reached, perform XOR on the next
byte of the CRC register and the message, return the result to the CRC
register, and repeat the procedure from step (3).
(7) Append the result (the value in the CRC register) to the lower byte of the
message.
Example of appending the result
If the calculated CRC value is H'1234, this is appended as follows to the
command frame.
Function
Slave
mode
Data
address
1
1
CRC-16 calculation range
Slave
Function
address
mode
Data
1
1
CRC-16 calculation range
Slave
Function
Error
address
mode
code
CRC-16
1
1
1
2 bytes
CRC-16 calculation range
The number that was specified in the command frame
Client address
appears here. This is the unit number of the responding
E5AR/ER.
The function code that was received.
In an error response frame, "H'80" is added to the value
Function code
to indicate that this is an error response.
Example: Received function code = H'03
Error code
End code that indicates the error.
Cyclical Redundancy Check. This is a check code calcu-
CRC-16
lated from the client address to the end of the data. Two
bytes in hexadecimal.
CRC-16
Low
High
H'34
H'12
2 bytes
CRC-16
2 bytes
Function code in error response frame = H'83
7.2 Frames
7-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

E5er

Table of Contents