MES Schedule Selector - Perspective

Sepasoft MES Module Suite

Description

The MES Schedule Selector is a table component that can be used to view and manage production schedules. The schedule entries may be filtered by Active, Complete or Incomplete states.  The nature of the schedule entry trigger - Auto or Manual - is also shown.  In the example below, manually initiated schedule entries are shown.



Production section of
Component Palette



Component Properties

Properties are provided that can be set to affect the operation and look of the component. They can be set through the Perspective Property Editor in the Designer or through scripting. Note that the section prefix is included before the property name (props, position, custom or meta).

Example

Code
self.getSibling("mesScheduleSelector").props.includeMESLineObjects = True

PROPS

Component Properties

NameScriptingProperty TypeDescription
End DateendDateDateEnd of the time range to display.
Enable Simultaneous ActiveenableSimultaneousActiveBooleanIf true, allows multiple operations to be active at the same time.
Equipment PathequipmentPathStringPath to the equipment to show the schedule.
IconsiconsComplex?

Available Icons parameters: search, start, stop, toggleColumnVisibility.

Example:

Include Manual IncompleteincludeManualIncompleteBooleanIf true, include manual start incomplete schedule entries in the list.
Include Manual ActiveincludeManualActiveBooleanIf true, include manual start active schedule entries in the list.
Include Manual CompleteincludeManualCompleteBooleanIf true, include manual start completed schedule entries in the list.
Include Auto IncompleteincludeAutoIncompleteBooleanIf true, include auto start incomplete schedule entries in the list.
Include Auto ActiveincludeAutoActiveBooleanIf true, include auto start active schedule entries in the list.
Include Auto CompleteincludeAutoCompleteBooleanIf true, include auto start completed schedule entries in the list.
Operations Request UUIDoperationsRequestUUIDStringThe UUID for the MESOperationsRequest object associated with the schedule entry.
Operations Response UUIDoperationsResponseUUIDStringThe UUID for the MESOperationsResponse object associated with the schedule entry.
Run Control Menu EnabledrunControlMenuEnabledBooleanEnables the Run Control popup menu by mouse right-click on a row in the table.
Search EnabledsearchEnabledBoolean<<< ???????? >>>
Sorting EnabledsortingEnabledBooleanEnables automatic multi-column sorting by clicking and CTRL-clicking on the table header.
Start DatestartDateDateBeginning of the time range to display.
Table Column Reordering AllowedtableColumnReorderingAllowedBooleanEnables the re-ordering of columns by dragging the column headers.
Table Column Resizing AllowedtableColumnResizingAllowedBooleanEnables the resizing of columns by dragging the margins of the column headers.
Table ColumnstableColumnsComplex?Table data, by column. Descriptions provided below this table.
Table Grid Lines HorizontaltableGridLinesHorizontalBoolean<<< ???????? >>>
Table Grid Lines VerticaltableGridLinesVerticalBoolean<<< ???????? >>>
Table Header VisibletableHeaderVisibleBooleanAllows for hiding the table's header.
Toolbar Column Chooser EnabletoolbarColumnChooserEnableBoolean<<< ???????? >>>
Toolbar TitletoolbarTitleStringToolbar title string.
Toolbar VisibletoolbarVisibleBoolean<<< ???????? >>>



The Table Columns property (shown in table above) has the following available columns:

NameScriptingProperty TypeDescription
DescriptiondescriptionStringThe operation name.
Scheduled BeginscheduledBeginDateTimeThe currently-scheduled begin DateTime, taking into account automatic delays by the system. This DateTime changes minute by minute if the current time causes the schedule to be pushed out (e.g. if an operation has not yet been started but was scheduled to be started at some point earlier, it will keep getting pushed out minute by minute to keep up with the current DateTime).
Scheduled EndscheduledEndDateTimeThe currently-scheduled end DateTime, taking into account automatic delays by the system. This DateTime changes minute by minute if the current time causes the schedule to be pushed out (e.g. if an operation has not yet been started but was scheduled to be started at some point earlier, it will keep getting pushed out minute by minute to keep up with the current DateTime).
Actual BeginactualBeginDateTimeThe DateTime that the operation actually began. This property will read back as "None" until the operation actually begins.
Actual EndactualEndDateTimeThe DateTime that the operation actually ended. This property will read back as "None" until the operation actually ends.
StatestateStringThe schedule state.
Percent CompletepercentCompleteDoubleThe operation progress.
Operations Request UUIDoperationsRequestUUIDStringThe UUID for the MESOperationsRequest object associated with the schedule entry.
Operations Response UUIDoperationsResponseUUIDStringThe UUID for the MESOperationsResponse object associated with the schedule entry.
Work Order UUIDworkOrderUUIDStringThe UUID for the MESWorkOrder object associated with the schedule entry.
Work OrderworkOrderStringThe name of the work order associated with the schedule entry.



