85
W&T
Packetizing serial datagrams
Subject to error and alteration
n
Byte Order
Organization of the length field (net order = high-byte-
first; byte order = low-byte-first)
n
Additional Bytes
Any number of bytes which may not be accounted for in
the length specification of the serial protocol (e.g.
Start
Sequence
, appended checksum, etc.). This means the con-
tents of the field defined by
Size
may have to be corrected
to the total length of the serial datagram using the
Addi-
tional Bytes
option.
Example
The serial protocol shown in the following always starts with
the character
STX
(0x02). In the Length field the length of
the following data field (serial data) is specified without the
checksum and without the previous fields. The Block End is
indicated by a variable 16-bit checksum.
Description
Size [byte]
Value
Start
Sequence
Serial
Address
Len-Field
(Netorder)
Serial
Data
CRC16
1
STX (02)
any
High/Low
1
2
x
2
any
=
The following settings must be made on the Comt-Server for
correct packeting of this protocol structure:
As soon as the Com-Server has received the character 0x02 it
collects additional data. If the total number of incoming cha-
Summary of Contents for Com-Server++
Page 8: ...W T...
Page 26: ...26 W T Assigning the IP address...
Page 27: ...27 W T Subject to error and alteration 3 Supply voltage Com Server Com Server3x Isolated...
Page 30: ...30 W T Supply voltage...
Page 34: ...34 W T Network interface...
Page 41: ...41 W T Subject to error and alteration 6 LED displays Power Status Error LED Network LEDs...
Page 88: ...88 W T Packetizing serial datagrams...
Page 94: ...94 W T Mode TCP server...
Page 108: ...108 W T Mode TCP client...
Page 122: ...122 W T UDP bus mode...
Page 130: ...130 W T The Windows COM port redirector...
Page 138: ...138 W T Box to Box mode...
Page 154: ...154 W T Mode FTP client...
Page 164: ...164 W T Mode Telnet Client...
Page 182: ...182 W T OPC data transfer...
Page 186: ...186 W T Mode InQueueCopy...