Logging data is easy with Tag Historian. Once you have a database connection, all you do is set the tags to store history and Ignition takes care of the work. Ignition creates the tables, logs the data, and maintains the database.
As mentioned previously, the historical tag values pass through the store-and-forward engine before ultimately being stored in the database connection associated with the historian provider. The data is stored according to its datatype directly to a table in the SQL database, along with its quality and a millisecond resolution time stamp. The data is only stored on-change, according to the value mode and deadband settings on each tag, thereby avoiding duplicate and unnecessary data storage.The storage of scan class execution statistics ensures the integrity of the data.
Do the following steps to log history data for your tags:
You can set the UDT to log history data, then all the instances of that UDT will log data without having to edit the individual instances.
Right-click on the UDT (for example, a Motor UDT) and select Edit tag(s).
The Tag Editor is displayed.
In Tag Editor, click a tag (for example, the AMPS tag), select History, and set Store history for this tag to Yes.
Set the following in Tag Editor and click Apply:
History Provider: mysql
Historical Scanclass: Default
Value Mode: Analog
Do the same for the HOA tag but set Value Mode to Discrete because HOA is a discrete state.
Click OK to save.
Now every motor instance automatically starts logging data.