Machine status calculation with alarm

Overview

The user-defined machine status can be calculated using alarms. The calculation of the machine status can be applied to systems that are connected with SINUMERIK Machine Agent.

Users must add a new calculation:

  1. In the Shopfloor app, go from "Data Mapping List" to "Machine Calculation".

    Roles "Shopfloor Admin" and "Shopfloor User" are required to see app "Data Mapping" on the Shopfloor page.

    178024118539.png
  2. Add a new calculation.

    178024127371.png
  3. Assign a configuration name.

    178025531147.png
  4. Select the variable addresses of the data mapping.

    178025629323.png

    The selected addresses appear:

    178025637899.png

Additional variables can be added.

178025723275.png

Currently, 4 conditions are permitted:

  • No error

  • Technical error

  • Organizational error

  • In production

  1. Enter your algorithm.

    178025859851.png
  2. Click on "Save".

    178025868427.png
  3. Apply a calculation to a system.

    178026094603.png
  4. Select the algorithm.

    178026474379.png

    NOTE

    The calculation is realized in the sequence from top to bottom. No further evaluation takes place if an expression matches.

    For example, if condition "No error" is true, then this is not evaluated any further. The machine status is set to "No error", even if the algorithms are true.

    178026482955.png

    Users can define a logical condition with alarms, for example with SINUMERIK:

    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"

Configuration panel - restrictions

A new configuration can be added and edited; however, it cannot be deleted.

178026568331.png

NOTE

The name of a calculation may not contain any special characters.

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

178026756107.png
178026764683.png
  1. Assign a unique name.

    178026862859.png
  2. Under "Data Mapping Selection" select up to 5 user-defined variables.

    178026986635.png

    If the data type of the variable is specified as a string, then the text is displayed in single quotation marks.

    178026995211.png

There must be no spaces between the variable names, for example feed rate, NC program status, spindle override etc.

178027131787.png

The text box must not contain "Alarm". "Alarm" is reserved.

Example:

Alarm=='my expected alarm'  results in an error.