Mikhail, for me personally your answer is not clear. You propose to operate with units but….. how to create formula with reference to the different units?
I also tried to create input channel (type of channel=”Calculated tele signal”, format=”Text”) which outputs text values using following function (for dynamic outputting text values in the Web-browser):
MyMode(GetBit(Val(308),1)) – here I read value from channel 308 (it ‘working OK) and try to get text for output value.
public String MyMode(double val)
{
if (val==0.0)
{
return “Stop”;
}
else
{
return “Running”;
}
}
But the formula is not working (in diagnostic windows everything is OK) and I feel that my way is wrong…..
What’s wrong?