Contatto
MCP 4 – User's manual
DUEMMEGI
2.2.5- THRESHOLD Equations
Threshold equation controls a digital output as function of the comparison between an analog value (input
module or register) and a Threshold and an Hysteresis. Allowed comparison operators:
<
lower than
<=
lower or equal to
==
equal to
!=
not equal to
>
greater than
>=
greater or equal to
Options:
➢
Hysteresis
➢
Variable parameters
The Hysteresis has a different meaning depending on the comparison operator:
<
OUT goes ON when
AI<T
and OUT goes OFF when
AI>=(T + H)
<=
OUT goes ON when
AI<=T
and OUT goes OFF when
AI>(T + H)
==
OUT goes ON when
AI==T
and OUT goes OFF when
AI>(T + H)
or when
AI<(T - H)
!=
OUT goes OFF when
AI==T
and OUT goes ON when
AI>(T + H)
or when
AI<(T - H)
. This
behavior is complementary to the previous case
>
OUT goes ON when
AI>T
and OUT goes OFF when
AI<=(T - H)
>=
OUT goes ON when
AI>=T
and OUT goes OFF when
AI<(T - H)
Threshold and Hysteresis must be in the range 0 to 65535. Other allowable operators: AND (&) and OR (|).
Examples:
O1.1
=
AI1
>= 240,2
V2
=
AI1
== 40 |
AI2
== 30
V2
=
AI1
== 40,5
O1.4
=
AI1
< 128 &
AI1
> 30
O1.5
=
AI1
< 600 &
R50
>= 30
O1.1
=
AI1
>
R51
,
R52
&
AI1
< 1000,5
2.2.6- TIMER Equations
Timer equation controls a digital output as function of two delay times. 512 timers can be defined. The timer
resolution is 0.1s and time range is 0 to 6553.5s (1h:49’). The times specified in the timer equation are
intended in second multiplied by 10 (
Te
=100 means 10 seconds).
The input starting the timer is the “trigger” input and it always works on the edge.
Keyword:
TIMER
Standard timer
TIMERP
Non re-triggerable Pulse timer (monostable)
TIMERPR
Re-triggerable Pulse timer (monostable)
E4ended control operators:
H
Lock the timer to the current value on the level (Halt)
Z
Zero, force the expiring of the current timer value (if running) on the edge
ZL
Zero, force the expiring of the current timer value on the level
Page 20 of 87
Rel.: 1.2 October 2018
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it