beckhoff TS6420 — Table of contents

Table of contents Table of contents 1 Foreword.................................................................................................................................................... 5 1.1 Notes on the documentation ............................................................................................................. 5 1.2 For your safety .................................................................................................................................. 6 1.3 Notes on information security............................................................................................................

7 2 Overview .................................................................................................................................................... 8 3 System requirements................................................................................................................................ 9 4 Installation ............................................................................................................................................... 10 5 Database Server functionality................................................................................................................

13 6 Configuration........................................................................................................................................... 15 6.1 XML - configuration file editor ......................................................................................................... 15 6.2 SQL query editor ............................................................................................................................. 26 6.3 Write Direction Mode.......................................................................................................................

32 6.4 Properties and use of the XML-configuration file ............................................................................ 34 6.5 Databases ....................................................................................................................................... 35 6.5.1 Declaration of the different database types...................................................................... 35 6.5.2 Microsoft SQL Database.................................................................................................. 38 6.5.3 Microsoft Access Database..............................................................................................

39 6.5.4 SQL Compact Database .................................................................................................. 40 6.5.5 ODBC - MySQL Database ............................................................................................... 41 6.5.6 OCI / ODBC - Oracle Database ....................................................................................... 42 6.5.7 ASCII - File....................................................................................................................... 43 6.5.8 XML - Database ...............................................................................................................

43 6.5.9 ODBC - PostgreSQL Database........................................................................................ 44 6.5.10 ODBC - DB2 Database .................................................................................................... 45 6.5.11 ODBC - InterBase Database............................................................................................ 46 6.5.12 ODBC - Firebird Database............................................................................................... 47 6.5.13 Additional information.......................................................................................................

48 6.6 Expert.............................................................................................................................................. 53 6.6.1 Impersonate option .......................................................................................................... 53 6.6.2 Additional Registry configuration...................................................................................... 54 6.6.3 XML configuration file.......................................................................................................

55 7 PLC API .................................................................................................................................................... 58 7.1 Function blocks ............................................................................................................................... 59 7.1.1 FB_GetStateTcDatabase................................................................................................. 59 7.1.2 FB_DBReloadConfig........................................................................................................ 60 7.1.3 FB_DBConnectionAdd.....................................................................................................

61 7.1.4 FB_DBOdbcConnectionAdd ............................................................................................ 62 7.1.5 FB_AdsDeviceConnectionAdd......................................................................................... 64 7.1.6 FB_GetDBXMLConfig...................................................................................................... 65 7.1.7 FB_GetAdsDevXMLConfig .............................................................................................. 66 7.1.8 FB_DBConnectionOpen...................................................................................................

66 7.1.9 FB_DBConnectionClose .................................................................................................. 67 7.1.10 FB_DBCreate................................................................................................................... 68 TS6420 3 Version: 1.2