Constants

VAR_GLOBAL_CONSTANT

    AMSPORT_DATABASESRV                           : UINT         := 21372;

    DBADS_IGR_RELOADXML                           : UDINT         :=16#100;

    DBADS_IGR_GETSTATE                            : UDINT         :=16#200;

    DBADS_IGR_DBCONNOPEN                          : UDINT         :=16#300;
    DBADS_IGR_DBCONNCLOSE                         : UDINT         :=16#301;
    DBADS_IGR_ADSDEVCONNOPEN                      : UDINT         :=16#302;
    DBADS_IGR_ADSDEVCONNCLOSE                     : UDINT         :=16#303;

    DBADS_IGR_DBSTOREDPROCEDURES                  : UDINT         :=16#400;
    DBADS_IGR_DBSTOREDPROCEDURES_RETURNRECORD     : UDINT         :=16#401;
    DBADS_IGR_DBSTOREDPROCEDURES_RETURNRECORDARRAY: UDINT         :=16#402;

    DBADS_IGR_START                               : UDINT         :=16#10000;
    DBADS_IGR_STOP                                : UDINT         :=16#20000;

    DBADS_IGR_DBCONNADD                           : UDINT         :=16#30000;
    DBADS_IGR_ADSDEVCONNADD                       : UDINT         :=16#30001;
    DBADS_IGR_ODBC_DBCONNADD                      : UDINT         :=16#30010;

    DBADS_IGR_GETDBXMLCONFIG                      : UDINT         :=16#30101;
    DBADS_IGR_GETADSDEVXMLCONFIG                  : UDINT         :=16#30102;

    DBADS_IGR_DBWRITE                             : UDINT         :=16#40000;
    DBADS_IGR_DBREAD                              : UDINT         :=16#50000;

    DBADS_IGR_DBTABLECREATE                       : UDINT         :=16#60000;
    DBADS_IGR_DBCREATE                            : UDINT         :=16#70000;

    DBADS_IGR_DBRECORDSELECT                      : UDINT         :=16#80001;
    DBADS_IGR_DBRECORDINSERT                      : UDINT         :=16#80002;
    DBADS_IGR_DBRECORDDELETE                      : UDINT         :=16#80003;

    DBADS_IGR_DBAUTHENTIFICATIONADD               : UDINT         :=16#90000;

    MAX_DB_TABLE_COLUMNS                          : UDINT         := 255;
    MAX_XML_DECLARATIONS                          : UDINT         := 255;
    MAX_STORED_PROCEDURES_PARAMETERS              : UDINT         := 255;

END_VAR 

Requirements

Development environment

Target platform

PLC libraries to be linked

TwinCAT v3.0.0

PC or CX (x86)

Tc2_Database