76
CompoWay/F Message Communications
Section 4-5
BCC Calculation Example
Response Block
The response end codes are as follows:
STX
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.
Node number
This number specifies the transmission destination.
Specify an E3X-CIF11 CompoWay/F node number.
Sub-address
This is not used for the E3X-CIF11. Always set the sub-
address to “0”.
SID (Service ID)
This is not used for the E3X-CIF11. Always set the service ID
to “00”.
Command text
This is the command text area.
ETX
This code (03 Hex) indicates the end of the text.
BCC
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.
02
Hex
“0”
(30 Hex)
“0”
(30 Hex)
“00”
(3030 Hex)
“0”
(30 Hex)
“30053001”
(3330303533303031 Hex)
03
Hex
37
Hex
STX
Node number
Sub-address
SID
Command text
ETX
BCC
The calculation result 37 Hex
is set as the BCC.
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).
STX
(
10
1
) (
10
0
)
Node number
“00”
(fixed)
Sub-address
MRC
End code
02 Hex
(fixed)
Command text
ETX
BCC
03 Hex
(fixed)
SRC
1 byte
2 bytes
2 bytes
2 bytes
1 byte 1 byte
End
code
Name
Description
Error
detection
priority
“00”
Normal completion The command ended normally without
error.
None
“0F”
Command error
The specified command could not be exe-
cuted.
The response code should indicate why
the command could not be executed.
8
“10”
Parity error
A parity error occurred during reception of
one of the characters.
2
“11”
Framing error
A framing error occurred during reception
of one of the characters.
1
“12”
Overrun error
An overrun error occurred during recep-
tion of one of the characters.
3
Summary of Contents for E3X-CIF11
Page 3: ...iv...
Page 21: ...10 Connecting Fiber Amplifier Units Section 1 3...
Page 63: ...52 Setting Monitoring and Operating Sensors from the DeviceNet Configurator Section 2 7...
Page 107: ...96 CompoWay F Message Communications Section 4 5...
Page 125: ...114 Monitoring Incident Light Levels of E3X DA6 P Sensors Appendix B...
Page 133: ...122 DeviceNet Connection Settings Appendix C...
Page 135: ...124 DeviceNet Device Profile Appendix D...
Page 137: ...126 Revision History...