Description of the formal parameters
|
Name |
Type |
Data type |
Description |
|---|---|---|---|
|
REQ_DB |
IN |
BLOCK_DB |
DB of the ibaPDA communication interface ibaREQ_DB |
|
CON_ID |
IN |
INT |
Unique connection ID of the sending block (TUSEND) |
|
LOCAL_DEVICE_ID |
IN |
BYTE |
Device ID of the sending block (TUSEND) |
|
LOCAL_PORT |
IN |
DINT |
Used local port number |
|
RESET_CON |
IN |
BOOL |
FALSE: no reset (standard) TRUE: reset of the communication connection |
|
ERROR_STATUS |
OUT |
WORD |
Internal error code |
|
ERROR_TCON |
OUT |
WORD |
Error code connection setup of the TCON function block |
|
COUNT_TCON |
OUT |
WORD |
Counter attempts for connecting |
|
ERROR_TSEND |
OUT |
WORD |
Error code of the sending block TUSEND |
|
COUNT_TSEND |
OUT |
WORD |
Counter sent telegrams |
|
LOST_SAMPLES |
OUT |
WORD |
Counter for lost measurement values |
The following SFCs are used internally:
-
FB145 (ibaREQ_UDPact)
-
FB 65 (TCON)
-
FB 66 (TDISCON)
-
FB 67 (TUSEND)
-
SFB 4 (TON)
-
UDT 65 (TCON_PAR)
-
UDT 66 (TADDR_PAR)
-
UDT 145 (ibaUDT_UDPact)
Detailed description
REQ_DB
The DB is used for data exchange with ibaPDA. For all related Request blocks, configure the identical DB.
CON_ID
Unique reference to the connection to be established. Corresponds to the parameter ID of the Siemens standard block TCON.
LOCAL_DEVICE_ID
ID of the used interface. Corresponds to the parameter local_device_id in the CONNECT structure of the Siemens standard block TCON.
|
Hexadecimal value |
Description |
|---|---|
|
B#16#01 |
Communication via IE interface in interface slot 1 (IF1) with WinAC RTX or an IM 151-8 PN/DP CPU. |
|
B#16#02 |
Communication through the integrated PROFINET interface of the CPU31x-2 PN/DP, CPU314C-2 PN/DP and IM154-8 CPU. |
|
B#16#03 |
Communication through the integrated PROFINET interface of the CPU319-3 PN/DP, CPU315T-3 PN/DP, CPU317T-3 PN/DP, CPU317TF-3PN/DP. |
|
B#16#04 |
Communication through SINUMERIK NCU7x0.2 PN with CPU319-3 PN/DP and SINUMERIK NCU7x0.3PN with CPU317-2 PN/DP. |
|
B#16#05 |
Communication through the integrated PROFINET interface of the CPU412-2 PN, CPU414-3 PN/DP, CPU416-3 PN/DP, CPU412-5H PN/DP (Rack 0), CPU414-5H PN/DP (Rack 0), CPU416-5H PN/DP (Rack 0) and CPU417-5H PN/DP (Rack 0). |
|
B#16#06 |
Communication via the IE interface in interface slot 2 (IF2) with WinAC RTX |
|
B#16#08 |
Communication via the integrated PROFINET interface of the CPU410-5H (Rack 0) |
|
B#16#0B |
Communication via the IE interface in interface slot 3 (IF3) with WinAC RTX |
|
B#16#0F |
Communication via the IE interface in interface slot 4 (IF4) with WinAC RTX |
|
B#16#15 |
Communication through the integrated PROFINET interface of the CPU412-5H PN/DP (Rack 1), CPU414-5H PN/DP (Rack 1), CPU416-5H PN/DP (Rack 1) and CPU417-5H PN/DP (Rack 1). |
|
B#16#18 |
Communication via the integrated PROFINET interface of the CPU 410-5H (Rack 1) |
Other documentation |
|
|---|---|
|
You find more information under the following link: |
|
LOCAL_PORT
Number of the locally used port.
RESET_CON
Used for manually resetting the communication connection.
ERROR_STATUS
Internal error of the block. If there is no error, the value 0 is output.
|
Decimal value ERROR_STATUS |
Description |
|---|---|
|
350 |
Parameter LOCAL_DEVICE_ID is invalid. |
|
360 |
Parameter LOCAL_PORT is invalid. |
ERROR_TCON
Error code of connection setup. The standard error codes for the TCON function block are output.
0X8yyy error code of TCON block is passed.
COUNT_TCON
Counter for the attempts of connection setup. An increasing value indicates problems when establishing the connection to the ibaPDA computer.
ERROR_TSEND
Error code when sending. The standard error codes of the TUSEND block are output.
0X8yyy error code of TUSEND block is passed.
COUNT_TSEND
Counter for the sent telegrams. Usually, the counter is incremented continuously.
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_TCON |
Description |
|---|---|
|
W#16#8086 |
The ID parameter is outside the valid range. |
|
W#16#8087 |
Maximum number of connections reached; no additional connection possible. |
|
W#16#8089 |
The CONNECT parameter does not point to a data block. |
|
W#16#809A |
The CONNECT parameter points to a field that does not match the length of the connection description (UDT65). |
|
W#16#809B |
The local_device_id in the connection description does not match the CPU. |
|
W#16#80A0 |
Group error for error codes W#16#80A1 and W#16#80A2 |
|
W#16#80A1 |
Connection or port is already used by user. |
|
W#16#80A2 |
Local or remote port is used by the system. |
|
W#16#80A3 |
Attempt is being made to re-establish an existing connection. |
|
W#16#80A4 |
IP address of the remote connection endpoint is invalid, or it matches the local IP address. |
|
W#16#80A7 |
Communications error: You called TDISCON before TCON had completed. TDISCON must first complexly terminate the connection referenced by the ID. |
|
W#16#80B2 |
The CONNECT parameter points to a data block that was generated with the keyword UNLINKED. |
|
W#16#80B3 |
Inconsistent parameter assignment: Group error for the error codes W#16#80A0 to W#16#80A2, W#16#80A4, W#16#80B4 to W#16#80B9 |
|
W#16#80B5 |
Error in active_est parameter (UDT 65) in the UDP protocol variant |
|
W#16#80B6 |
Parameter assignment error relating to the connection_type parameter (UDT 65) |
|
W#16#80B7 |
Error in one of the following parameters of UDT 65: block_length, local_tsap_id_len, rem_subnet_id_len, rem_staddr_len, rem_tsap_id_len, next_staddr_len |
|
W#16#80B8 |
Parameter ID in the local connection description (UDT 65) and parameter ID are different. |
|
W#16#80C3 |
All connection resources are in use. |
|
W#16#80C4 |
Temporary communications error:
|
|
Hexadecimal value ERROR_TSEND |
Description |
|---|---|
|
W#16#8085 |
LEN parameter has the value "0" or is greater than the highest valid value. |
|
W#16#8086 |
The ID parameter is outside the valid address range. |
|
W#16#8088 |
LEN parameter is greater than the memory area specified in DATA. |
|
W#16#8089 |
ADDR parameter does not point to a data block. |
|
W#16#80A1 |
Communication error:
|
|
W#16#80A4 |
IP address of the remote connection endpoint is invalid, or it matches the local IP address. |
|
W#16#80B3 |
The protocol variant (connection_type parameter in the connection description) is not set to UDP. Please use FB 63 TSEND. ADDR parameter: Invalid settings for port number. |
|
W#16#80C3 |
|
|
W#16#80C4 |
Temporary communications error:
|
Other documentation |
|
|---|---|
|
For more information, refer the Siemens documentation about the TCON and TSEND blocks. |
|