IDEC MICRO/I HG4G-CJT22 F-B Series User Manual page 182

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

5 User Communication
• Number of bytes and comparison data
When the converted data is 3034h, the data used for comparison with the BCC part of the receive data is as
follows.
Converted data
(Second byte) (First byte)
0
4
(30h)
(34h)
Converted data
(Second byte) (First byte)
0
4
(30h)
(34h)
• BCC data comparison
The comparison data is compared with the BCC part of the receive data.
In the following receive data, when the comparison data is the 1-byte 34h, there is a match since the BCC part data
is 34h.
When there is no match, the BCC Error (address number+0, bit 0) of the Status Device changes to 1.
Receive data
STX
1
(02h)
(31h)
(32h)
• When the calculation type is Modbus ASCII (LCR)
When the BCC calculation result is 4241h after Hexadecimal to ASCII conversion the resulting two bytes of
data is used for comparison with the BCC part of the receive data.
Data
4241h
Hexadecimal to ASCII
• When the calculation type is Modbus RTU (CRC)
When the BCC calculation result is BA30h with no conversion the two bytes of data is used for comparison with
the BCC part of the receive data.
Data
BA30h
No conversion
3-76
Comparison data
4
(34h)
Bytes: 1
Comparison data
0
4
(30h)
(34h)
Bytes: 2
BCC part
2
3
4
5
(33h)
(34h)
(35h)
Comparison data
Converted data
(Second byte) (First byte)
B
A
(42h)
(41h)
Converted data
(Second byte) (First byte)
BAh
30h
WindO/I-NV4 User's Manual
BCC
CR
(34h)
(0Dh)
Match
4
(34h)
Comparison data
B
A
(42h)
(41h)
Bytes: 2
Comparison data
BAh
30h
Bytes: 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents