|
Type
| Function blockAvailable as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters. |
|
Description
| Counts up. In case of a rising edge at CU and RESET = FALSE, CV is increased by one. When the preset value PV for the counter is reached, Q is set to TRUE and the function block stops counting.If RESET = TRUE, the counter is initialized with 0. To enable the counting process, the RESET input must be FALSE. Otherwise the counter will always be re-initialized. |
|
Notes
|
|
|
Parameters
| Inputs
CU
| Data type: | (SAFE)BOOL |
| Description: | CV is increased by one each time the CU input switches from FALSE to TRUE and RESET=FALSE. |
RESET
| Data type: | (SAFE)BOOL |
| Description: | If TRUE, the counter is initialized with 0. If FALSE, counting is enabled.As long as RESET = TRUE, a rising edge from FALSE to TRUE at CU is ignored. RESET must be FALSE to enable counting, otherwise CV is continually reset to zero. |
PV
| Data type: | (SAFE)INT |
| Description: | Preset value. |
Outputs
Q
| Data type: | (SAFE)BOOL |
| Description: | TRUE if CV = PV. |
CV
| Data type: | (SAFE)INT |
| Description: | Counter result. |
|