Description of the formal parameters
|
Name |
Type |
Data type |
Description |
|---|---|---|---|
|
INTERFACE_ID |
IN |
HW_ANY |
Hardware identifier of the used interface |
|
CON_ID |
IN |
CONN_OUC |
Unique connection ID of the send block (TSEND_C) |
|
LOCAL_PORT |
IN |
UINT |
Local port number |
|
RESET_CON |
IN |
BOOL |
FALSE: no reset (default)TRUE: reset of the communication connection |
|
REQ_DB |
INOUT |
DB_ANY |
DB of the ibaPDA communication interface ibaREQ_DB |
|
ERROR_STATUS |
OUT |
WORD |
Internal error code |
|
LOST_SAMPLES |
OUT |
UNIT |
Counter for lost measurement values |
The following SIMATIC standard blocks are used internally:
-
TCON
-
TUSEND
-
TDISCON
Detailed description
INTERFACE_ID
Hardware identifier of the used interface.
Tip |
|
|---|---|
|
You find the hardware identifier of the marked interface under Properties – General – Hardware identifier.
The hardware identifier could be configured as a numerical value or as a system constant of the type Hw_Interface. You find the system constant under Properties – System constants. Always use the system constant of the interface and not of a port, or of the IO system.
|
|
CON_ID
Unique reference to the connection to be set up, value range: 1 to 4095.
LOCAL_PORT
Number of the locally used port
RESET_CON
Used for manually resetting the communication connection.
REQ_DB
The DB is used for data exchange with ibaPDA. For all related Request blocks, configure the identical DB.
ERROR_STATUS
Internal error of the block. If there is no error, the value 0 is output.
LOST_SAMPLES
The counter is incremented with every call of the block if no new UDP telegram can be sent to ibaPDA, as the previous send order has not been finished, yet. A continuously rising value indicates a shortage in the communication performance.
Error codes
|
Hexadecimal value ERROR_TSEND |
Description |
|---|---|
|
W#16#80A1 |
The specified connection or the port is already used by user. Communication error:
|
|
W#16#80A3 |
The nested T_DIAG instruction has reported that the connection has closed. |
|
W#16#80A4 |
IP address of the remote connection endpoint is invalid, or it matches the IP address of the local partner. |
|
W#16#80A7 |
Communication error: You called the instruction with COM_RST = 1 before the send job was complete. |
|
W#16#80AA |
A connection is currently being established with the same connection ID by another block. Repeat the job with a new rising edge at the REQ parameter. |
|
W#16#80B6 |
Parameter assignment error in the connection_type parameter of the data block for connection description. |
|
W#16#80B7 |
Error in one of the following parameters of the data block for connection description: block_length, local_tsap_id_len, rem_subnet_id_len, rem_staddr_len, rem_tsap_id_len, next_staddr_len. |
|
W#16#8085 |
The LEN parameter is greater than the highest valid value. |
|
W#16#8086 |
The ID parameter within the CONNECT parameter is outside the valid range. |
|
W#16#8087 |
Maximum number of connections reached; no additional connection possible. |
|
W#16#8088 |
The value at the LEN parameter does not correspond to the receive area set at the DATA parameter. |
|
W#16#8091 |
Maximum nesting depth exceeded. |
|
W#16#809A |
The CONNECT parameter points to a field that does not match the length of the connection description. |
|
W#16#809B |
InterfaceID is invalid. It does not point to a local CPU interface or a CP or has the value "0". |
|
W#16#80C3 |
|
|
W#16#80C4 |
Temporary communication error:
|
|
W#16#80C6 |
Remote network error: The remote partner cannot be reached. |
Other documentation |
|
|---|---|
|
For more information, refer the Siemens documentation about the TSEND_C block. |
|