Beschreibung der Formalparameter

Name

Art

Typ

Beschreibung

INTERFACE_ID

IN

HW_ANY

HW-Kennung der genutzten Schnittstelle

CON_ID

IN

CONN_OUC

eindeutige Verbindungs-ID des Sendebausteins (TSEND_C)

LOCAL_PORT

IN

UINT

lokale Portnummer

RESET_CON

IN

BOOL

FALSE: kein Reset (Standard) TRUE: Reset der Kommunikationsverbindung

REQ_DB

INOUT

DB_ANY

DB der ibaPDA-Kommunikationsschnittstelle ibaREQ_DB

ERROR_STATUS

OUT

WORD

Interner Fehlercode

LOST_SAMPLES

OUT

UNIT

Zähler für verlorene Messwerte

Folgende SIMATIC-Standard-Bausteine werden intern verwendet:

  • TCON

  • TUSEND

  • TDISCON

Detaillierte Beschreibung

INTERFACE_ID

HW-Kennung der verwendeten Schnittstelle.

CON_ID

Eindeutige Referenz auf die aufzubauende Verbindung, Wertebereich: 1 bis 4095.

LOCAL_PORT

Nummer des lokal verwendeten Ports

RESET_CON

Dient zum manuellen Rücksetzen der Kommunikationsverbindung.

REQ_DB

Über diesen DB findet der Datenaustausch mit ibaPDA statt. Konfigurieren Sie bei allen zusammengehörigen Request-Blöcken den identischen DB.

ERROR_STATUS

Interner Fehlercode des Bausteins. Liegt kein Fehler vor, wird der Wert 0 ausgegeben.

LOST_SAMPLES

Der Zähler wird bei jedem Bausteinaufruf inkrementiert, falls kein neues UDP-Telegramm an ibaPDA gesendet werden kann, da der vorhergehende Sende-Auftrag noch nicht abgeschlossen ist. Ein stetig ansteigender Wert deutet auf einen Engpass bei der Kommunikationsperformance hin.

Fehlercodes

Hexadezimalwert ERROR_TSEND

Beschreibung

W#16#80A1

The specified connection or the port is already used by user. Communication error:

  • The specified connection has not yet been established.

  • The specified connection is being terminated.

  • Transfer via this connection is not possible.

  • The interface is being re-initialized.

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

  • All connection resources are in use.

  • A block with this ID is already being processed in a different priority group.

W#16#80C4

Temporary communication error:

  • The connection cannot be established at this time.

  • The interface is receiving new parameters or the connection is being established.

  • The configured connection is being removed by a TDISCON instruction.

  • The used connection is being terminated by a call with COM_RST = 1.

W#16#80C6

Remote network error: The remote partner cannot be reached.