175
6.5.30AnalogMath
ShortDescription
TheanalogmathblockcalculatesthevalueAQofanequationformedfromtheuser-definedoperands
andoperators.
Connection Description
Input EN Enabletheanalogmathfunctionblock.
Parameter V1:Value1:Firstoperand
V2: Value2:Secondoperand
V3: Value3:Thirdoperand
V4: Value4:Forthoperand
Operator1: Firstoperator
Operator2: Secondoperator
Operator3: Thirdoperator
Priority1: Priorityoffirstoperation
Priority2: Priorityofsecondoperation
Priority3: Priorityofthirdoperation
P: numberofdecimals
Rangeofvalues:0,1,2,3
Output AQ TheoutputAQistheresultoftheequationformedfromtheoperandvaluesand
operators.AQwillbesetto32767ifadivideby0oroverflowoccurs,and-32768
ifanegativeoverflow(underflow)occurs.
Parameterp(numberofdecimals)
ThevaluesV1,V2,V3,andV4canbeprovidedbytheactualvalueofanotheralready-programmed
function:
Analogcomparator:Ax – Ay
Analogtrigger:Ax
Analogamplifier:Ax