4.6.1. Tag Expression

For ordinary scaling requirement, user only need to enter any numerical number as needed. For instance, divided by a thousand can be entered as 0.001, or scaling factor like multiplied by a thousand can be entered as 1000. User will soon realize the entered number will be automatically added with some syntax with $ symbol when the cursor is away from the column. As per the examples above, entering 0.001 will change to $*(0.001), and entering 1000 will change to $*(1000). Take note that when the cursor is back to the expression column, the originally entered number will return and ready for update.

Expression for scaling/calculation

With Expression in place, user may do any complicated engineering unit conversion like °C to °F, user may enter (9/5)*$+32 as Input Expression, and ($-32)*5/9 as Output Expression. User can even link several tag inputs into conversion. For a flow calculation that taking frequency as input, user may enter ($/$KFac)*3600*$MFac, whereby MFac & KFac are tags for Meter Factor & K-Factor input respectively..

Another practical PLC raw value linear scaling example, if raw value of 819 represent 10°C, and 4095 represent 60°C, then the input expression shall be entered as ((60-10)*($-819)/(4095-819))+10, conversely the output expression can be entered as (($-10)*(4095-819)/(60-10))+819.