TCP (FB)
User interface
Name |
Type |
Description |
||||||||
---|---|---|---|---|---|---|---|---|---|---|
boEnable |
BOOL |
Enable signal: With a positive edge, the initialisation of the block starts. As long as 'boEnable' = TRUE, the block remains enabled and is processed by the PLC. In the state 'boEnable' = FALSE the block is no longer enabled and is thus no longer processed. |
||||||||
enMode |
ENUM |
EN_WORK_MODE Selection mode for establishing communication
|
||||||||
strIP |
STRING(15) |
String containing the IP address (dotted decimal notation) of the node with which a connection is to be established. If this input is not assigned, the controller can connect to a communication partner with any IP address
|
||||||||
wPort |
WORD |
Port of the node with which the connection is being established
|
||||||||
uiRecvSize |
UINT |
Size of the receive buffer |
||||||||
pbyRecvBuff |
POINTER |
POINTER TO BYTE Pointer variable referencing the receive buffer in which the data received is written |
||||||||
uiSendSize |
UINT |
Size of the send buffer |
||||||||
pbySendBuff |
POINTER |
POINTER TO BYTE Pointer variable referencing the send buffer which contains the data to be sent |
Name |
Type |
Description |
|||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
boEnabAck |
BOOL |
Acknowledgement: Function block is initialised and enabled |
|||||||||||||||||||||||||||||||||||||
boErr |
BOOL |
The function block is in an error state
|
|||||||||||||||||||||||||||||||||||||
iErrID |
INT |
Error identity number: Diagnostic number is output
Error
For AmkTCP.lib up to Version 02.04 2008/25, the following also applies:
For AmkTCP.lib as of Version > 02.04 2008/25, the following also applies:
|
|||||||||||||||||||||||||||||||||||||
boConn |
BOOL |
Signal for the communication status. TRUE means that a connection to the specified communication partner exists. |
|||||||||||||||||||||||||||||||||||||
boRecvAck |
BOOL |
Signal indicating that data has been received successfully. The signal is set if the data has been received in full in the buffer and is reset, if the 'uiRecvSize' input is set to “0”. |
|||||||||||||||||||||||||||||||||||||
boSendAck |
BOOL |
Signal indicating that data has been sent successfully. The signal is set if all of the data has been sent from the buffer and is reset, if the 'uiSendSize' input is set to “0”. |
|||||||||||||||||||||||||||||||||||||
uiActRecv |
UINT |
Length of data currently received |