Y_YA_CTU_Retained
Function block that allows users to count up and retain the counter variable.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| B | CV | INT | Counter Value | |
|
VAR_INPUT
|
||||
| B | CU | BOOL | Trigger that causes the counter to increment. | FALSE |
| V | RESET | BOOL | If TRUE, the counter is initialized to 0. If FALSE, counting is enabled | FALSE |
| V | PV | INT | Preset Value | INT#0 |
| VAR_OUTPUT | ||||
| V | Q | BOOL | TRUE if CV = PV | |