AdsLogNotification

This event is called as soon as an ADS device has issued a message and the previously defined filter conditions are satisfied.

object_AdsLogNotification(
  dateTime As Date,
  nMs As Long,
  dwMsgCtrl As Long,
  nServerPort As Long,
  szDeviceName As String,
  szLogMsgAs String
)

Parameter

dateTime

[out] Date and time at which the message was issued by the ADS device

nMs

[out] Milliseconds as the message was issued by the ADS device

dwMsgCtrl

[out] Filter mask for the kinds of messages that are to be reported (see ADSLOGMSGTYPE data type)

nServerPort

[out] Port number of the ADS device that issued the message

szDeviceName

[out] Name of the ADS device that issued the message

szLogMsg

[out] Message that was issued by the ADS device

Comments

As soon as an ADS device has issued a message, and the filter conditions defined by the AdsEnableLogNotificaion() method are met, the AdsLogNotification() event is triggered. The message can be further evaluated by means of the parameters that are passed.

Example

Visual Basic sample: 'Send/receive messages via the TwinCAT Router'