PRESET COUNT (PRESET UP/DOWN COUNTER)
An edge from OFF to ON on the UPCOUNT input increments the counter.
An edge from OFF to ON on the DOWNCOUNT input decrements the counter.
If the counter number/zero is reached, the OUTPUT changes to the ON state. Its return to the OFF state depends on the options selected (counter and output).
The change from OFF to ON on the INITIALISATION input forces the counter. The forced state (zero or preset value) depends on the counter options selected.
The parameters tab can be used to select:
Counter options:
Selecting the operating mode
- Forcing to zero (UPCOUNTING)
- The OUTPUT changes to ON when the counter number is reached or when the CURRENT COUNTER VALUE falls below -32768. In the latter case, it is inverted and becomes +32767.
- The OUTPUT changes to ON when the CURRENT COUNTER VALUE falls back below the counter number or exceeds +32767. In the latter case, it is inverted and becomes -32768.
- Forcing to the preset value (DOWNCOUNTING)
- The OUTPUT changes to ON when the counter number changes to zero or when the CURRENT COUNTER VALUE exceeds +32768. In the latter case, it is inverted (-32768).
- The OUTPUT changes to OFF when the CURRENT COUNTER VALUE falls back below zero or exceeds -32768. In the latter case, it is inverted and becomes +32767.
- Forcing to zero (UPCOUNTING)
- The OUTPUT changes to ON when the counter number is reached or when the CURRENT COUNTER VALUE falls below -32768. In both cases, the CURRENT COUNTER VALUE is forced to zero.
- The OUTPUT changes to OFF when the duration defined in the TIMER VALUE has elapsed. If the condition changes to ON before changing to OFF, the output pulse is extended by the TIMER VALUE.
- Forcing to the preset value (DOWNCOUNTING)
- The OUTPUT changes to ON when the counter number changes to zero or when the CURRENT COUNTER VALUE exceeds +32767. In both cases, the CURRENT COUNTER VALUE is forced to the preset value.
- The OUTPUT changes to OFF when the duration defined in the TIMER VALUE has elapsed. If the condition changes to ON before changing to OFF, the output pulse is extended by the TIMER VALUE.
The Parameters tab contains the box (which is checked by default) which reinitialises counting after a controller power failure.
The UPCOUNT, DOWNCOUNT and INITIALISATION inputs and the OUTPUT are digital.
The COUNTER has three additional INTEGER type outputs:
These values are displayed in the "Simulation" and "Monitoring" modes.