Shift statistics in table form in an HMI application

<< Click to Display Table of Contents >>

Shift statistics in table form in an HMI application

mapp Services V5.16

Requirement

A workday is broken down into shifts. Data from the current shift (shift duration, downtime, etc.) should be available in the application and displayed in the HMI application. It should be possible to export AssetInt data in a CSV file.

 


 

Solution

Component list

MpAssetIntCore (own MpLink): Manages and saves shift data

MpAssetIntTimelineUI (MpLink from MpAssetIntCore): Contains all necessary parameters and structures for establishing a connection to an HMI application and shows the stored shift data, downtime or duration of the shift in table form

Connection diagram

mpassetintusecase_1_connection

 

 

Configuration

The MpAssetIntCore configuration is added. The desired shift division is specified under "Shifts". In addition, the name and format of the export file can be edited under "Export". The starting and ending times of a shift are specified as milliseconds beginning at 12:00 AM (00:00). An hour is 3,600,000 milliseconds. This means that the "Morning" shift starts at 6:00 AM and ends at 2:00 PM.

mpassetintusecase_1_configuration

Using the mapp components

The component MpAssetIntCore is added to collect the shift data, and the MpAssetIntTimelineUI component is added to display the shift data.

The components are connected to one another as depicted in "Connection diagram". The function blocks are then configured.

For information about making a connection to an HMI application using MpAssetIntTimelineUI, see section VC4 templates. The template for MpOeeTimelineUI can be used and adjusted accordingly.

If a connection to an HMI application exists and a shift is active, then a screen in the HMI application will show this. The "MpAssetIntCore.Export = TRUE" command exports a CSV file containing all recorded events to the specified data storage device.

mpoeeusecase_1_data