beckhoff TS6420 — 7.1.10 FB_DBCreate

PLC API sNetID : Is a string containing the AMS network identifier of the target device to which the ADS command is directed. hDBID : Indicates the ID of the database to be used. 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; nErrID : 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.

Requirements 7.1.10 FB_DBCreate The FB_DBCreate function block allows databases to be created. MS SQL databases, MS SQL Compact databases, MS Access databases and XML databases can be created with this FB. ASCII files can (but do not have to) be created with the function block FB_DBCreate. If they do not exist, they are created automatically during the first write access. They only have to be declared in the XML configuration file. It is not possible to create DB2, Oracle, MySQL, PostgreSQL, InterBase and Firebird databases. In addition, it is not possible to overwrite existing databases. In this case the function block FB_DBCreate would return an error. VAR_INPUT VAR_INPUT sNetID :

T_AmsNetID; sPathName : T_MaxString; sDBName : T_MaxString; eDBType : E_DBTypes; sSystemDB : T_MaxString; sUserId : T_MaxString; sPassword : T_MaxString; TS6420 68 Version: 1.2 Development environment Target system type PLC libraries to be linked TwinCAT v2.10.0 PC oder CX (x86) TcDatabase.Lib TwinCAT v2.10.0 CX (ARM)