AdsReadConvertConnectUpdate
From TwinCAT 2.8 Build > 743 and above.
This event is called if the AdsReadVarConvertConnect() method has been called, and the value from the ADS device has been read or has changed.
object_AdsReadConvertConnectUpdate(
ByVal dateTime As Date,
ByVal nMs As Long,
ByVal hConnect As Long,
ByRef data As Variant,
Optional ByRef hUser As Variant
)
Parameter
dateTime
[out] Timestamp.
nHs
[out] Milliseconds of timestamp.
hConnect
[out] Handle of the connection; is created by the AdsReadVarConvertConnect() method.
data
[out] Value from the ADS device. The data type of the variant variable is specified as a parameter when AdsReadVarConvertConnect() is called.
hUser
[out] General purpose value; is passed when the AdsReadVarConvertConnect() method is called.