Using Tag BIT Value for calculation

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
derguang
Posts: 1
Joined: Tue Jul 09, 2019 7:59 am

Using Tag BIT Value for calculation

Post by derguang »

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.
Attachments
tag_address.png
tag_address.png (117.58 KiB) Viewed 1619 times
Regards
DerGuang

Post Reply