
TU RS485/ETH serie
CD Automation srl
26
Trip
Control of a Trip Alarm
Controls a Trip Alarm with setting of the Trip level, hysteresis and delay time for ON and OFF condition. If the
input value is higher than the high trip level (MAX) for a time longer than Ton, the bits selected in the output
mask will be forced to 1. If the input value is lower than the low trip level (MIN) for a time longer than Toff, the
bits selected in the output mask will be forced to 0.
It is possible to use this Function Block to execute the operation “A>B”: set the trip levels with the same value
and the delay times Ton and Toff = 0.
NOTE: the output status is updated at each execution of the Function after the end of the delay time: it is
suggested to insert this Function Block in a zone of the Program continuously executed.
The graph
(Fig.4.1)
shows the working of a Trip alarm that goes on if the input signal is higher than 100°C for at
least 2 seconds and goes off if the input signal is lower than 90°C for at least 5 seconds.
Variables:
Input
Internal Register containing the value to compare
Max
High Trip level
Min
Low Trip level
Dest
Internal Register wherein the result is written.
Mask
Mask applied to the result.
Use Timer
Number of Internal Timer to use (0÷15)
Timer On
Delay time for Trip Alarm activation (ms)
Timer Off
Delay time for Trip Alarm de-activation (ms)
Fig. 4.1
Max
Min
Toff
(5 sec.)
Ton
(2 sec.)
100
90
Output
(dest. bit)
Input