Description of the formal parameters
|
Name |
Type |
Data type |
Description |
|---|---|---|---|
|
REQ_DB |
IN |
BLOCK_DB |
DB of the ibaPDA communication interface ibaREQ_DB |
|
ID |
IN |
INT |
Connection ID of the connection configured in NetPro |
|
HW_LADDR |
IN |
WORD |
Module starting address of the CP |
|
ERROR_STATUS |
OUT |
WORD |
Internal error code |
|
ERROR_SEND |
OUT |
WORD |
Error code of the send block AG_SEND |
|
COUNT_SEND |
OUT |
WORD |
Telegram counter of the send block |
|
LOST_SAMPLES |
OUT |
WORD |
Counter for lost measurement values |
The following SFCs are used internally:
-
FB145 (ibaREQ_UDPact)
-
FC 5 (AG_SEND)
-
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.
ID
Unique reference to the connection to be established. Has to match the ID used in NetPro.
HW_LADDR
Module starting address of the used CP. Has to match the LADDR used in NetPro.
ERROR_STATUS
Internal error of the block. If there is no error, the value 0 is output.
ERROR_SEND
Error code when sending The standard error codes of the AG_SEND block are issued.
0X8yyy error code of AG_SEND block is passed.
COUNT_SEND
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.