Variable from basic history in scripting aspect
I am trying to write a script in 'scripting aspect' that will read the stored data from the basic history.
but I don't know how/if I'm able to retrieve the stored data in the basic history to a variable in the scripting aspect.
( I am trying to write a script, that returns the value belonging to the time_date, which I enter.)
but I don't know how/if I'm able to retrieve the stored data in the basic history to a variable in the scripting aspect.
( I am trying to write a script, that returns the value belonging to the time_date, which I enter.)
Voted best answer
I am busy with some scripting myself so i might be able to help but i'm not familiar with the basic history. Can you show some pictures of what you have now and what you want to get/retrieve with the script?
Answers
The basic history is a service standard on the 800xA system (which I'm using). You have to set up a log configuration and then the basic history service holds the data for a specific time.
So far I have this as code (attached as a document), it ain't much. and thats because I'm selecting/creating my desired DateTime in the graphic builder element.
And I don't know how to select a graphic element and then choosing a specific value from that element.
The other problem I'm having is selecting the logged data in basic history. I know that 800xA works with OPC DA for all the active signals and that OPC HDA is used for storing historic data.
And in the scripting accept I need to make a function that reads the stored data in the LOG of a specific object.
So far I have this as code (attached as a document), it ain't much. and thats because I'm selecting/creating my desired DateTime in the graphic builder element.
And I don't know how to select a graphic element and then choosing a specific value from that element.
The other problem I'm having is selecting the logged data in basic history. I know that 800xA works with OPC DA for all the active signals and that OPC HDA is used for storing historic data.
And in the scripting accept I need to make a function that reads the stored data in the LOG of a specific object.
Her is my code for reading from and writing to a general property. I also added a a picture of where to find the properties you can read from and write to.
Add new comment