Creating work shifts for a facility or an area allows one to trend data with a specific view into what happened during a specific work shift. The duration picker in the Trend application will provide work shifts as an option for trending data if they have been created in the Model.
The Smart Equipment library provides two Types that are necessary for creating Work Shifts: Work Shifts Container and Work Shift.
Work Shift Containers
The Work Shift Container serves as a repository for instances of Work Shifts. Placing Work Shifts inside the container causes the Duration Picker to show shifts as time ranges in the Trend Application. If multiple work shift containers are found, all shifts will be shown in the time ranges.
The Work Shift Container is an organizational structure. Its job is to contain, or hold, Work Shift instances. As such, the Work Shift Container does not have any associated attributes.
Work Shifts Containers are created on instances in the Model, and the instance should be of the type 'Place'. In the model, a Place can be a plant, a farm, a processing area, a site - this is unique to your model. Work Shifts Container should be placed wherever they make sense - wherever you want to track processes by shift.
If your organization uses only one shift model, you can create a Work Shifts Container at the 'top' level of your model. If you have different shifts for different production areas and need to track production by shift, create a Work Shifts Container for each area. When you create a Work Shifts Container, you can change the name to whatever you find most intuitive: perhaps just 'Work Shifts' or 'Shifts - Processing '. The type, however, must be Work Shifts Container.
Once a Work Shift Container is created in the Model Explorer, Work Shifts can be added inside the container.
Work Shift
The Work Shift type provides a template for creating Work Shifts inside a Work Shift Container. An entry should be created for each shift.
For example, if you have three shifts, Day Shift, Swing Shift, and Night Shift, create three Work Shifts. Name them so they will be recognizable to your team: Day, Swing, Night. It isn't necessary to repeat 'shift': in the Duration Picker in Trend will display all shifts under a Shifts heading.
There are nine attributes associated with each shift:
Start Offset: The Start Offset serves as the starting time of the Work Shift.
The offset starts at midnight. A shift that starts at 7 a.m. would have an offset of 7 hours, and would display as 07:00:00. The offsets are displayed in military time. The data type of the offset is Interval and the Config Value provides an interface for adding the number of hours, minutes, and seconds of the shift offset.
Shift Duration: The Shift Duration serves as the duration of the Work Shift.
A shift that runs from 7 a.m. to 5 p.m. would be a 10 hour shift and would display as 10:00:00 (or 09:59:59). The data type of the offset is Interval and the Config Value provides an interface for adding the hours, minutes, and seconds of the shift duration.
Sunday: A Boolean: Does the Work Shift occur on Sundays?
Monday: A Boolean: Does the Work Shift occur on Mondays?
Tuesday: A Boolean: Does the Work Shift occur on Tuesdays?
Wednesday: A Boolean: Does the Work Shift occur on Wednesdays?
Thursday: A Boolean: Does the Work Shift occur on Thursdays?
Friday: A Boolean: Does the Work Shift occur on Friday?
Saturday: A Boolean: Does the Work Shift occur on Saturdays.
When you create a Work Shift in a Work Shifts Container, be sure it is of the type Work Shift.
Integration with UI Components
Work shifts are integrated with the Duration Picker UI component, therefore one can use shifts in any of the components that are integrated with our duration picker. An example of this is the Time-in-State component. When combining the Duration Picker with the Time-in-State component, work shifts can be used to dictate the time period the Time-in-State component displays.