Machine status calculation

Requirement

Users must add a new calculation by switching from the Data Mapping List tab in the Shopfloor Management Application to the Machine Calculation tab.

The Shopfloor Admin or Shopfloor User role is required to view the sub-application for data mapping on the shopfloor side.

Overview

The new function to calculate the machine status allows different algorithms to be used. A new calculation must be added so that a new calculation can be applied.

List view of all calculations in clients:

174212157067.png
  1. Add a new calculation.

    174224440843.png
    174224692619.png
  2. Enter a name.

    174225097995.png

    NOTE

    Calculation name

    The calculation name may not contain any special characters.

    Do not use the following characters: ?, :, *, &, ", $, |, `,<,>, +, !, [, ]

  3. Ensure that the name is unique.

    176150660491.png
  4. From the assigned data, select up to 5 user-defined variables.

    176150758027.png
  5. From the assigned data, select the optional addresses of variables.

    174225106571.png
  6. Select the addresses.

    174225268747.png

    The selected addresses can be seen here:

    174226634123.png
  7. Add additional variables.

    174226642699.png

    NOTE

    String variables

    If the data type of the variable is specified as a string, the expected text must be wrapped in single quotation marks (').

    176150762123.png

    NOTE

    Variable names

    There must be no spaces between the variable names, for example:

    • Feedrate

    • NC program status

    • Spindle override

    • etc.

    The following input fields can be seen:

    174226932875.png

Example of a variable with string data type:

174227235851.png

Enter algorithm expressions for every condition

These conditions are permissible:

  • No fault

  • Technical fault

  • Organizational fault

  • Production

The calculation is realized in the sequence specified above from top to bottom. If expressions apply, then they are not evaluated any further.
For example, if expression "No fault" is true, then it is no longer evaluated and the machine status is set to "No fault" even if the other algorithms are also true.

The sequence is important.

For string variables, the expected text must be enclosed in single quotation marks (').

Condition "myStringVariable" should be the same as "myExpectedString". This means that the expression is written as follows: myStringVariable=='myExpectedString'.

The user can define a logical condition with alarm as follows:

For onboarded assets with SINUMERIK, i.e.:

  • Alarm == [60000, 60001]

  • Alarm == 60000

For onboard assets with Machine Agent:

  • Alarm ==["/channel[1]/PS/0004", "/channel[1]/PS/0005"]

  • Alarm == "/channel[1]/PS/0004"

174257114123.png
  1. Click on the plus icon to write the algorithm.

    174257122699.png
  2. Select the variable or expression.

    174257438475.png
    174257792651.png
  3. Click on "Save" once you have entered the algorithms.

    174257801227.png

    The following information can be seen:

    174257976203.png

    Further editing is possible; however, deletion is not possible.

    174258048779.png

Applying a calculation to an asset value

174257015947.png
  1. Select the algorithm.

    174256213515.png
  2. Click on "Apply".

    174254604811.png
    174254613387.png

    The result is displayed:

    174256204939.png

If an algorithm has already been applied to an asset, then this is displayed at the top. A user can always change the applied algorithm.

174255581963.png