DAEnetIP3
User Manual
-
75
-
17.6.3.
CRC16 checking
Figure 65.
CRC16 checking
Example 1. Correct communication.
o
[1] DAEnetIP3 [00] receives data over serial line: 00ASG=?
2DE3
;
o
[2] DAEnetIP3 [00] resends the command over TCP/IP serial network:
00ASG=?;
o
[3] DAEnetIP3 [00] checks the CRC16 checksum. It is valid.
o
[4] DAEnetIP3 [00] sends the response over the serial line:
00ASG=0000
A9FB
;
Example 2. Bit from function code is wrong.
o
[1] DAEnetIP3 [00] receives data over serial line: 00BSG=?
2DE3
; (a
bit from function code is wrong)
o
[2] DAEnetIP3 [00] resends the command over TCP/IP serial network:
00BSG=?;
o
[3] DAEnetIP3 [00] checks the CRC16 checksum. It is not valid.
o
[4] DAEnetIP3 [00] sends the error over the serial line: 00E3
AE7D
;
Example 3. Bit from address is wrong.
o
[1] DAEnetIP3 [00] receives data over serial line: 05ASG=?
2DE3
; (a
bit from function code is wrong)
o
[2] DAEnetIP3 [00] resends the command over TCP/IP serial network:
05ASG=?;
o
[3] DAEnetIP3 [00] does not perform response or error over the serial
line, because the address is not [00], but [05].