Beschreibung der Formalparameter
|
Name |
Art |
Typ |
Beschreibung |
|---|---|---|---|
|
interfaceId |
IN |
HW_ANY |
HW-Kennung der genutzten Schnittstelle |
|
connectionId |
IN |
CONN_OUC |
eindeutige Verbindungs-ID des Sendebausteins (TSEND_C) |
|
localPort |
IN |
UINT |
lokale Portnummer |
|
reset_com |
IN |
BOOL |
FALSE: kein Reset (Standard) TRUE: Reset der Kommunikationsverbindung |
|
DB_PDA |
INOUT |
DB_ANY |
DB der ibaPDA-Kommunikationsschnittstelle ibaREQsym_DB_PDA |
|
state |
OUT |
STRING[16] |
Bausteinstatus |
|
errorTsend |
OUT |
WORD |
Sammelfehlercode der intern aufgerufenen Tsend Bausteine |
|
errorTcon |
OUT |
WORD |
Fehlercode des intern aufgerufenen Tcon Bausteins |
|
errorTusend1 |
OUT |
WORD |
Fehlercode des intern aufgerufenen Tusend1 Bausteins |
|
errorTusend2 |
OUT |
WORD |
Fehlercode des intern aufgerufenen Tusend2 Bausteins |
|
lostSamples |
OUT |
UNIT |
Zähler für verlorene Messwerte |
Folgende SIMATIC-Standard-Bausteine werden intern verwendet:
-
TCON
-
TUSEND
-
TDISCON
Detaillierte Beschreibung
interfaceId
Die HW-Kennung der genutzten Schnittstelle ist eine Konstante im TIA Portal und abhängig von der konfigurierten Hardware.
Tipp |
|
|---|---|
|
Die HW-Kennung der markierten Schnittstelle finden Sie unter Eigenschaften – Allgemein – HW-Kennung.
Die HW-Kennung können Sie als numerischen Wert sowie als Systemkonstante vom Typ Hw_Interface konfigurieren. Die Systemkonstante finden Sie unter Eigenschaften – Systemkonstanten. Verwenden Sie immer die HW-Kennung der Schnittstelle und nicht eines Ports, oder des IO-Systems.
|
|
connectionId
Eindeutige Referenz auf die aufzubauende Verbindung, Wertebereich: 1 bis 4095.
localPort
Nummer des lokal verwendeten Ports
reset_com
Dient zum manuellen Rücksetzen der Kommunikationsverbindung.
DB_PDA
Zeiger auf den Kommunikationsdatenbereich. Über diesen Bereich findet der Datenaustausch mit ibaPDA statt. Konfigurieren Sie bei allen zusammengehörigen Request-Blöcken den identischen DB.
state
Bausteinstatus in Klartext
errorTsend
Sammelfehlercode der intern aufgerufenen Tsend Bausteine
errorTcon
Fehlercode des intern aufgerufenen Tcon Bausteins
errorTusend1
Fehlercode des intern aufgerufenen 1. Tusend Bausteins
errorTusend2
Fehlercode des intern aufgerufenen 2. Tusend Baustein
Eine Auflistung aller möglichen Fehlercodes der Systembausteine Tsend, Tusend, Tcon finden Sie in der Siemens-Dokumentation.
lostSamples
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
errorTcon
|
Hexadezimalwert Statusmeldung |
Beschreibung |
|---|---|
|
W#16#0000 |
Connection successfully established. |
|
W#16#7000 |
No job processing is active. |
|
W#16#7001 |
Start job execution, establish connection. |
|
W#16#7002 |
Connection is being established (REQ irrelevant). |
|
Hexadezimalwert Fehler |
Beschreibung |
|---|---|
|
W#16#8085 |
Connection ID (ID parameter) is already used by a configured connection. |
|
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 connection description or the connection description was created manually. |
|
W#16#809A |
The structure at the CONNECT parameter is not supported on an integrated interface or the length is invalid. |
|
W#16#809B |
The element interfaceld with in the TCON_xxx structure does not reference a hardware identifier of a CPU or CM/CP interface or has the value "0". |
|
W#16#80A1 |
The specified connection or the port is already used. |
|
W#16#80A2 |
Local or remote port is used by the system. The following ports are reserved locally: 20, 21, 80, 102, 135, 161, 162, 443, 34962, 34963, 34964 as well as the area 49152 to 65535. |
|
W#16#80A3 |
ID is used by a connection created by the user program, which uses the same connection description at the CONNECT parameter. |
|
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 executed TDISCON before TCON had completed. |
|
W#16#80B4 |
Only with TCON_IP_RFC: The local T selector was not specified, or the first byte does not contain the value 0x0E (only with a length of T selector = 2) or the local T selector starts with "SIMATIC-". |
|
W#16#80B5 |
Only passive connection establishment is permitted for connection type 13 = UDP (parameter ActiveEstablished of the structure TCON_IP_v4/TCON_PARAM has the value TRUE). |
|
W#16#80B6 |
Parameter assignment error in the ConnectionType parameter of the data block for connection description.
|
|
W#16#80B7 |
With TCON_IP_v4:
With TCON_IP_RFC:
|
|
W#16#80B8 |
Parameter ID in the local connection description (structure at CONNECT parameter) and parameter ID of the instruction are different. |
|
W#16#80C3 |
All connection resources are assigned, or ports are dynamically used by other applications or connections. |
|
W#16#80C4 |
Temporary communication error:
|
|
W#16#80C5 |
The connection partner refuses to establish the connection, has terminated the connection or actively ended it. |
|
W#16#80C6 |
Network error: The connection partner cannot be reached. |
|
W#16#80C7 |
Execution timeout. |
|
W#16#80C8 |
Value at the ID parameter is already used by a connection that was created by the user program. The connection uses the identical ID, but different connection settings at the CONNECT parameter. |
|
W#16#80C9 |
Validation of the connection partner failed. The connection partner that wants to establish the connection does not match the defined partner at the CONNECT parameter. |
|
W#16#80CE |
The IP address of the local interface is 0.0.0.0. |
|
W#16#80D0 |
With TCP and active connection endpoint: The remote_qdn parameter is an empty string. A connection cannot be established. |
|
W#16#80D1 |
The remote_qdn parameter is not a fully qualified domain name. The period at the end might be missing. |
|
W#16#80D2 |
No DNS server address is configured. |
|
W#16#80D3 |
The fully qualified domain name cannot be resolved. Possible causes:
|
|
W#16#80E0 |
Unsuitable or poor message was received. |
|
W#16#80E1 |
Error during handshake. Possible causes:
|
|
W#16#80E2 |
Certificate is not supported or invalid. Possible cause: The time-of-day of the module concerned is not set or the module is not synchronized. Example: The default setting for the date of the module is 1/1/2012 and it was not set during commissioning. The validity period of the certificate starts on 20 August 2016 and ends on 20 August 2024. In this case, the date of the module is outside the valid period of the certificate; the certificate is invalid for the module. |
|
W#16#80E3 |
Certificate was discarded. |
|
W#16#80E4 |
No valid certification authority found. |
|
W#16#80E5 |
Certificate expired. |
|
W#16#80E6 |
Integrity errors in the Transport Layer Security Protocol. |
|
W#16#80E7 |
Not supported extension in X.509-V3 certificate. |
|
W#16#80E9 |
TLS server without server certificate is not supported. |
|
W#16#80EA |
DTLS (UDP) protocol is not supported. |
|
W#16#80EB |
A client cannot request a client certificate. |
|
W#16#80EC |
The server cannot perform validation based on subjectAlternateName (only clients can do this). |
|
W#16#80ED |
TLSServerCertRef_m-ID is invalid. |
errorTusend
|
Hexadezimalwert Statusmeldung |
Beschreibung |
|---|---|
|
W#16#0000 |
Send job completed without error. |
|
W#16#7000 |
No job processing is active. |
|
W#16#7001 |
Start of job processing, data being sent. Note: During this processing phase, the operating system accesses the data in the DATA send area. |
|
W#16#7002 |
Intermediate call (REQ irrelevant), job is being processed. Note: During this processing phase, the operating system accesses the data in the DATA send area. |
|
Hexadezimalwert Fehler |
Beschreibung |
|---|---|
|
W#16#8085 |
The LEN parameter has the value "0" or is greater than the highest valid value. |
|
W#16#8086 |
The ID parameter is outside the valid range. |
|
W#16#8088 |
The LEN parameter is greater than the memory area specified in DATA. |
|
W#16#8089 |
The ADDR parameter does not point to a data block with the structure TADDR_Param or TADDR_SEND_QDN. |
|
W#16#80A1 |
Communication error:
|
|
W#16#80B1 |
You changed the DATA parameter before the current job finished. |
|
W#16#80A4 |
IP address (at the ADDR parameter) of the remote connection endpoint is invalid, or it matches the IP address of the local partner. |
|
W#16#80B3 |
|
|
W#16#80B7 |
The length of the structure referenced by the ADDR parameter is not 8 bytes. |
|
W#16#80C3 |
|
Andere Dokumentation |
|
|---|---|
|
Weitere Informationen entnehmen Sie der Siemens-Dokumentation zu den Bausteinen TCON, TDISCON und TSEND. |
|