Event Control (0x0C,0x2B)

Description

Enables or disables event triggers.

Notes

Triggers can be disabled, enabled, and tested. While disabled, a trigger will not evaluate its logic and effective behave like no trigger is configured. A disabled trigger will not activate any actions. Triggers are disabled by default.

Use this command to enable (or disable) a trigger, or to place it into a test mode. When in test mode, the trigger logic is disabled but the output is forced to the active state, meaning that it will behave as if the trigger logic is satisfied and any associated actions will execute.

Parameter Name Data Type Description
Field Length u8 5
Descriptor u8 0x2B
Function Selector u8 This command supports the following MIP function selectors:
Write Read Save Load Default [WRSLD]
Instance [WRSLD] u8 Trigger instance to affect. 0 can be used to apply the mode to all configured triggers, except when the function selector is READ.
Mode [W] u8 enum How to change the trigger state. Except when instance is 0, the corresponding trigger must be configured, i.e. not have type 0.
NameValueDescription
DISABLED0Trigger is disabled.
ENABLED1Trigger is enabled and will work normally.
TEST2Forces the trigger to the active state for testing purposes.
TEST_PULSE3Trigger is forced to the active state for one event cycle only. After the test cycle, the mode reverts to the previous state (either enabled or disabled).
Ack/Nack Reply See standard MIP ack/nack reply format.
Response Data Data Type Description
Response Length u8 4
Response Descriptor u8 0xB5
Instance u8 Trigger instance to affect. 0 can be used to apply the mode to all configured triggers, except when the function selector is READ.
Mode u8 enum How to change the trigger state. Except when instance is 0, the corresponding trigger must be configured, i.e. not have type 0.
NameValueDescription
DISABLED0Trigger is disabled.
ENABLED1Trigger is enabled and will work normally.
TEST2Forces the trigger to the active state for testing purposes.
TEST_PULSE3Trigger is forced to the active state for one event cycle only. After the test cycle, the mode reverts to the previous state (either enabled or disabled).