There are also several styling properties available:


Each property above can be edited for text, background, margins and padding, border, shape, as well as opacity, cursor and overflow characteristics:

Ignition Style Editor

Information

Refer to the Ignition 8 docs page Style Reference for information on modifying the properties listed below.

NameScriptingProperty TypeDescription
Button StylebuttonStyle
<<< ???????? >>>
Menu StylemenuStyle
<<< ???????? >>>
Table StyletableStyle
<<< ???????? >>>
Table Header StyletableHeaderStyle
<<< ???????? >>>
Toolbar StyletoolbarStyle
<<< ???????? >>>
Tooltip StyletooltipStyle
<<< ???????? >>>

POSITION

Position Properties

The component position properties aren't usually changed by users during runtime, but they can be written and read in the same manner as other properties, if ever needed. Refer to Ignition Perspective Component Properties for details on POSITION properties. 

New user-defined position properties can be created in this section.

User-defined Properties

Information

Best practice: If user-defined properties are required, create them in the CUSTOM section instead of here.

CUSTOM

Custom Properties

New user-defined custom properties can be created in this section.

META

Meta Properties

This section contains the name and visibility properties for the component. 

New user-defined meta properties can be created in this section.

User-defined Properties

Information

Best practice: If user-defined properties are required, create them in the CUSTOM section instead of here.




Event Handlers

Event handlers provide the ability to add custom script when a user interacts with a component.

Refer to the Ignition User Manual for details on using the available event handlers:


initialize

  • Description

Called when the window containing this table is opened, or the template containing it is loaded. Provides a change to initialize the table further, for example, selecting a specific row.

  • Parameters

self - A reference to the component that is invoking this function.

  • Return

Nothing

  • Scope

Client


onDoubleClick

  • Description

Called when the user double-clicks on a table cell.

  • Parameters

self - A reference to the component that is invoking this function.

rowIndex - Index of the row, starting at 0, relative to the underlying dataset.

colIndex - Index of the column starting at 0, relative to the underlying dataset.

value - The value at the location clicked on.

event - The MouseEvent object that caused this double-click event.

  • Return

Nothing

  • Scope

Client


onPopupTrigger

  • Description

Called when the user right-clicks on a table cell. This would be the appropriate time to create and display a popup menu.
Note: Set the Run Control Menu Enabled property to False so that the Run Control Menu won't override onPopupTrigger on right-click.

  • Parameters

self - A reference to the component that is invoking this function.

rowIndex - Index of the row, starting at 0, relative to the underlying dataset.

colIndex - Index of the column starting at 0, relative to the underlying dataset.

value - The value at the location clicked on.

event - The MouseEvent object that caused this double-click event.

  • Return

Nothing

  • Scope

Client





Component Functions

This component provide the following functions that can be called on it. If this component has been dropped onto the windows root container, the path and an example call would be self.getSibling('MES Schedule Selector').beginSelected().

beginSelected()

  • Description

This script function will begin the operation for the currently selected schedule entry. The schedule entries that appear in the MES Schedule Selector component reflect the operations requests that have been created for the equipment specified by the Equipment Path property. Typically, operations requests are created using the MES Schedule View component but can also be created using script functions for importing.

  • Parameters

None

  • Return

Nothing

  • Scope

Client

endSelected()

  • Description

This script function will end the selected operation for equipment specified by the Equipment Path property. All segments running underneath the selected operation, must be ended prior to calling this script function.

  •  Parameters

None

  • Return

Nothing

  • Scope

Client

abortSelected()

  • Description

This script function will abort the selected operation for equipment specified by the Equipment Path property. When the operation is aborted, all active segments running underneath it will also be aborted.

  • Parameters

None

  • Return

Nothing

  • Scope

Client

beginNext()

  • Description

Based on the scheduled start time, this script function will begin the operation for the next selected schedule entry. The schedule entries that appear in the MES Schedule Selector component reflect the operations requests that have been created for the equipment specified by the Equipment Path property. Typically, operations requests are created using the MES Schedule View component but can also be created using script functions for importing.

  •  Parameters

None

  • Return

Nothing

  • Scope

Client




Sepasoft MES Module Suite