Increments an integer value on rising signal edge.
If the reset parameter is TRUE, value is 0; changes at other parameters have no effect.
Incrementing a counter with a value of LINT#MAX will not change the value.
Parameters:
| Name | Type | Section | Description |
|---|---|---|---|
| up | BOOL |
Input | Increment value by 1 on rising edge. |
| reset | BOOL |
Input | Set value to 0. |
| presetValue | LINT |
Input | Value to use as preset. |
| presetReached | BOOL |
Output | value is equal to or greater than presetValue. |
| value | LINT |
Output | Current count value. |