14 MachineMESStatusType

14.1 MachineMESStatusType Definition

This ObjectType represents the current status of a machine related to the MES. It is formally defined in Table 43.

Figure 9 – MachineMESStatusType Overview
Table 43 – MachineMESStatusType Definition
Attribute Value
BrowseNameMachineMESStatusType
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:BaseObjectType defined in OPC UA Part 5
0:HasPropertyVariableStandstillReasonId0:String0:PropertyTypeM, RO
0:HasComponentObjectStandstillMessageStandstillMessageTypeM
0:HasComponentObjectMESMessageMESMessageTypeM
0:HasComponentMethodSetMESMessageM
0:HasComponentMethodClearMESMessageM
0:HasComponentObjectProductionControlProductionControlTypeM
GeneratesEventObjectTypeMessageConditionTypeDefined in 14.8

14.2 StandstillReasonId

The StandstillReasonId Property represents the Id of the StandstillReason (see MachineConfiguration) set by the operator after a standstill occurs.

Default value: empty String (= no active standstill reason).

Set to an empty String by machine with starting of production.

14.3 StandstillMessage

The StandstillMessage Object represents the fault which causes standstill. This is set by machine control.

The StandstillMessageType is formally defined in Table 44.

Table 44 – StandStillMessageType Definition
Attribute Value
BrowseNameStandstillMessageType
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:BaseObjectType defined in OPC UA Part 5
0:HasPropertyVariableId0:String0:PropertyTypeM, RO
0:HasPropertyVariable0:Message0:LocalizedText0:PropertyTypeM, RO
0:HasPropertyVariable0:Severity0:UInt160:PropertyTypeM, RO
0:HasPropertyVariableClassification0:Enumeration0:PropertyTypeM, RO

Classification: Classification of the message. The valid values of the Enumeration are specified in the specific Companion Specification (e.g. IMMMessageClassificationEnumeration in OPC 40077).

NOTE: When creating an instance of the StandstillMessage object, the DataType of Classification shall be set to the specific Enumeration subtype (e.g. IMMMessageClassificationEnumeration).

If the machine is not in a standstill state, the values of the Properties shall be 0 or empty string.

14.4 MESMessage

The MESMessage Object represents a text message sent from the MES to be shown on the machine. The Properties of this Object shall only be set/changed by the MES OPC UA Client.

NOTE: This Property shall not be writeable directly. The method SetMESMessage is used for the modification.

Table 45 – MESMessageType Definition
Attribute Value
BrowseNameMESMessageType
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:BaseObjectType defined in OPC UA Part 5
0:HasPropertyVariableId0:String0:PropertyTypeM, RO
0:HasPropertyVariableMessage0:String0:PropertyTypeM, RO
0:HasPropertyVariable0:Severity0:UInt160:PropertyTypeM, RO

14.5 SetMESMessage

Method for setting the MESMessage.

Signature

	SetMESMessage (
		[in]	0:String	Id
		[in]	0:String	Message
		[in]	0:UInt16	Severity);
Table 46 – SetMESMessage Method Arguments
Argument Description
IdId of the Message (can e.g. be used for automatic processing of the message)
MessageText of Message
SeveritySeverity as defined in the BaseEventType (1 = low – 1000 = high)
Table 47 – SetMESMessage Method AddressSpace Definition
Attribute Value
BrowseNameSetMESMessage
References Node Class BrowseName DataType TypeDefinition Modelling Rule
0:HasPropertyVariableInputArgumentsArgument[]0:PropertyTypeMandatory

14.6 ClearMESMessage

Method for clearing the MESMessage. Calling this method sets the Properties Id and Message in MESMessage to empty string and Severity to 0.

Signature

	ClearMESMessage ();

The method has no Input- or OutputArguments.

Table 48 – ClearMESMessage Method AddressSpace Definition
Attribute Value
BrowseNameClearMESMessage
References Node Class BrowseName DataType TypeDefinition Modelling Rule

14.7 ProductionControlType

The ProductionControl Object allows the MES to control the production of the machine. It is formally defined in Table 49.

Table 49 – ProductionControlType Definition
Attribute Value
BrowseNameProductionControlType
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:BaseObjectType defined in OPC UA Part 5
0:HasPropertyVariableProductionStatusProductionStatusEnumeration0:PropertyTypeM, RO
0:HasPropertyVariableProductionReleasedByMES0:Boolean0:PropertyTypeM, RW
0:HasPropertyVariableAutomaticRunEnabled0:Boolean0:PropertyTypeM, RO
0:HasComponentMethodEnableAutomaticRunM
0:HasComponentMethodDisableAutomaticRunM
0:HasPropertyVariableProductionOnlyWithMES0:Boolean0:PropertyTypeO, RW
0:HasComponentMethodSetWatchDogTimeO
0:HasComponentMethodResetWatchDogO
0:HasComponentMethodRequestTestSampleO

14.7.1 ProductionStatus

The ProductionStatus Property of DataType ProductionStatusEnumeration represents the production status when the machine is in automatic or semi-automatic mode. When the machine is in another mode, the value is not relevant (no production). The ProductionStatusEnumeration is formally defined in Table 50.

Table 50 – ProductionStatusEnumeration Definition
Name Value Description
OTHER0This state is used if none of the other states below apply.
NO_PRODUCTION1The machine does not produce any parts/products.
START_UP2The machine is producing parts/products in the start-up phase. So the correct settings of the machines are not reached.
READY_FOR_PRODUCTION3The machine is producing parts/products, the correct settings of the machines are reached but the production is not yet released (e.g. waiting for release from quality assurance).
PRODUCTION4

The machine is producing parts/products.

