![Omron E5CC-T Скачать руководство пользователя страница 83](http://html1.mh-extra.com/html/omron/e5cc-t/e5cc-t_communications-manual_742604083.webp)
4 - 3
4 Modbus Communications Procedure
E5
C-T Digital Temperature Controllers Programmable Type Communications Manual (H186)
4-1 D
ata F
o
rmat
4
4-1-1 C
ommand F
ra
m
e
CRC-16 Calculation Example
Messages are processed one byte at a time in the work memory (a 16-bit register known as the
CRC register).
(1) The CRC register is initialized to H’FFFF.
(2) An XOR operation is performed on the content of the CRC register and the first byte of the
message, and the result is returned to the CRC register.
(3) The MSB is packed with zeroes and the CRC register is shifted 1 bit to the right.
(4) If the bit shifted from the LSB is 0, step 3 is repeated (next bit-shift processing).
If the bit shifted from the LSB is 1, an XOR is performed on the content of the CRC register
and H’A001, and the result is returned to the CRC register.
(5) Steps 3 and 4 are repeated until 8 bits are shifted.
(6) CRC processing continues to the end of the message, as XOR operations are performed
on the content of the CRC register and the next byte of the message, step 3 is repeated,
and the result is returned to the CRC register.
(7) The result of the CRC calculation (value in the CRC register) is appended to the last byte of
the message.
•
Example of Appending the Calculation Result
When the calculated CRC value is H'1234, the CRC value is appended to the command
frame as follows.
CRC-16
1
1
Lo
w
H
'
34
High
H
'
12
Data
CRC-16 calc
u
lation range
2
b
ytes
Sla
v
e
address
F
u
nction
code
Содержание E5CC-T
Страница 2: ......
Страница 14: ...Revision History 12 E5 C T Digital Temperature Controllers Programmable Type Communications Manual H186...
Страница 176: ...7 Component Communications 7 8 E5 C T Digital Temperature Controllers Programmable Type Communications Manual H186...
Страница 181: ...Index 1 E5 C T Digital Temperature Controllers Programmable Type Communications Manual H186 I Index...
Страница 184: ...Index 4 E5 C T Digital Temperature Controllers Programmable Type Communications Manual H186...
Страница 185: ......