Description

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Description

mapp Services V5.16

The same MpLink used by MpAssetIntCore is used for this function block.

The configuration can be changed at runtime using the function block.

Parameter "Configuration" makes it possible to edit a configuration or a part thereof.

Command "Load" is used to read out the currently configured parameters. The currently active configuration on the controller is written to the PV on input "Configuration". This overwrites the data in the structure. Values can then be edited as needed.

Command "Save" applies the values from structure "Configuration" to the active configuration; they are then applied immediately if possible.

mpconfig_explanation

To adjust the configuration parameters in the application correctly, proceed as follows:

1. Command "Load = TRUE"

Loads the current configuration from the target system to the configuration structure. The procedure is completed with "CommandDone = TRUE".

2. Command "Load = FALSE"

Resets command "Load". The procedure is completed with "CommandDone = TRUE".

3. Configure the configuration structure.

The parameters of the configuration structure can now be adjusted as desired.

4. Set command "Save = TRUE".

Transfers the changed configuration structure to the target system. The procedure is completed with "CommandDone = TRUE".

5. Set command "Save = FALSE".

Resets command "Save". The procedure is completed with "CommandDone = FALSE". Steps 1 and 2 can be performed again to check whether the parameters have been changed successfully.

Configuring structure MpAssetIntCoreConfigType

This configuration defines the individual shifts involved with working on the machine. The following settings are defined using parameter "Shifts":

Name of the shift

Starting and ending point of the shift

Scheduled downtime (e.g. lunch break)

An entry is created for each new state of the machine. Where this is saved can be defined with "RecordMemory". The following options are available:

mpASSETINT_MEM_SRAM: The first choice, whenever possible. If sufficient SRAM is available, all entries can be stored here directly, with the size determined by "RecordingSizeShiftStatistics" or "RecordingSizeTimeline".

mpASSETINT_MEM_ROM: If there is not enough memory in RAM, then this setting can be used to transfer each entry to USER ROM, with the size defined by "RecordingSize". The entries remain if the controller is switched off. Data is first saved to DRAM before being transferred to USER-ROM after each save interval. The save interval is defined with "SaveInterval".

mpASSETINT_MEM_TEMP: If sufficient DRAM is available, all entries can be stored here directly, with the size determined by "RecordingSizeShiftStatistics" or "RecordingSizeTimeline". Disadvantage: Data is lost when the controller is switched off.

SRAM: When using battery-backed memory, there must be sufficient memory reserved in the controller configuration. The collected data is saved temporarily to a data object and then backed up in SRAM. Can only be used if the hardware being used is equipped with SRAM memory.

memoryconfiguration

Parameter "EnableFileBackup" defines whether files should be backed up or not.

If the current data is exported, the system proceeds according to the values configured under "Export" (MpAssetIntExportType). The name of the file with the current entries is defined using "JobStatisticsFileNamePattern", "ShiftStatisticsFileNamePattern" or "TimelineFileNamePattern":

Default format: ShiftStatistics_%Y_%m_%d_%H_%M.csv (e.g. "ShiftStatistics_1990_03_25_01_13")

Modified format (example): Audit_%d_%m_%Y (e.g. "Timeline_25_03_1990")

The following are additional options for adjusting the format:

Token

Description

%u

Use UTC time (otherwise, local time will be used)

%H

Hour in 24-hour format. Leading zero if necessary: 00 - 23

%I

Hour in 12-hour format. Leading zero if necessary: 01 - 12

%k

Hour in 24-hour format: 0 - 23

%M

Minute within an hour. Leading zero if necessary: 00 - 59

%S

Seconds within a minute. Leading zero if necessary: 00 - 59

%L

Milliseconds within a second. Leading zero if necessary: 000 - 999

%z

Local shift to UTC time

%s

Seconds since 1 January 1970

%C

Four-digit year divided by 100. Displayed with two digits. Leading zero if necessary: 00 - 99

%Y

Year as a four-digit number. Zero at the beginning if necessary

%y

The last two digits of the year. Leading zero if necessary: 00 - 99

%m

Month. Leading zero if necessary: 01 - 31

%d

Day of the month. Leading zero if necessary: 01 - 31

%e

Day of the month: 1 - 31

%R

Time in 24-hour format: "%H:%M"

%T

Time in 24-hour format: "%H:%M:%S"

%D

Date in the following format: "%m/%d/%y"

%F

Date in ISO 8601 format: "%Y-%´m-%d"

%c

Date and time in the following format: "%F %T.%L"

Which data should be exported can be defined using parameter "RecordingSizeJobStatistics", "RecordingSizeShiftStatistics" or "RecordingSizeTimeline". When saving data in .csv format, the contents of the "ColumnSeparator" string are used to split up the data. The "DecimalMark" string defines the appearance of the decimal separator.