Produced Quantity (PQ) and Good Quantity (GQ)

The following options are available for determining quantities.

Determination using job variables

In the case where a job represents a production order to be processed by the machine tool, the current values for PQand GQcan be read from the ProductionJobType/PartsCompletedand ProductionJobType/PartsGoodvariables of the associated job data structure. This also applies if the individual parts to be produced are modelled below this data structure.

Determination by means of events

Alternatively, client-side tracking of PQand GQcan be achieved by subscribing to the event type ProductionPartTransitionEventType. For transitions that signal the completion of processing of a part (new Stateis Endedor Aborted), the value of PQmust be increased; depending on the entry for PartQuality, the value of GQmust also be increased, as applicable.

The JobIdentifierand CustomerOrderIdentifiervariables can be used to establish a reference to the relevant production order.

Determination via ProductionStatisticsType

The variable ProductionStatisticsType/PartsProducedInLifetimecan be used to determine PQ(produced quantity). To do this, the OPC UA Client must determine the variable value at the start and end of the production order and then calculate the difference.

Note: GQcannot be determined via the ProductionStatisticsTypebecause no corresponding variable is available.

Scrap Quantity (SQ)

The scrap quantity SQcan be derived from the values of PQand GQ:

SQ = PQ – GQ

Rework Quantity (RQ)

The machine does not usually provide a count of rework and for this reason rework has not been included in the model. Therefore, the value for RQcannot be determined via the interface.