Y_YA_CTUD_Retained
Function block to count up or down and provide users the ability to retain their counters.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| V | CV | INT | Counter value to which the retained variable must be connected. | |
| VAR_INPUT | ||||
| V | CU | BOOL | The Count Up input triggers the count to increment. | FALSE |
| V | CD | BOOL | The Count Down input triggers the count to decrement | FALSE |
| V | RESET | BOOL | Triggers the reset of Counter Value to zero | FALSE |
| V | LOAD | BOOL | Triggers the loading of the Preset Value input value to the Counter Value. | FALSE |
| V | PV | INT | Preset Value input which denotes the limit to which the count is incremented | INT#0 |
| VAR_OUTPUT | ||||
| V | QU | BOOL | TRUE if CV >= PV | |
| V | QD | BOOL | TRUE if CV <= 0 | |
Notes:
- Count down can be carried on until 0 and count up can be carried out until PV.