CTUD / CTUD_S
CTUD_S
| 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 or down. In case of a rising edge at the input CU, CV is increased by one. In case of a rising edge at the input CD, CV is decreased by one. If CV = PV, QU is set to TRUE. If CV = 0, QD is set to TRUE.If RESET = TRUE, the counter is initialized to 0. If LOAD = TRUE, the counter is initialized to PV. To enable counting, RESET and LOAD must be FALSE. Otherwise the counter will always be re-initialized. |
| Notes |
|
| Parameters | Inputs
CU
CD
RESET
LOAD
PV
Outputs
QU
QD
CV
|
CU