Citect Syntax

A

Thread Starter

Anonymous

Hi

I believe it is possible to evaluate an analogue tag in Citect at the bit level for animation in a display. The local Citect rep confidently told me the delimiter was bit number. This generates a compile error. Any help appreciated.
 
B

Batch Control Systems

It is possible to evaluate the tag using the BITAND function as follows:
for bit 1
%tag% BITAND 0x1
for bit 6
%tag% BITAND 0x40 {0x40 being the hex value of bit 6}

hope thats a help

The Batch Control Systems Team.

p.s if you've already found this solution do you know a way of writing to bits?

contact at [email protected]

cheers
 
Top