Hello,
I have a newbie question:
Whats the best way to keep the DB and a Tag in sync given this: I have a Set-point stored in the PLC and also in the database. I also have a Vision window where the user can change the value of the set-point. I also have the concern that if the PLC power supply fails I can lose the value of the set-point but if it’s stored on the DB it can be recovered. so, what should I do:
I have thought of these options
- Bind a screen numeric input to the tag and add a script to update the DB
- the numeric input stores the data in the DB and a SQLBridge transaction updates it to the PLC
- the numeric input writes to the tag and a SQLBridge transaction updates the DB (but would this work when the PLC loses the set-point?)
Any guidance will be very appreciated