PLC return values
The error output of all PLC blocks of the Tc3_Database.compiled library takes place via the I_TcResultEvent interfaces from the Tc3_Eventlogger.compiled library. This new interface structure enables a more detailed description of events, as well as classification.
Interface I_TcMessage
nEventId: UDINT;
EventClass: GUID;
eSeverity: TcEventSeverity;
ipSourceInfo: I_TcSourceInfo;
nEventID: specific event code
EventClass: GUID
EventClassName: The corresponding event class name can be read using the RequestEventClassName method
eSeverity: events classification: from "info" to "critical error"
ipSourceInfo: path to the event location.
Text: description of the event in plain text can be read with the RequestEventText method
The following event classes can occur:
- TC3 ADS Error
ADS errors that may occur during the communication with the TwinCAT Database Server. - TC3 Database Server Internal Error
Internal errors that may occur if the TwinCAT Database Server is configured incorrectly. - TC3 Database Server Database Error
Database errors that may occur during communication with the corresponding databases. The different database-specific error codes are mapped in a database error list. The database-specific codes are written into the ErrorLog, as required. - TC3 Database Server ADS Device Error
ADS error that may occur during internal communication with configured ADS devices. - TC3 Database Server NoSQL Error
Database error of a NoSQL database that occurred during communication with the corresponding databases.