I have two OPC tags and a table in a database. I want to use one of the tags to look up on the table the write back on to the other tag.
So, Tag one is Model_Number, tag two is platfrom
Table date something like this
id Model_Number Platform
1 XXXX0001 YYYY0000
2 XXXX0002 YYYY0000
3 XXXX0003 YYYY0001
4 XXXX0004 YYYY0001
5 XXXX0005 YYYY0000
The Query will look something like this:
SELECT Platform
FROM table
WHERE ModelNum = {Model_Number}
I want to write back to the PLC with the Platform info that I looked out.
Read the Model_Number tag, then write to the Platform tag.
Read Model_number = XXXX0001,
Write Platform = YYYY0000
Is there a way to do this?
Thanks for your help.