accShockEvent (Functionblock) |
Top Previous Next |
accShockEvent retirnes the information of a shock event. Note that the information is only valid after a "Shock" event is raised; the event will be removed when this function block is called. A "Shock" event is raised when a shock is experienced that matches the parameters set when monitoring was enabled.
Input: None.
Output: X : BOOL Detected shock on x-axis.
Y : BOOL Detected shock on y-axis.
Z : BOOL Detected shock on z-axis.
Ready : BOOL Is event removed and data updated.
Declaration: FUNCTION_BLOCK accShockEvent;
Example: INCLUDE rtcu.inc |