In semi-automatic mode also during waiting time (e.g. for manual loading/unloading of parts) ProductionStatus remains in this state (time out possible if e.g. cycle time exceeds a pre-defined limit).

DRY_RUN5The machine is moving without material.

NOTE: This is a list of a possible status and not a sequence. The support of the values NO_PRODUCTION_1 and PRODUCTION_4 is mandatory. The use of the other values is optional.

The ProductionStatus is set by the machine/operator. The selection of the value PRODUCTION_4 can be prevented by the MES OPC UA client by setting ProductionReleasedByMES to FALSE.

14.7.2 ProductionReleasedByMES

The ProductionReleasedByMES Property indicates if ProductionStatus may have the value PRODUCTION_4. Default value is TRUE. If ProductionReleased is FALSE it also prevents that JobStatus (see 18.4.1) has the value JOB_IN_PRODUCTION_6.

If ProductionReleased is set from TRUE to FALSE when ProductionStatus has the value PRODUCTION_4, the value shall change to READY_FOR_PRODUCTION_3. If JobStatus has the value JOB_IN_PRODUCTION_6 it shall change to JOB_INTERRUPTED_7.

14.7.3 AutomaticRunEnabled, EnableAutomaticRun, DisableAutomaticRun

The AutomaticRunEnabled Property indicates if semi-automatic and automatic run of the machine is allowed by MES. If FALSE, the machine cannot start in semi-automatic or automatic mode.

The value is set to TRUE by the Method EnableAutomaticRun and to FALSE by the Method DisableAutomaticRun. The default value is TRUE.

Can e.g. be used if wrong mould is installed or to force the operator to enter a StandstillReason after machine stop.

If the machine is running in (semi-)automatic, a call of DisableAutomaticRun will stop the machine (if applicable at the end of the cycle). The machine should show a message to the operator why the machine has stopped.

Signatures

	EnableAutomaticRun ();
	DisableAutomaticRun ();

The methods have no Input- or OutputArguments.

Table 51 – EnableAutomaticRun Method AddressSpace Definition
Attribute Value
BrowseNameEnableAutomaticRun
References Node Class BrowseName DataType TypeDefinition Modelling Rule
Table 52 – DisableAutomaticRun Method AddressSpace Definition
Attribute Value
BrowseNameDisableAutomaticRun
References Node Class BrowseName DataType TypeDefinition Modelling Rule

14.7.4 ProductionOnlyWithMES

The optional Property ProductionOnlyWithMES indicates if production with the machine is only allowed when the MES is active. When ProductionOnlyWithMES is TRUE and the connection to the MES is lost, the machine may not have the ProductionStatus PRODUCTION_4 and not the JobStatus JOB_IN_PRODUCTION_6 (see 18.4.1).

NOTE: It is not fixed by this specification if the machine stops or continues running.

The default value is FALSE.

Only one MES client shall write this Property.

14.7.5 SetWatchDogTime, ResetWatchDog

Some production jobs need 100% documentation of the production parameters. To ensure this, a WatchDog can be used. By setting the WatchDog time with the Method SetWatchDogTime the production is only released for the given time. The Method ResetWatchDog sets the timer to the value set by the last calling of SetWatchDogTime. This indicates to the machine that the MES is still connected and able to store the production parameters.

Only one MES client shall call these Methods to avoid overlapping.

When the defined time is exceeded without reset, the machine may not have the ProductionStatus PRODUCTION_4 and not the JobStatus JOB_IN_PRODUCTION_6 (see 18.4.1).

NOTE: It is not fixed by this specification if the machine stops or continues running.

Signature

	SetWatchDogTime (
		[in] 0:Int32	WatchDogTime);
Table 53 – SetWatchDogTime Method Arguments
Argument Description
WatchDogTimeTime in seconds for which production is enabled by the watch dog

Calling the method with WatchDogTime = -1 disables the watch dog and the machine can stay in production.

Table 54 – SetWatchDogTime Method AddressSpace Definition
Attribute Value
BrowseNameSetWatchDogTime
References Node Class BrowseName DataType TypeDefinition Modelling Rule
0:HasPropertyVariableInputArgumentsArgument[]0:PropertyTypeMandatory

Signature

	ResetWatchDog ();

The method has no Input- or OutputArguments.

Table 55 – ResetWatchDog Method AddressSpace Definition
Attribute Value
BrowseNameResetWatchDog
References Node Class BrowseName DataType TypeDefinition Modelling Rule

14.7.6 RequestTestSample

The machine shall separate a test sample (e.g. for quality check). The size of the test sample depends on the product/machine configuration.

Signature

	RequestTestSample ();

The method has no Input- or OutputArguments.

Table 56 – RequestTestSample Method AddressSpace Definition
Attribute Value
BrowseNameRequestTestSample
References Node Class BrowseName DataType TypeDefinition Modelling Rule

14.8 MessageConditionType

The MessageConditions represent text messages (incl. error messages) of the control system currently shown on the screen of the machine. The MessageConditionType is formally defined in Table 57.

Table 57 – MessageConditionType Definition
Attribute Value
BrowseNameMessageConditionType
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:AlarmConditionType defined in OPC UA Part 9
0:HasPropertyVariableId0:String0:PropertyTypeM, RO
0:HasPropertyVariableClassification0:Enumeration0:PropertyTypeM, RO
0:HasPropertyVariableIsStandstillMessage0:Boolean0:PropertyTypeM, RO

Id: Id of the message

Classification: Classification of the message. The valid values of the Enumeration are specified in the specific Companion Specification (e.g. IMMMessageClassificationEnumeration in OPC 40077).

IsStandstillMessage: Indication if the message has led to a standstill.

NOTE: The AlarmConditionType is a subtype of BaseEventType and therefore includes the Properties Severity and Message (= text).