The Property ProductionOrder contains information about the currently running production order. The Type POType is defined in Table 27.

Table 27 POType Definition

Name

Type

Description

POType

Structure

Description of a production order (PO)

Number

String

PO identification number

ProducedMaterial

MaterialType

The finished good that the material is produced under the current PO.

TargetQuantity

Double

The quantity of material that is requested by the PO

ContinueAtJobEnd

Boolean

When ContinueAtJobEnd is True, then the operator may continue production (overproduction) after fulfilling the required order quantity

TargetStartTime

DateTime

The target time for the PO to be started according to the planning

TargetEndTime

DateTime

The target time for the PO to be completed according to the planning

DatasetID

String

The ID of the parameters’ dataset to be used for this PO

DatasetDescription

String

The description of the parameters’ dataset to be used for this PO

The Type MaterialType is defined in Table 22.

The Property ProductionStatus describes the status of the ProductionOrder. The Enumeration ProductionStatusEnumeration is defined in Table 28.

Table 28 ProductionStatusEnumeration Definition

Enumstring

Value

Description

Other

0

None of the below.

Brand Change

1

The PO materials are still present in the workcentre and are being removed for a different brand.

Production

2

The PO is being produced.

No Production

3

There is no PO being produced.

The Method StartProductionOrder sends a command to start the ProductionOrder to the underlying system. If the production order is started, the ProductionOrderStatus is set to Productio n by the underlying system. If there are materials at the machine module that are not compatible with the materials required by the production order, then the ProductionOrderStatus is set to Brand Change.

Signature

StartProductionOrder (

[in]POType POToStart

[out]MethodExecutionFeedbackType ExecutionFeedback

);

Argument

Description

POToStart

The production order to be started.

ExecutionFeedback

The extended feedback returning a detailed message in case of execution failure.

Method Result Codes

The Method StopProductionOrder sends a command to the underlying system to stop the ProductionOrder. The underlying system sets the ProductionOrderStatus accordingly.

Signature

StopProductionOrder (

[out]MethodExecutionFeedbackType ExecutionFeedback

);

ResultCode

Description

BadNodeIdUnknown

See table 173 in OPC 10000-4 for the description of these result codes.

BadTypeMismatch

BadOutOfRange

BadNotWritable

BadNotFound

Argument

Description

ExecutionFeedback

The extended feedback returning a detailed message in case of execution failure.

When a StopProductionOrder Method is executed by the underlying system, the Message in MethodExecutionFeedback is suitably displayed on the machine HMI to inform the machine user and provide useful instructions, e.g. “A remote production stop was executed. Run the machine empty. Requested by MES Client”.

Method Result Codes

Please report errors or issues with the site to webmaster.

Copyright © 2024 - OPC Foundation

ResultCode

Description

BadNodeIdUnknown

See table 173 in OPC 10000-4 for the description of these result codes.

BadTypeMismatch

BadOutOfRange

BadNotWritable

BadNotFound