Production Calendar#

As a BaSyx AAS Web UI user
I want to see the shifts, breaks and maintenance windows of a machine or production line in a calendar
so that I can tell at a glance when the asset is planned to produce, to pause or to be serviced.

Semantic ID#

This plugin is activated when a Submodel has the following semantic ID:

  • https://admin-shell.io/idta/SubmodelTemplate/ProductionCalendar/1/0

Feature Overview#

The Production Calendar plugin visualizes Submodels based on the IDTA Submodel Template Production Calendar (IDTA 02067). The Submodel stores the calendar as an iCalendar file (RFC 5545, .ics). The plugin loads this file, expands its events (including recurring ones) and shows them in a day, week or month view. Below the calendar, the specification extension variables that give the X- properties of the file their meaning are listed.

All times are shown as wall-clock time of the time zone of the calendar (for example Europe/Berlin), independent of the time zone of the browser. The time zone is shown as a badge in the header. The current day is marked and, in the day and week view, the current time, also in the time zone of the calendar.

Production Calendar Plugin, day view

Production Calendar Plugin in the day view: the three shifts of a production day with their breaks#

Key Features#

  • Day, week and month view: Switch between the views with the toggle in the upper right corner. The arrows navigate through time, Today jumps to the production day that is running now. The plugin opens in the day view. Selecting a date in the week or month view opens that day. The week view starts on Monday and shows only the hours in which events occur

  • Day view as timeline: Shows the shifts of one production day as bars on a timeline (similar to a Gantt chart), one row per shift with its breaks and maintenance periods, and a row Planned time that combines all rows without overlaps. The current time is marked by a line

  • Planned times: Above the timeline the planned operating time (all shifts), the breaks, the maintenance and the planned busy time (operating time without breaks and maintenance, as used for KPIs such as in ISO 22400-2) of the production day are shown

  • Shifts, breaks and maintenance: Shifts are shown in green. Break periods (orange) and maintenance periods (red) are drawn inside the shift they belong to. A legend below the calendar lists the kinds that occur

  • Recurring events: Recurrence rules (RRULE, for example every weekday or first Saturday of the month), exception dates (EXDATE, for example public holidays), single changed occurrences (RECURRENCE-ID), RDATE, DURATION and all-day events are supported

  • Time zones: Events with a TZID (and the embedded VTIMEZONE), in UTC or without a time zone (floating) are displayed correctly, also across the change to and from daylight saving time

  • Event details: Select an event to see its name, time, production day, description, location, categories and X- properties

  • Extension variables: The X- properties that are defined in the Submodel (X-PRODUCTION-DAY, X-BREAK, X-MAINTENANCE) are listed in a collapsible section with their role and a in use badge if the calendar uses them. Select a variable to open its specification text

Production Calendar Plugin, month view

Month view of the same calendar#

Production Calendar Plugin, event details

Details of an event#

Usage#

  1. Navigate to a Submodel with the Production Calendar semantic ID in the AAS Treeview

  2. Open the Visualization tab

  3. The plugin opens in the Day view of the production day that is running now. Switch to Week or Month and move through the calendar with the arrow buttons. Use Today to return to the current production day

  4. Select an event to see its details

  5. Expand an entry of Specification Extension Variables to read the specification of the property

Specification extension variables of the Production Calendar Plugin

Specification extension variables below the calendar#

Submodel Structure#

The plugin expects the following structure, based on the IDTA Submodel Template Production Calendar:

idShort

Type

Description

calendar

File (text/calendar)

The iCalendar file (.ics) with the events. Required

specificationExtensionVariables

SubmodelElementList

Optional. One entry per X- property used in the calendar

Each entry of specificationExtensionVariables is a SubmodelElementCollection with:

idShort

Type

Description

variableName

Property (xs:string)

Name of the X- property, for example X-BREAK

variableSpecification

File (text/plain)

Text that describes the meaning and the allowed values of the property

The elements are found by their semantic ID or by their idShort.

How Events are Displayed#

The plugin follows the event model of the IDTA template:

Calendar content

Display

VEVENT

A production time slot (shift), shown in green

X-BREAK

One or more periods inside the shift, shown as breaks (orange). Value: comma separated PERIODs such as 20250310T100000Z/PT30M or 20250310T100000Z/20250310T103000Z

X-MAINTENANCE

Maintenance periods inside the shift (red), same value format as X-BREAK

X-PRODUCTION-DAY

-1, 0 or 1: the shift belongs to the previous, the same or the following production day. Shown in the event details

The periods of X-BREAK and X-MAINTENANCE are given for the first occurrence of the event. For recurring events they apply to every occurrence at the same offset from its start. If a period covers the whole event (for example a maintenance window that lasts as long as the event), only the period is shown, as one event with the name and details of the original event.

The month view shows shifts and maintenance. Breaks are shown in the day and week view and in the details of the shift.

Calendars that do not follow the template are still displayed: An event with X-BREAK:TRUE or X-MAINTENANCE:TRUE, or with a category containing break, pause, maintenance or service, is shown as a break or maintenance event of its own. Events with the category production or shift are shown as shifts, all-day events without any of these hints as other (grey).

Note

The template names the variables X-BREAK, X-PRODUCTION-DAY and X-MAINTENANCE in its text and X_BREAK, X_PRODUCTION_DAY and X_MAINTENANCE in its tables. The plugin accepts both spellings.

Production Day#

X-PRODUCTION-DAY assigns a shift to a production day relative to the calendar day the shift ends on: 0 means the same day, 1 the following and -1 the previous production day (an event that ends exactly at midnight counts for the day it lies in). The day view shows all shifts of a production day. A night shift from Sunday 22:00 to Monday 06:00 with the value 0 therefore appears in the day view of Monday, together with the early and the late shift of Monday, and the timeline of that day starts on Sunday at 22:00. Without X-PRODUCTION-DAY the value 0 is assumed.

Production Calendar Plugin, week view

Week view: shifts with their breaks, a shortened late shift on Friday and the night shift that starts on Sunday evening#

Limitations#

  • The file must be a valid iCalendar document. Otherwise an error message is shown instead of the calendar

  • If the time zone of the calendar cannot be resolved to an IANA time zone (X-WR-TIMEZONE or the TZID of the first VTIMEZONE), the calendar is shown in UTC

  • The calendar is read-only. Editing events is not supported

  • The inheritedFrom reference of the template is not followed. A Submodel without own calendar file shows an error