beckhoff TS6420 — 7.1.4 FB_DBOdbcConnectionAdd

PLC API sDBServer : Provides the name of the server. Optional. sDBProvider : Gives the provider of the database: Optional. sDBUrl : Gives the path to the database. sSystemDB : Only at "Access Databases". Contains the path to the MDW-file. sUserId : Indicates the username for the registration. sPassword : Contains the password sDBTable : Gives the name of the table into which the values are to be written. bExecute : The command is executed with the rising edge. tTimeout : States the time before the function is cancelled. VAR_OUTPUT VAR_OUTPUT bBusy : BOOL; bError : BOOL; bErrID : UDINT; hDBID : 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 [ } 132] when the bError output is set. hDBID : Returns the ID of the database. Requirements 7.1.4 FB_DBOdbcConnectionAdd The function block FB_DBOdbcConnectionAdd permits additional ODBC - database connections to be added to the XML configuration file. TS6420 62 Version: 1.2 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)