
WindO/I-NV4 User’s Manual
3-75
5 User Communication
3
Communic
ation
■
Conversion Type
After calculating the data using the specified calculation type, select the type of conversion for the data from the
following.
■
Number of bytes
After converting according to the specified conversion type, select
1
or
2
for the number of bytes for comparison
data.
Example: BCC for receive command data
This example describes the case of comparing the BCC calculation result for the following receive data with the BCC
part of the receive data.
• Calculation Start Position and Calculation End Position
When Calculation Start Position is 2 and Calculation End Position is 1: Calculates the range
1234
.
• Calculation Type
• Conversion Type
When the BCC calculation result is
0004h
, the converted data is as follows.
Modbus RTU (CRC):
CRC-16 (Generating polynomial:x
16
+x
15
+x
2
+1) is calculated according to the following
procedure. Conversion Type: No conversion, Number of bytes: 2
1. Obtain an exclusive OR (XOR) of 1 byte data at Calculation Start Position and FFFFh.
2. If the least significant bit of the result of step 1 is 0, shift to the right by one bit. If the
bit is 1, shift to the right by 1 bit and obtain XOR of the result and the value (A001h).
3. Repeat step 2 to shift 8 times.
4. Obtain XOR of the next one byte of data and the result of step 3.
5. Repeat steps 2 through 4 until the data at Calculation End Position is processed.
6. Compare the result of step 5 in the order of the lower byte and upper byte.
Example: 1234h
→
34h, 12h
Hexadecimal to ASCII:
Considers the data as binary-coded hexadecimal number and converts it to ASCII data.
No conversion:
No conversion is performed.
XOR:
31h^32h^33h^34h^=04h
ADD:
31h+32h+33h+34h=CAh
ADD (2's Complement): Inverts the bit of CAh+1=36h
Modbus ASCII (LCR):
BA
→
42h, 41h
Modbus RTU (CRC):
BA30h
→
BAh, 30h
1
(31h)
4
(34h)
5
(35h)
2
(32h)
STX
(02h)
3
(33h)
BCC
CR
(0Dh)
1
(31h)
4
(34h)
5
(35h)
2
(32h)
STX
(02h)
3
(33h)
BCC
CR
(0Dh)
(1)
(2)
(3)
(4)
(5)
(6)
Calculation Start Position:
(5)
(4)
(3)
(2)
(1)
(0)
Calculation End Position:
Data used for BCC calculation
0004h
Hexadecimal to ASCII
0
(30h)
Data
4
(34h)
0004h
No conversion
00h
Data
04h
Содержание MICRO/I HG4G-CJT22 F-B Series
Страница 1: ...B 1701 11 User s Manual ...
Страница 26: ...Preface 25 WindO I NV4 User s Manual ...
Страница 50: ...1 WindO I NV4 Specifications 2 18 WindO I NV4 User s Manual Baltic Font ANSI 1257 Cyrillic Font ANSI 1251 ...
Страница 106: ...5 WindO I NV4 Common Operations and Settings 2 74 WindO I NV4 User s Manual ...
Страница 254: ...7 BACnet Communication 3 148 WindO I NV4 User s Manual ...
Страница 362: ...5 Screen Restrictions 5 28 WindO I NV4 User s Manual ...
Страница 402: ...3 Text 7 30 WindO I NV4 User s Manual ...
Страница 574: ...9 Potentiometer 8 172 WindO I NV4 User s Manual ...
Страница 1052: ...4 Using the Data 15 22 WindO I NV4 User s Manual ...
Страница 1170: ...6 Important Notes 20 60 WindO I NV4 User s Manual ...
Страница 1200: ...5 Restrictions 22 18 WindO I NV4 User s Manual ...
Страница 1260: ...5 Editing User Accounts on the MICRO I 23 60 WindO I NV4 User s Manual ...
Страница 1286: ...4 Clear 24 26 WindO I NV4 User s Manual 4 Click Yes 5 Click Close This concludes clearing data ...
Страница 1288: ...4 Clear 24 28 WindO I NV4 User s Manual 6 Click Yes 7 Click Close This concludes clearing data on the external memory device ...
Страница 1322: ...2 Monitoring on the MICRO I 25 28 WindO I NV4 User s Manual ...
Страница 1414: ...4 E mail Function 28 66 WindO I NV4 User s Manual ...
Страница 1554: ...3 Settings 34 14 WindO I NV4 User s Manual ...
Страница 1642: ...2 Handling Problems 36 6 WindO I NV4 User s Manual ...
Страница 1652: ...5 Text Alignment A 10 WindO I NV4 User s Manual ...
Страница 1664: ...Index 12 WindO I NV4 User s Manual ...