This structure used by the function blocks that perform data exchange (TCPDataExchServer, TCPDataExchClient). In addition to the information on the nodes, the data buffers in exchange between the systems are also defined in the structure. The fields RW the fields must be set by the user program R they must not be modified by the user program, they can only be read.
Definition
CODESYS: Not available
LogicLab: eLLabDataExchLib
Name | Type | Description | |
---|---|---|---|
NodeID | USINT | RW | Node ID. System node number, used to verify data matching. |
AutoTxD | BOOL | RW | Auto Tx data. If activated, in the event of a change, the automatic sending of the TXBuffer to the other system is forced. |
TxData | BOOL | RW | Tx data send. By setting it from the user program, the sending of the TxBuffer to the other system is forced. The command remains active until the transmission has taken place and is then automatically reset. |
Active | BOOL | R | Data exchange active. Active if data exchange on the node is active. |
RxOk | BOOL | R | Rx data Ok. Set to receive data from the other system, the data has been transferred to RxBuffer. It stays active for a program loop. |
TxHeartbeat | USINT | RW | Time in seconds to send heartbeat frames. Each defined time a data frame is sent to the other system. |
RxHeartbeat | USINT | R | Time in seconds of receiving heartbeat frames, the value ofTxHeartbeat sent by the other system is received. Each defined time a data frame must be received by the other system. |
RxBuffer | PVOID | RW | Rx buffer address. Allocation address of the data buffer received from the other system. |
RxLength | UDINT | RW | Rx buffer length. Size of the data buffer received from the other system. Must match TxLength defined on the other system. |
TxBuffer | PVOID | RW | Tx buffer address. Allocation address of the data buffer to be sent to the other system. |
TxLength | UDINT | RW | Tx buffer length. Size of the data buffer to send to the other system. Must match RxLength defined on the other system. |
RxPackets | UDINT | R | Rx packets. Counter data packets received by the other system. |
TxPackets | UDINT | R | Tx packets. Counter data packets sent to the other system. |
TxTime | REAL | R | Time in seconds required to send data to the other system. |
CErrors | UDINT | R | Communication errors. Counter communication errors with the other system. |