DAEnetIP3
User Manual
-
69
-
17.3.
Serial protocol
Figure 60.
Communication via serial protocol
The communication over serial port is shown on figure 60. To each PDU it are
added 2 bytes serial address at the beginning and 2 bytes CRC16 before the “;” char.
The CRC16 bytes are actually checksum calculated with
Modbus CRC16 algorithm
.
The check sum is perfor
med over all previous bytes (without “;”)
Example commands (referring to Figure 60):
CRC16 OFF
send: 00ASG=?; (gets the whole PortA status of DAEnetIP3[00])
receive: 00ASG=0F0F;
send: 01ASG=FFFF; (sets the whole PortA in 1 of DAEnetIP3[01])
receive: 01ASG=FFFF;
send: 02ASG=0000; (gets the whole PortA in 0 of DAEnetIP3[02])
receive: 02ASG=0000;
CRC16 ON
send: 00ASG=?
2DE3
; (gets the whole PortA status of DAEnetIP3[00])
receive: 00ASG=0F0F
959B
;
send: 01ASG=FFFF
2DAA
; (sets the whole PortA in 1 of DAEnetIP3[01])
receive: 01ASG=FFFF
2DAA
;
send: 02ASG=0000
C9E2
; (gets the whole PortA in 0 of DAEnetIP3[02])
receive: 02ASG=0000
C9E2
;
17.4.
Virtual Serial Port
This communication way is almost the same like TCP/IP. The data transfer is
done also via same TCP/IP network and user defined port. The only difference is that