DAEnetIP3
User Manual
-
74
-
17.6.2.
CRC16 performing
Figure 64.
CRC16 performing
Example 1. Respond CRC16 calculation
o
[1] DAEnetIP3 [00] receives data over serial: 00ASG=?
2DE3
;
o
[2] DAEnetIP3 [00] resends data over TCP/IP: 00ASG=?;
o
[3] DAEnetIP3 [00] sends data over serial: 00ASG=0000
A9FB
;
o
[4] DAEnetIP3 [00] sends data over TCP/IP: 00ASG=0000;
Example 2. Command CRC16 calculation
o
[1] DAEnetIP3 [00] receives data over TCP/IP: 01ASG=?;
o
[2] DAEnetIP3 [00] resends data over serial: 01ASG=?
FCE2
;
o
[3]
DAEnetIP3
[00]
receives
data
from
DAEnetIP3
[01]:
01ASG=FF00
AB0D
;
o
[4] DAEnetIP3 [00] resends data over TCP/IP: 01ASG=FF00;
Example 3. Error CRC16 calculation
– function code is wrong.
o
[1] DAEnetIP3 [00] receives data over TCP/IP: 01ASG=?;
o
[2] DAEnetIP3 [00] resends data over serial: 01BSG=?
FCE2
; (a bit is
wrong)
o
[3] DAEnetIP3 [00] receives data from DAEnetIP3 [01]: 01E3
6E2C
;
o
[4] DAEnetIP3 [00] resends data over TCP/IP: 01E3;
Example 4. Error CRC16 calculation
– address is wrong.
o
[1] DAEnetIP3 [00] receives data over TCP/IP: 01ASG=?;
o
[2] DAEnetIP3 [00] resends data over serial: 05ASG=?
FCE2
;
(address bit is wrong)
o
[3] DAEnetIP3 [00] does not receive any response because there is
no such address (05) in the serial network).