158
Descriptionofthefunction
ThefunctionreadsthevalueofthesignalattheanaloginputAx.
ThisvalueismultipliedbythevalueofparameterA(gain).ParameterB(offset)isaddedtotheproduct,
hence
(Ax ∙Gain)+Offset=ActualvalueAx.
OutputQissetorresetdependingonthesetthresholdvalues.Seethefollowingcalculationrule.
Calculationrule
Ifthreshold(On) ≥ threshold(Off),then:
Q=1,iftheactualvalueAx>On
Q=0,iftheactualvalueAx ≤Off.
Ifthreshold(On)<threshold(Off),thenQ=1,if
On ≤ theactualvalueAx<Off.
Note
Thedecimalpointsettingmustbeidenticalinthemin.andmax.range.
SettingtheParparameter
Thegainandoffsetparametersareusedtoadaptthesensorstotherelevantapplication.
Viewinprogrammingmode(example):