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.
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.
Scrap Quantity (SQ)
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.