Using Tag BIT Value for calculation
Posted: Tue Oct 13, 2020 10:47 am
Hi
I wants to know that if Tag BIT value can consider as the integer of '1' or '0'?
And I wants do some multiplication as follow:
Globals.Tags.ch1State.Value = (Globals.Tags.Application_CH1ST.Value*2)+Globals.Tags.Application_CH1AL.Value*3)+Globals.Tags.Application_CH1MD.Value*5);
the xxxState.Value is to use for multipicture display.
I wants to know that if Tag BIT value can consider as the integer of '1' or '0'?
And I wants do some multiplication as follow:
Globals.Tags.ch1State.Value = (Globals.Tags.Application_CH1ST.Value*2)+Globals.Tags.Application_CH1AL.Value*3)+Globals.Tags.Application_CH1MD.Value*5);
the xxxState.Value is to use for multipicture display.