system.mes.monitor.value

Sepasoft MES Module Suite

Description

Records any value. Metrics will be calculated if the value is numeric.

Syntax

system.mes.monitor.value(name, value)


  • Parameters

String name - The name to identify this metric by. Using '/' in the name will create sub folders in the Tag structure.

String value - The value to be recorded. Metrics will only be calculated if the value is numeric.

  • Returns

Nothing

  • Scope

All

Code Examples

Code Snippet

Code
#Read a user-input value from a Numeric Text Field component and create/update a monitor value
x = event.source.parent.getComponent('Numeric Text Field').doubleValue
system.mes.monitor.value('MyValue2', x)


The monitor value appears in Metric Categories list in the MES Monitor component:

The associated Tag value is also updated:

Sepasoft MES Module Suite