B&B Electronics MODSCAN32 - Manual User Manual
Page 79

79
Events
The Modbus Data Control posts the following events as a result of the Update method:
UpdateFinished
The Modbuss UpdateFinished Event signals that the control has finished
processing the Update() request and is ready to accept a new command. The
UpdateFinished event does not indicate success or failure of the Update(). Use
the Status property to evaluate the results of the Update(), or use the Ready
event to indicate new data available.
Ready
The Modbuss Ready Event signals that new data has been obtained from the
MODBUS slave device and is now available for use by the control application.
WriteFinished
The Modbuss WriteFinished Event signals that the control has finished
processing a Write command to the designated slave device. This event may be
posted in response to a WriteBlk() method or as a result of setting a data
property such as Register, Coil, etc. The WriteFinished event does not indicate
success or failure of the command. Use the Status property to evaluate the
results.
SlaveError
The Modbuss SlaveError Event signals that the control has received an error
response from a designated slave device in response to either a modbus Read or
Write command. The Status property will contain the status code detailing the
failure.
CustomCmdResponse The Modbuss CustomCmdResponse Event signals that the control has finished
processing a user-defined message transaction initiated with the IssueCmd()
method. This event does not indicate success or failure of the transaction. The
CustomCmdResponse Event will only be fired if the IssueCmd() method returns
TRUE.