Hi There!
So I’m not sure if there is a way to do this but figured I’d ask.
The process flow is this:
- PLC reads a part number from a QR code and puts it in an OPC tag
- Ignition looks up the part number in the database and populates another tag with a test criteria
- PLC executes test and decides pass or fail based on the test criteria tag
How I am doing this currently is with tag event script on the part number tag, whenever a change occurs run the query and then write the result into the test criteria tag.
What I am wondering, is there a way to just do a query tag that also the PLC can have access to? I.e. Have a query tag that looks up the test criteria of whatever part number is in the part number tag and it’s value is bound to that query result?
This seems so much simpler and more elegant that having an event script to keep up with.
Thanks!
-Kelly