Citect Scada 2018 -Evaluation- Real/Integer Value Unpack to Boolean

Hi,

I've just started evaluating Citect Scada 2018, using the SA_example project, is there a way to unpack a real values (16bit) to boolean values?

I want to read an real/integer value from the Controller, then unpack it to 16 boolean tag within the Citect for use as statuses. 

Thanks for any input,

Regards,

Rune

Parents
  • Hi Rune,
    One option is to use the tag remapping function and map from INT/REAL tag type to 16 individual tags of type Digital. Some information can be found by searching for "remapping" or this link to older help: https://www.citect.schneider-electric.com/webhelp/citect800/#Remapping_Variables_in_an_IO_device.html
    Another option is to create a Cicode function, which uses the BITAND operator to mask the specific bit of the word you want to read. I'd suggest searching on GCS or perhaps someone on this forum can share some sample Cicode they have.
    Kind regards,
    Olivier
Reply
  • Hi Rune,
    One option is to use the tag remapping function and map from INT/REAL tag type to 16 individual tags of type Digital. Some information can be found by searching for "remapping" or this link to older help: https://www.citect.schneider-electric.com/webhelp/citect800/#Remapping_Variables_in_an_IO_device.html
    Another option is to create a Cicode function, which uses the BITAND operator to mask the specific bit of the word you want to read. I'd suggest searching on GCS or perhaps someone on this forum can share some sample Cicode they have.
    Kind regards,
    Olivier
Children
No Data