I want to increment value of one tag after every 1 minute with Boolean value condition of another tag, but I am getting below error.
Error_ExpressionEval(“Expression left operand is null.”)
I have written below expression into newly created expression tag and set execution rate Fixed mode- >
if(({[.]…/5 Mill Service PLC04_S7 Analyzer TCP/E 158_4 MCC2 Lubr_Unit Rough_Answer Line Pump 1 (KM)})=1 , ( (({[.]RunHrs }) +1 ) , ({[.]RunHrs}) )
if(Tag1 = 1, Tag2+1 , Tag2)
I just need to check if the Boolean tag value is 1 then increment the value of current tag by 1 else the the value would be same. I have written that tag expression on tag name RunHrs.
Boolean Tag -
{[.]…/5 Mill Service PLC04_S7 Analyzer TCP/E 158_4 MCC2 Lubr_Unit Rough_Answer Line Pump 1 (KM)}
New Expression Tag -
RunHrs