beckhoff TS6420 — 6.5.8 XML - Database

Configuration An AutoID is generated in the "ID" column. The value in this column is, in other words, always increased by 1. This functionality makes the sequence possible. The "Timestamp" column stores the time at which the data record was saved. The name of the variable is stored in the "Name" column. The "Value" column stores the value of the variable. 6.5.7 ASCII - File The values of the variables are saved in an ASCII file. The values are written into the ASCII file separated by semicolons. The file created can then be imported into other spreadsheet programs such as "Microsoft Excel", where it can be further processed. The ASCII file has the following structure:

[Timestamp];[NAME];[VALUE] [YYYY-MM-DD hh:mm:ss];[Variablename];[Variablevalue] [YYYY-MM-DD hh:mm:ss];[Variablename];[Variablevalue] [YYYY-MM-DD hh:mm:ss];[Variablename];[Variablevalue] [YYYY-MM-DD hh:mm:ss];[Variablename];[Variablevalue] The "Timestamp" column stores the time at which the data record was saved. The name of the variable is stored in the "Name" column. The "Value" column stores the value of the variable. Important! Do not save the database on the Compact Flash Card in case of an embedded system. Either use the database in RAM, i.e. do not save to the "Hard disk" folder, or save on a network folder. To many write cycles to the Compact Flash Card can shorten its service life.

6.5.8 XML - Database The variable values will be saved at a XML file. The structure of the database, tables and columns are defined at the XSD-file. With the function blocks FB_DBCreate [ } 68] and FB_DBTableCreate [ } 69] it is possible to create the XML file and the XSD file. Further information to work with XML files togehter with the TwinCAT3 Database Server you can find here: hier [ } 48] . xs:noNamespaceSchemaLocation="TestDB_XML.xsd"> TS6420 43 Version:

1.2 E DBColumnTypes _ Oracle PLC Control eDBColumn BigInt _ DECIMAL(15,0) T LARGE INTEGER _ _ (TcUtilities.lib) eDBColumn Integer _ INTEGER T LARGE INTEGER _ _ eDBColumn SmallInt _ SMALLINT T LARGE INTEGER _ _ eDBColumn TinyInt _ SMALLINT T LARGE INTEGER _ _ eDBColumn Bit _ CHAR(1) STRING eDBColumn Money _ DECIMAL(18,4) LREAL eDBColumn Float _ DOUBLE PRECISION LREAL eDBColumn Real _ FLOAT LREAL eDBColumn DateTime _ DATE DT eDBColumn NText _ VARCHAR(254) STRING eDBColumn NChar _ CHAR(254) STRING eDBColumn Image _ BLOB ARRAY OF BYTE eDBColumn NVarChar _ NVARCHAR(254) STRING eDBColumn Binary _ BLOB ARRAY OF BYTE eDBColumn VarBinary _ BLOB ARRAY OF BYTE