Simple Animation Question

Hello. I am having a small issue with animations.

I can change the visibility of an object in real time by assigning it to a 'bit' tag, but find that using GETBIT to look at a bit within a word tag does NOT update during real time, only when the screen is 'started'.

I am monitoring the word, and it updates as it should.

Is there any way to 'force' the screen to update (or at least the animation to update) if the monitored tag updates?

Parents
  • Is it possible that your GETBIT function is a blocking function? Blocking functions are not allowed in page animations.
    In your case, you can use BITAND expressions, but not TagRead().

  • Hi.

    I cannot find any info on 'BITAND', unless you mean 'bitwise AND', in which case I cannot figure a way to get a yes / no result for the bit I am trying to isolate.

    Likewise I cannot find 'TagRead' unless you mean 'GetTagValue'

    I'm just trying to reduce the tag count for all of the digital feedback for the plant. If I have to configure bit-level tags for all of the possibilities, then I will quickly go over my project limit.

  • May I ask what version of Plant SCADA you are using? GETBIT and GetTagValue are not a standard Plant SCADA expressions to my knowledge.

    BITAND is a built-in expression for bitwise AND. In Plant SCADA any integer expression that returns a value not equal to 0 is evaluated as TRUE, so in your case (YourTag BITAND 1) would be TRUE if bit 0 of YourTag is high.

    TagRead() is a built-in Cicode function that reads the current value of a tag. This is a blocking function however and therefore cannot be used in animations.

Reply
  • May I ask what version of Plant SCADA you are using? GETBIT and GetTagValue are not a standard Plant SCADA expressions to my knowledge.

    BITAND is a built-in expression for bitwise AND. In Plant SCADA any integer expression that returns a value not equal to 0 is evaluated as TRUE, so in your case (YourTag BITAND 1) would be TRUE if bit 0 of YourTag is high.

    TagRead() is a built-in Cicode function that reads the current value of a tag. This is a blocking function however and therefore cannot be used in animations.

Children