Event Types
Industrial Communication Toolbox™ software supports several different types of events. Each event type has an associated toolbox object property that you can use to specify the function that executes when the event occurs.
The following table lists the supported event types, the name of the object property associated with the event, and a brief description of the event, including the object class associated with the event. For detailed information about these callback properties, see the reference information for the property.
The toolbox generates a specific set of information for each event and stores it in an event structure. To learn more about the contents of these event structures and how to retrieve this information, see Retrieve Event Information.
Events and Callback Function Properties
Event | Callback Property | Description |
---|---|---|
Cancel Async | The toolbox generates a cancel async event when an
asynchronous operation is cancelled. You cancel an asynchronous operation
using the When a cancel
async event occurs, the toolbox executes the function specified by the
Cancel async events occur at the
| |
Data Change | The toolbox generates a data change event when the server notifies
the toolbox that data for a group has changed. The server will notify the
toolbox of data changes only if the group's When a data
change event occurs, the toolbox executes the function specified by the
Data change events
occur at the | |
Error | The toolbox generates an error event when a run-time error occurs, such as a data type conversion error or time-out. Run-time errors do not include configuration errors such as setting an invalid property value. When an error event occurs, the toolbox executes the function
specified by the Error events occur at the
| |
Read Async | The toolbox generates a read async event when an asynchronous
read operation completes. You execute an asynchronous read operation using
the When a read async event occurs, the toolbox executes
the function specified by the Read async events occur at the
| |
Records Acquired | The toolbox generates a records acquired event every time an
integer multiple of a specified number of records have been acquired. You
use the When a records acquired event occurs, the toolbox
executes the function specified by the Records acquired events occur at the
| |
Shutdown | The toolbox generates a shutdown event when the OPC server notifies the client that the server is about to shut down. When
a shutdown event occurs, the toolbox executes the function specified by the
Shutdown events occur at the
| |
Start | The toolbox generates a start event when an object is started. You
use the Note If an error occurs in the start callback function, the object does not start. When a start event occurs, the toolbox executes the function
specified by the Start
events occur at the | |
Stop | The toolbox generates a stop event when the object stops
running. An object stops running when the When a stop event occurs, the toolbox executes the
function specified by the Stop events occur at the | |
Timer | The toolbox generates a timer event when an integer multiple
of a specified amount of time expires. You use the
Note Some timer events might not execute if your system is significantly
slowed or if the
When a timer event occurs, the toolbox executes the function
specified by the Timer
events occur at the | |
Write Async | The toolbox generates a write async event when an
asynchronous write operation completes. You execute an asynchronous write
operation using the When
a write async event occurs, the toolbox executes the function specified by
the Write async events occur at the
|