PLC API VAR_OUTPUT VAR_OUTPUT bBusy : BOOL; bError : BOOL; nErrID : UDINT; sSQLState : ST_DBSQLError; nRecords : UDINT; END_VAR bBusy : The command is in the process of being transmitted by ADS. No new command will be accepted as long as "bBusy" remains TRUE. bError : Becomes TRUE, as soon as an error occurs. nErrID : Supplies the ADS Error Code or the TcDatabaseSrv_Error_Codes when the bError output is set. sSQLState : Supplies the SQL error code [ } 89] of the specified database type. nRecords : Returns the number of data records.
Requirements Also see about this 2 ADS Return Codes [ } 132] 2 Internal Errorcodes of the TwinCAT Database Server [ } 135] 7.2 Functions 7.2.1 F_GetVersionTcDatabase This function can be used to read PLC library version information. FUNCTION F_GetVersionTcDatabase: UINT VAR_INPUT nVersionElement : INT; END_VAR nVersionElement : Version element to be read. Possible parameters: 1 : major number; 2 : minor number; 3 : revision number; Requirements TS6420 87 Version:
1.2 Development environment Target system type PLC libraries to be linked TwinCAT v2.10.0 PC or CX (x86) TcDatabase.Lib (from TcDatabaseSrv Version 1.0.13) TwinCAT v2.10.0 CX (ARM) Development environment Target system type PLC libraries to be linked TwinCAT v2.10.0 PC or CX (x86) TcDatabase.Lib TwinCAT v2.10.0 CX (ARM)