72
2.2.5 Counters C
Counters are available with two operating modes:
•
MUP. In mode Count Up the counting bit (contact C) is activated when
present value (C) is >= to preset value (PV). Counter counts up every
time that the counting-up input Cx(UP) goes from Off to On and it
counts down every time that the counting-down inputs Cx(DOWN)
goes from Off to On.
The counter is reset when the reset input Cx(RESET) is activated or when
the operation MOV(Cx = #0) is executed. At reaching of max. value
(32.767), the next edge-up of the counting-up input will keep unchanged
the actual value. Similarly at reaching of minimum value (-32.768) the next
edge-up of the counting-down input will keep unchanged the actual value.
The up-counters have an actual value which keeps the actual counting (T).
They also have a preset value (PV) which is compared to the actual value
at the end of each program cycle. If actual value is bigger or equal to preset
value, the counting bit is activated (contact C), otherwise it is deactivated.
Please use number of counter to refer both to actual value and to Contact
C of the counter itself.
•
MDOWN. In mode Count Down, the counting bit (contact C) is
activated when present value is equals to zero. The counter counts
down starting from a preset value (PV) on the edge-up of the counting-
down input Cx(DOWN) and it counts up on the edge-up of the
counting-up input Cx(UP). At reaching of max. value (32.767), the next
edge-up of the counting-up input will keep unchanged the present
value. The counter resets the counting bit (contact C) and load present
value with preset value (PV) when loading input Cx(RESET) is
activated. The counter in mode count-down stops counting when it
reaches zero. Please use number of counter to refer both to actual
value and to Contact C of the counter itself
Preset value (PV) may be directly loaded with a value or it may be loaded
by one the variables in the area VW, SMW, AI, TR.
2.2.6 Function Math formules FM
The function FM allows to perform math operations (+, -, *, /, |, &, ^, <<, >>)
between two operators and to save the result in another memory location.
The operators can be numeric or they may also refers to available memory
areas.
Summary of Contents for EPL101
Page 1: ...1 PLC P I X S Y S elettronica Manuale Installatore User Manual EPL101...
Page 81: ...81...
Page 82: ...82...
Page 83: ...83...