PLC API nAdsDevPort : UINT; END_STRUCT END_TYPE sAdsDevNetID : Is a string containing the AMS network identifier of the Ads-device. tAdsDevTimeout : Contains the timeout of the Ads-device. nAdsDevID : Returns the ID of the Ads-device. nAdsDevPort : Indicates the Ams-port of the Ads-device. Requirements 7.3.4 ST_DBSQLError TYPE ST_DBSQLError : STRUCT sSQLState : STRING(5); nSQLErrorCode : DINT; END_STRUCT END_TYPE sSQLState : Contains the 5 character error code which follows the SQL ANSI standard. nSQLErrorCode : Contains the database specific error code . If no error occured the structure contains the following values.:
sSQLState := '00000' ; nSQLErrorCode := 0 ; Requirements 7.3.5 ST_DBParameter TYPE ST_DBParameter : STRUCT sParameterName : STRING(59); cbParameterValue : UDINT; pParameterValue : UDINT; eParameterDataType : E_DBColumnTypes; eParameterType : E_DBParameterTypes; END_STRUCT END_TYPE sParameterName : Contains the name of the parameter. cbParameterValue : Contains the size of the used variable in bytes. pParameterValue : Contains the pointer address of the used variable. eParameterDataType : Gives the data type [ } 90] of the parameter. pParameterValue : Gives the type [ } 91] of the parameter. TS6420 89 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) 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)