Hello, I currently have an application in which I save data to Edge Panel periodically. Is there a way to do it with a trigger—that is, every time I activate a bit in the PLC, save the data?
What data are you saving? Are you saving it to a file? What are you using the data for? Why are you storing it?
If you are just saving to a file(like a .csv) you could probably get away with configuring a gateway tag change event to write another row to the CSV every time the PLC signals to.
The data I’m storing are PLC tags, and I’m saving them to later display a history of those values. However, I only need to save them with a trigger from the PLC, not periodically
You will have to script this, typically on a tag change event, as the primary non-script tool to do triggered value saves is the SQL Bridge module, which requires a DB connection, and is therefore not usable on Edge.
Couple of options, both utilizing a tag change script:
- Store short term "transaction" history to a dataset tag on Edge gateway.
- Store long term to database using message handler sent to a full gateway w/ SQL Bridge.