Omron E3X-DRT21 Operation Manual page 87

Fiber amplifier sensor communication units
Table of Contents

Advertisement

CompoWay/F Message Communications
BCC Calculation Example
STX
02
Hex
BCC = 30 Hex + 30 Hex + 30 Hex + 30 Hex + 30 Hex + 33 Hex + 30 Hex +
30 Hex + 35 Hex + 33 Hex + 30 Hex + 30 Hex + 31 Hex + 03 Hex = 37 Hex
The "+" indicates an exclusive OR (XOR).
Response Block
STX
Node number
02 Hex
(
10
(fixed)
1 byte
2 bytes
76
STX
Node number
Sub-address
SID (Service ID)
Command text
ETX
BCC
Node number
Sub-address
"0"
"0"
"00"
(30 Hex)
(30 Hex)
(3030 Hex)
Sub-address
"00"
1
0
) (
10
)
(fixed)
2 bytes
The response end codes are as follows:
End
Name
code
"00"
Normal completion The command ended normally without
"0F"
Command error
"10"
Parity error
"11"
Framing error
"12"
Overrun error
This code (02 Hex) indicates the beginning of the communica-
tions block.
Always set these characters in the first byte.
When STX is received again during reception, reception is
repeated from the point where STX was received.
This number specifies the transmission destination.
Specify an E3X-CIF11 CompoWay/F node number.
This is not used for the E3X-CIF11. Always set the sub-
address to "0".
This is not used for the E3X-CIF11. Always set the service ID
to "00".
This is the command text area.
This code (03 Hex) indicates the end of the text.
Block Check Character
The BCC result is obtained by calculating an exclusive OR
(XOR) of the bytes from the node number up to the ETX.
SID
Command text
"0"
"30053001"
(30 Hex)
(3330303533303031 Hex)
The calculation result 37 Hex
is set as the BCC.
Command text
End code
MRC
SRC
2 bytes
error.
The specified command could not be exe-
cuted.
The response code should indicate why
the command could not be executed.
A parity error occurred during reception of
one of the characters.
A framing error occurred during reception
of one of the characters.
An overrun error occurred during recep-
tion of one of the characters.
Section 4-5
ETX
BCC
03
37
Hex
Hex
ETX
BCC
03 Hex
(fixed)
1 byte 1 byte
Description
Error
detection
priority
None
8
2
1
3

Advertisement

Table of Contents
loading

This manual is also suitable for:

E3x-srt21E3x-cif11

Table of Contents