Decrements an integer value on rising signal edge.
If the loadPreset parameter is TRUE, value is the value of presetValue; changes at other parameters have no effect.
Decrementing a counter with a value of LINT#MIN will not change the value.
Parameters:
| Name | Type | Section | Description |
|---|---|---|---|
| down | BOOL |
Input | Decrement value by 1 on rising edge. |
| loadPreset | BOOL |
Input | Set value to presetValue. |
| presetValue | LINT |
Input | Value to use as preset. |
| zeroReached | BOOL |
Output | value is equal to or less than 0. |
| value | LINT |
Output | Current count value. |