Live Analysis

Sepasoft MES Module Suite

Live Analysis

Live Analysis provides a flexible way of customizing your application to provide a set of real-time tag values that can be accessed from the Ignition Designer and used in your application to provide real-time production monitoring. Live Analysis is configured in the MES Equipment Manager for the Line, Cell Group and Cell production items. When a Live Analysis is created, a corresponding set of tags is created in the MES Tag Provider that provide the real-time status of those datapoints based upon the Period defined for the Live Analysis. You can create multiple Live Analysis and use those tags to drive HMI displays.

DateTime Tags Display Differently in Ignition 7 versus Ignition 8

Warning

DateTime Tags in Ignition 7 and Ignition 8

As an example, consider two Ignition Gateways, one is Ignition 7, the other Ignition 8. Both gateways are set to UTC, while the Designer/Client machine is set to PST. There is a 7 hour difference between UTC and PST.

In Ignition 7, Date tags translate to PST.

In Ignition 8, Date tags show as UTC


Create a New Live Analysis Profile

To complete these steps, you must have at least one Line in your Production Equipment Model.

  • In Equipment Manager, select a line, cell group or cell and from General, click Live Analysis.
  • Add Live Analysis and then Edit Live Analysis.
  • Refer to the Live Analysis Settings table to configure the live analysis.
Warning

You cannot select all Data Points in one Live Analysis. The maximum length string for Data Points is 1024 characters

Live Analysis Settings

SettingDescription

Analysis Name

The name for the live analysis

Enabled

The live analysis can be enabled or disabled with this setting

Period

The duration of analysis can be set by:

  • Shift - The schedules that are defined with Ignition's Schedule Management component will be used to determine the duration of analysis. Refer to the table below: Shift Data Points in Live Analysis
  • Day (midnight) - This duration starts from 12 AM.
  • Day (production) - This starts from the day's first shift.
  • Start of Run - The duration of analysis begins when the operation start running.
  • Top of Hour - This is the beginning of the hour. So if the analysis is run at 6:45 PM, it will cover from 6:00 PM to 6:45 PM.
  • Current Active Recipe Period - This duration starts from the beginning of the current active recipe selection, and ends upon recipe cancellation or change.
  • Custom Period Tag - A tag is set to control the analysis duration.
Note If a production run is not active, Start of Run shows last production run values.
Note If the Gateway is licensed to use Settings & Changeover module, the "Current Active Recipe Period" Live Analysis period is enabled.

Custom Period Tag

A tag can be assigned to define the start datetime for a custom period. The end time will be the current time. It takes value in the date time data type. Example for a valid value for the custom period tag is: 2017/04/04 14:00:00

Warning

If your Custom Period Tag changes regularly (e.g. every minute or similar), you should place Disable Live Cache=True into the Settings Values field. This will prevent new cache files from being generated every time the tag changes, but will also mean that it won't use the caching functionality built into Live Analysis.

Update Rate

The rate in seconds by which the live analysis is updated. The minimum update rate is 60 seconds. Default value is 60 seconds.
Data PointsData points allows you to pick and choose the values you wish to access through tags. See the table below for the listing of available data points
Optional Filter

The optional filter has the same rules as the analysis selector filter but it must not contain any of the following since live analysis is already filtered to an equipment:

  • Equipment Path
  • Equipment Name
  • Equipment Type
  • Equipment Cell Order
  • Is Key Cell

Example: filter_expression = "Shift='Morning' AND (Line State Type='Planned Downtime' OR Line State Type='Unplanned Downtime' OR Line State Type='Unknown')"

Setting ValuesVarious filters and qualifiers are available to refine live analysis results. See Analysis Data Points and Settings > Setting Values.

A new folder with your live analysis name will be added to MES tag browser.


Shift Data Points in Live Analysis

When creating a Live Analysis, the following shift data points will be automatically created.

Data PointData TypeDescription
AvailableBooleanTrue if the line is currently within an available period.
Available Begin DateDateTimeIf in an available time, this is the time that that availability began. If in an unavailable time, it reflects the begin date of the most recent availability period.
Available End DateDateTimeIf in an available time, this is the time that that availability ended. If in an unavailable time, it reflects the ending date of the most recent availability period.
Current ShiftStringThe currently running shift as defined in the Ignition Schedule Management component or passed from the Shift Tag Collector path.
Production Day Begin DateDateTime

Start time of the production day's first shift.

Note Example:
Shift 1: Monday 6AM to Monday 2PM
Shift 2: Monday 2PM to Monday 10PM
Shift 3: Monday 10PM to Tuesday 6AM
If it is currently Tuesday at 4AM, then Production Day Begin Date is Monday 6AM, since that is when the first shift of the production day began (Shift 3 is still part of Monday's 3-shift production day).
Shift Begin DateDateTimeStart time of the Current Shift (the time the Current Shift tag first changed to a given value).
Shift End DateDateTimeEnding time of the Current Shift.

Sepasoft MES Module Suite