System Platform 2020 R2 - Data Change with OR Expression

Tanquen

Member
Join Date
Jul 2014
Location
CA
Posts
163
Why can't you use a data change with an OR expression.

Like Tag1 OR Tag2 Or Tag3? It kind of works but unless a make three data change scripts it's inconsistent.
 
Tag1 OR Tag2 will do a bitwise Or of the two values, and look only for changes in these.
So if Tag1 is currently 2#1111_1110 (254 in decimal) then only changes to the first bit of Tag2 will be detected.

The use of three change detections is correct here.
 
I was using 4 tags and they are all boolean. There is no way to make it work? Like: (Tag1) or (Tag2) or (Tag3) or (Tag4)

Just seems odd to have 4 or 5 or more scripts that are all the same because you can't put more than one tag in the data change expression.

Computers... o_O
 
I'll give that a try. I've done stuff like that in the past for color or visibility expressions.
 
Doctor, the issue is that the result of ((Tag1 OR Tag2) OR Tag3) OR Tag4 only changes it's value when they either become all off, or become no longer all off.

He has
][ OSR ( )
][ OSF
][
][

when he needs
][ OSR ( )
. OSF
][ OSR
. OSF
][ OSR
. OSF
][ OSR
. OSF

You will just have to imagine where all the lines should go
 
Ich weiß es nichts; I have thick skull today.


Does OP want a one-shot when any one of the TagN values changes? Or when any one has a rising edge?


Or are they looking for a flip flop, that toggles when any one of the four change?
 
Last edited:
Ich weiß es nichts; I have thick skull today.


Does OP want a one-shot when any one of the TagN values changes? Or when any one has a rising edge?


Or are they looking for a flip flop, that toggles when any one of the four change?

It's to run a script on data change. So if any of the tags change their value the script should run.

This seemed to work:
Tag1 + (Tag2 * 2) + (Tag3 * 4) + (Tag4 * 8)
 

Similar Topics

Hi guys, I facing some issue regarding the Historical Alarm settings. Currently my historian is configured as High-Speed storing method, and...
Replies
1
Views
357
Is there a way to tie the ability to acknowledge different alarm priority or severity levels with security roles? It's not looking like there is...
Replies
0
Views
1,045
Seems odd that you can make a symbol and place many of them but if the text on a button and or elsewhere in the symbol comes from a Custom...
Replies
0
Views
1,657
Hello, I am trying to implement some data coming from an Compressor Controller, but cant quite figure out what i am supposed to put into the...
Replies
0
Views
138
Hi all. I received two identical brand new Dell desktops from a customer to install the softwares for a project. The first one is for a...
Replies
3
Views
529
Back
Top Bottom