Communications configuring
3-204
System- and communication configuring D7-SYS - SIMADYN D
Edition 12.2003
3.18.3.4
Structure of the data telegram for TCP/IP or DUST1
connection
If the communications link involves a TCP/IP or DUST1 coupling, then
the data telegram structure must be carefully observed. This is described
in the following. The data telegrams are "generated" using the function
blocks CTV and CRV.
The data telegram is defined so that all of the tabular values can be
transferred in a data block as well as in several data blocks.
The structure of a data block is shown in the following table:
Data type
Description
char [4]
Telegram ID
Each table telegram is identified with the "TAB0" ID
u_int16
Telegram commands (bit-coded)
1: New table (rising edge, from 0 -> 1)
2: End of table
u_int16
Data format (REAL=1, DINT=2)
u_int32
No. of the actual data block
u_int32
No. of tabular values (X and Y values)
The number of values must always be an even number. This
means that always the same number of X and Y values are
transferred.
u_int32 [56] /
float [56]
Array with tabular values. (X and Y values, always alternating)
The TAB or the TAB_D sends an acknowledgement to the sender for
each data block received.
The structure of the acknowledge telegram is shown in the following
table:
Data type
Description
char [4]
Telegram ID
Identifies each table telegram with the "TAB0" ID
u_int32
No. of the actual data block
u_int32
Status / error numbers
0xB210
OK (data block is o.k.) ......
HINWEIS
New table data is now transferred into the inactive table if the "New
table" command is set.
After the "End of table" command has been received, all additional
table data are rejected until the "New table" command is received.