
5: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
5-20
FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
Conversion Type
The BCC calculation result can be converted or not according to the assigned conversion type as described below:
Example: BCC calculation result is 0041h.
(1) Binary to ASCII conversion
(2) No conversion
BCC Digits (Bytes)
The quantity of digits (bytes) of the BCC code can be selected from 1 or 2.
Example:
Comparing BCC Codes
The FC6A Series MicroSmart compares the BCC calculation result with the BCC code in the received incoming data to check for any error in the
incoming communication due to external noises or other causes. If a disparity is found in the comparison, an error code is stored in the data register
designated as receive status in the RXD instruction. For user communication error code, see "User Communication Error" on page 5-43.
Example 1:
BCC is calculated for the first byte through the sixth byte using the XOR format, converted in binary to ASCII, and
compared with the BCC code appended to the seventh and eighth bytes of the incoming data.
Example 2:
BCC is calculated for the first byte through the sixth byte using the ADD format, converted in binary to ASCII, and
compared with the BCC code appended to the seventh and eighth bytes of the incoming data.
Note:
On WindLDR, Modbus ASCII defaults to binary
to ASCII conversion.
Note:
On WindLDR, Modbus RTU defaults to no
conversion.
Note:
On WindLDR, Modbus ASCII and Modbus RTU
default is set to 2 digits.
0041h
Binary to ASCII conversion
“4”
(34h)
“1”
(31h)
2 digits
D0010:
0041h
No conversion
NUL
(00h)
“A”
(41h)
2 digits
D0010:
(1) BCC digits = 2
“4”
(34h)
“1”
(31h)
“4”
(34h)
“1”
(31h)
(2) BCC digits = 1
“4”
(34h)
“1”
(31h)
“1”
(31h)
Lower digit
“1”
(31h)
“2”
(32h)
BCC calculation range
“3”
(33h)
“4”
(34h)
Incoming Data
“5”
(35h)
“6”
(36h)
“0”
(30h)
“7”
(37h)
BCC
31h
⊕
32h
⊕
33h
⊕
34h
⊕
35h
⊕
36h = 07h
“0”
(30h)
“7”
(37h)
BCC Calculation Result
Binary to ASCII Conversion
Comparison result is true to indicate that data
is received correctly.
“1”
(31h)
“2”
(32h)
BCC calculation range
“3”
(33h)
“4”
(34h)
Incoming Data
“5”
(35h)
“6”
(36h)
“0”
(30h)
“7”
(37h)
BCC
31h + 32h + 33h + 34h + 35h + 36h = 135h
“3”
(33h)
“5”
(35h)
BCC Calculation Result
Binary to ASCII Conversion
Comparison result is false.
Error code 9 is stored in the receive status data
register.
Содержание MICROSmart FC6A-C16K1CE
Страница 1: ...B 1730 2 FC6A SERIES All in One Type Communication Manual...
Страница 60: ...3 COMMUNICATION SETTINGS 3 22 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 76: ...4 MAINTENANCE COMMUNICATION 4 16 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 126: ...5 USER COMMUNICATION INSTRUCTIONS 5 50 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 158: ...6 MODBUS COMMUNICATION 6 32 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 200: ...8 J1939 COMMUNICATION 8 32 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 218: ...10 SEND E MAIL FUNCTION 10 16 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730...
Страница 252: ...INDEX 4 FC6A SERIES MICROSMART ALL IN ONE TYPE COMMUNICATION MANUAL FC9Y B1730 INDEX...