omron — Creating Batch History

Data Logging and Display Batch History Configuration When you add a Trend worksheet (see Trend folder ) and click the Advanced button, the following window will display: Trend Advanced Settings The Batch pane provides the following fields: • Start/Stop (input): Enter the tag that will start/stop your batches. When the tag in this field is set to TRUE (different from 0), IWS will either start saving data to your batch file (if you are using proprietary format), or add a new register to the BatchHistory table on your database, indicating that a batch has been started.

Note that historical data will be saved according to the configuration in the fields Save Trigger and Save On Tag Change options on the Trend Worksheet. • Name (input): This field represents the batch name; its meaning depends on the format selected on the Trend Worksheet: • If you selected Proprietary in the Type field, the Name should comply with the format [Path] , where: • Path : An optional field. If the path is not specified, the batch history file will be stored in the same path as the project_name .app file. • FileName : Name of the batch history file.

• If you selected Database in the Type field, the value in this field will be stored in the Batch_Name field of the BatchHistory table. Tip: You can enter tag names between curly brackets in this field (e.g., C:\MyBatches \{MyTagWithName}{MyTagWithNumber}.hst ). • Delete (input): When the tag specified in this field changes its value, the batch will be deleted. With the Proprietary format, the batch history file will be removed. With the Database format, it will set the Delete field in the BatchHistory table to true, but the saved historical data will remain. The Trend object only sees batches that have the delete field set to 0 (zero). • Existent (output) :

The tag entered on this field will receive the value 1 if the batch specified in the Name field already exists; otherwise the tag will receive the value 0 . • Description (output) : This field is available only when using the Database format. When the tag in the Start/ Stop field changes to TRUE, the register that is added to the BatchHistory table will display the string in this field. Tip: You can enter tag names between curly brackets in this field (e.g., {MyTag}) • Save data even if batch is not running : If this field is unchecked, the historical data will be saved only when the tag in the Start/Stop field is TRUE. Tip:

The Batch Historical data can be displayed to the user in either Graphical or Table format. See Trend Folder or Grid Object to display information in these formats. • Disk Space Control pane: The following options are available: • History Life Time (days) field: Specify how many days to keep the history file on the disk. After the specified period, IWS automatically erases the file. Use this option only for files based on a date. Page 240 InduSoft Web Studio