Applies To:
  • CitectSCADA 7.0
  • CitectHMI 7.0
  • CitectFacilities 7.0
  • CitectSCADA Batch 7.0
  • CitectSCADA Pocket 7.0

Summary:

invalid data conversion hardware alarm when doing bit operation such as Tag1 = Tag1 bitand 0xFFF7

 

Solution:

Internally, operations like "bitand" deal with LONG operands -i.e. 32 bits.

Therefore Tag1 bitand 0xFFF7 is actually doing Tag1 bitand 0x0000FFF7 which gives a completely different result.

What you need to do is is specify all 32 bits in the mask and there will be no problem:

Tag1 bitand 0xFFFFFFF7

 

Keywords:
 

Attachments