154
Parameterp(numberofdecimals)
TheonthresholdOnandtheoffthresholdOffcanbeprovidedbytheactualvalueofanother
already-programmedfunction:
Analogcomparator:Ax – Ay
Analogtrigger:Ax
Analogamplifier:Ax
Analogmultiplexer:AQ
Analogramp:AQ
Analogmath:AQ
PIcontroller:AQ
Datalatchingrelay:AQ
Up/Downcounter:Cnt
AppliesonlytoAx,Ay,Delta,OnandOffvaluesdisplayedinamessagetext.
Doesnotapplytothecomparisonofonandoffvalues!(Thecomparefunctionignoresthedecimalpoint.)
Thevalueof "On","Off"and "Dec" canbeset/modifiedinparametermode.Forinformationabout
howtoset/modify,refertochapter5.2.2please.(Decmeansdecimalpoint.)
Timingdiagram
QforAx-Ay>200,On=Off=200
Descriptionofthefunction
ThefunctionreadsthevalueofthesignalattheanaloginputAx.
ThisvalueismultipliedbythevalueofparameterA(gain).ParameterB(offset)isaddedtotheproduct,
hence
(Ax ∙ gain)+offset=ActualvalueAx.
(Ay ∙ gain)+offset=ActualvalueAy.
OutputQissetorresetdependingonthedifferenceoftheactualvaluesAx-Ayandthesetthresholds.
Seethefollowingcalculationrule.
Calculationrule
• IfthresholdOn ≥ThresholdOff,then: