Appendix 1 - Driver Actions

This appendix describes how to add an action to your driver's device or proxy extension in Niagara AX such that when the action is invoked, either by a Niagara-AX user or by some Niagara-AX logic, your driver instructs the field device to perform a special function.

For example, some driver protocols feature a reboot message that when sent to a field-device over the field-bus, the field-device will reboot. If your protocol features such a message then you can add a reboot action to your driver's device class. By following these steps, when the reboot action is invoked from Niagara-AX, your driver will transmit a reboot request to corresponding field-device causing the field-device to reboot.

Please note that the reboot example is just one of many possibilities. Your driver's protocol might not necessarily support reboot but it might support some other special behavior. Another somewhat typical example is a change time feature. In any event, the procedure for implementing this in your driver is as follows:

  1. Add an action to your device.
  2. Define a request and a response to tell the field-device what to do.

  3. Have your do... method (for the new action that you added to your device) place an instance of the request onto the device's communicator.

  4. To update your device after receiving the response to the Do Something request: