
Advanced Features 5-3
Only asynchronous errors will generate calls to the error event handler. If a function call returns an error
code this will not call the error handler. Asynchronous errors are errors that are not synchronous with
program execution, like an axis exceeding its following error limit.
Fast position latch event
To install a fast position latch event handler the function installFastInEventHandler must be called
to install the event handler with the device driver and the controller. This function accepts a single boolean
parameter. Passing true will install the event handler and allow fast position latch events to be received.
Passing false will uninstall the event handler and prevent fast position latch events being generated or
received.
The source of the call to the fast position latch event handler can be established using the function
getFastLatch.
Stop switch event
To install a stop switch event handler the function installStopSwitchEventHandler must be called
to install the event handler with the device driver and the controller. This function accepts a single boolean
parameter. Passing true will install the event handler and allow stop switch events to be received.
Passing false will uninstall the event handler and prevent stop switch events being generated or
received.
The source of the call to the stop switch event handler can be established using the function
getStopSwitch.
CAN event on bus 1
To install a CAN event handler for CAN bus 1 the function installCAN1EventHandler must be called
to install the event handler with the device driver and the controller. This function accepts a single boolean
parameter. Passing true will install the event handler and allow CAN bus 1 events to be received.
Passing false will uninstall the event handler and prevent CAN bus 1 events being generated or
received.
The cause of the call to the CAN event handler can be established using the functions getCANEvent and
getCANEventInfo.
CAN event on bus 2
To install a CAN event handler for CAN bus 2 the function installCAN2EventHandler must be called
to install the event handler with the device driver and the controller. This function accepts a single boolean
parameter. Passing true will install the event handler and allow CAN bus 2 events to be received.
Passing false will uninstall the event handler and prevent CAN bus 2 events being generated or
received.
The cause of the call to the CAN event handler can be established using the functions getCANEvent and
getCANEventInfo.
Comentarios a estos manuales