PLC API bExecute : BOOL; tTimeout : TIME; END_VAR sNetID : Is a string containing the AMS network identifier of the target device to which the ADS command is directed. sPathName : Gives the path to the database. sDBName : Gives the name of the database that is to be created. eDBType : Gives the type of the database that is to be created. sSystemDB : Only at "Access Databases". Contains the path to the MDW-file. sUserId : Indicates the username for the registration. sPassword : Contains the password. bExecute : The command is executed with the rising edge. tTimeout : Indicates the duration of the timeout. VAR_OUTPUT VAR_OUTPUT bBusy : BOOL; bError : BOOL; nErrID : UDINT; END_VAR bBusy :
The command is in the process of being transmitted by ADS. No new command will be accepted if "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. If the newly created databases are to be used by the TwinCAT Database Server, the connection data have to be written to the XML configuration file with the aid of the function block FB_DBConnectionADD. Requirements 7.1.11 FB_DBTableCreate The FB_DBTableCreate function block permits tables with any desired table structure to be created in databases. TS6420 69 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)