6.5 HpdcState Object
This building block provides information about the state of an HPDCDeviceItem. It defines common top-level states. Device specifications might extend those states with substates. Due to the missing possibility to implement 0:FiniteStateMachines defined in OPC 10000-16 in accordance with the OPC UA for machinery standard on many actual industrial control systems, the HpdcState components are realized as string, integer and boolean variables with corresponding definitions to transport the state information. The intention of this base specification is not to restrict the transitions between the states, all transitions between all states are possible. HPDC device companion specifictions might restrict the usage of the defined states and transitions.
| Attribute | Value | ||
| BrowseName | HpdcState | ||
| NodeClass | Object | ||
| Node Class | BrowseName | DataType | Other |
|---|---|---|---|
| Variable | HpdcItemState | 0:String | M, RO |
| Variable | HpdcItemStateId | 0:UInt16 | M, RO |
| Variable | HpdcItemOperationMode | 0:String | M, RO |
| Variable | HpdcItemOperationModeId | 0:UInt16 | M, RO |
| Variable | HpdcDeviceOperationMode | 0:String | M, RO |
| Variable | HpdcDeviceOperationModeId | 0:UInt16 | M, RO |
| Variable | HpdcStateTrigger | 0:UInt16 | M, RO |
| Variable | ExternalEmergencyState | 0:Boolean | O, RO |
| Variable | InternalEmergencyState | 0:Boolean | O, RO |
| Variable | EnergySavingState | 0:Boolean | O, RO |
| Variable | ProductionStartUpState | 0:Boolean | O, RO |
| Variable | ProductionPreparationState | 0:Boolean | O, RO |
| Variable | AbnormalOperationState | 0:Boolean | O, RO |
| Variable | SelfLearningState | 0:Boolean | O, RO |
| Variable | CalibrationState | 0:Boolean | O, RO |
| Variable | DiagnosticState | 0:Boolean | O, RO |
| Variable | WaitingState | 0:Boolean | O, RO |
| Variable | WarningState | 0:Boolean | O, RO |
| Variable | AlarmState | 0:Boolean | O, RO |
| Variable | QuantityActiveWarnings | 0:UInt16 | O, RO |
| Variable | QuantityActiveAlarms | 0:UInt16 | O, RO |
| Conformance Units | |||
|---|---|---|---|
| OPC 40350-1 State Basic | |||
| OPC 40350-1 State Flex | |||
| OPC 40350-1 State Advanced | |||
| OPC 40350-1 State Alarms and Warnings Quantities |

The HpdcState consists of three interrelated basic state variables (HpdcItemState, HpdcItemOperationMode and HpdcDeviceOperationMode) in two representations, a unique ID as a UInt16 and a unique string as a string variable. The trigger variable HpdcStateTrigger is used for synchronized readout of the three state variables to prevent invalid HpdcStates due to missing synchronization between variable changes of the individual state variables. The trigger variable is incremented by the device when the three state variables are valid. Any client should therefore observe the change of this trigger variable, so the value of the variable itself has no meaning. If the variable reaches the maximum value range of a UInt16 it will be incremented to the lowest value it can achieve, that means 0.
In line with the MachineryItemState definition in OPC 40001-1, the HpdcItemState has the four states:
| "NotAvailable", "OutOfService", "NotExecuting" and "Executing". Table 18 shows the definition of the four states and corresponding IDs of the HpdcItemState. | |
| Table 18 - HpdcItemState and HpdcItemStateId Specification |
| HpdcItemStateID | HpdcItemState | Explanation |
| 0 | NotAvailable | The NotAvailable State represents that the HPDCDeviceItem is not available and does not perform any activity. Example: the Machine is switched off. |
| 1 | OutOfService | The OutOfService State represents that the HPDCDeviceItem is not functional and does not perform any activity. Example: the Machine is in an error or blocked. |
| 2 | NotExecuting | The NotExecuting State represents that the HPDCDeviceItem is available & functional but no activity is started (e.g. production, maintenance, calibration, …). Example: The die casting machine or the furnace or the thermoregulation device is e.g. in standby but has no error and could be started at any time by the operator if desired. |
| 3 | Executing | The Executing State represents that the Machine is available & functional and is actively performing an activity (e.g. pursues production, maintenance, calibration, …). Example 1: The die casting machine is in automatic and the cell produces parts. Example 2: The die casting machine is in setup mode and the hydraulic drives are turned on. Example 3: The furnace is turned on and is in heating mode. Example 4: The cell is not producing but the thermoregulation device is still active and controls the die temperature.
Note: If the device is obviously in an ongoing procedure or e.g. in automatic production (so the cell produces casting parts) but the device just waits for its next job in the next production cycle (e.g. dosing device or sprayer), the device should remain in the state "Executing". So the device must not change its state to "NotExecuting" which would lead to a cyclic toggling of the device states during production. Note: In a waiting situation within the production cycle (e.g. cell is in automatic but the sprayer waits in home position for the next job), the state "WaitingState" can be used, see 'Additional Device States' below. |
In line with the MachineryOperationMode definition, the HpdcItemOperationMode has the four states: "None", "Setup", "Maintenance" and "Processing". Table 19 shows the definition of the four operation modes and corresponding IDs of the HpdcItemOperationMode.
| HpdcDeviceOperationModeID | HpdcDeviceOperationMode | Explanation |
| 0 | None | The None State represents that there is currently no HpdcDeviceOperationMode available for the MachineryItem. |
| 1 | Setup | The Setup State represents that the HPDCDeviceItem is set into setup mode with the intention to carry out setup, preparation or postprocessing activities of a production process. |
| 2 | Maintenance | The Maintenance State represents that the HPDCDeviceItem is set into maintenance mode with the intention to carry out maintenance or servicing activities of the HPDCDeviceItem. If the industrial control system of the HPDCDeviceItem has no information about the current maintenance situation, it will not change to the Maintenance State and therefore may remain in one of the other states (so in this case maybe often "none" is used if not "setup" and not "processing" is valid). |
| 3 | Processing | The Processing State represents that the HpdcDeviceItem is set into processing mode with the intention to carry out the value adding activities. Example: The die casting machine is set manually in "automatic mode" but still waits for other devices or other commands to finally start its value adding activity. Note: The intention to carry out the value adding activities is sufficient that the HpdcDeviceItem is changing into this state, an actual value adding production is not required to take place. |
Alongside HpdcItemState and HpdcItemOperationMode, the HpdcState also provides the HpdcDeviceOperationMode and HpdcDeviceOperationModeId variables for specific states of the different devices within an HPDC production cell. The states of the HpdcDeviceOperationMode and HpdcDeviceOperationModeId shall be defined in the various HPDC device specifications. E.g. for the HPDC machine the HpdcDeviceOperationModes could be defined as "automatic mode", "semi-automatic mode", "manual mode" and "setting mode". If the HpdcDeviceOperationMode in a server is not defined, then HpdcDeviceOperationMode shall contain "Not Defined" and HpdcDeviceOperationModeId shall be "0".
The trigger variable HpdcStateTrigger is used for synchronized readout of the three state and the three corresponding Id variables to prevent invalid states due to missing synchronization between changes of the individual state variables. The trigger variable is incremented by the device when the three state variables are valid. Any client should therefore observe the change of this trigger variable, so the value of the variable itself has no meaning. If the variable reaches the maximum value range of an UInt16 it will be incremented to the lowest value it can achieve, that means 0.
6.5.1 Additional device states
In addition, there are states defined which give additional information about the status of the device. These additional states are boolean variables and can be set independently from each other. Further definitions can be given in the HPDC device companion specifications for each device. Furthermore, these additional states typically are independent from the states defined by HpdcItemState or HpdcItemOperationMode or HPDCDeviceOperationMode.
ExternalEmergencyState should be set to 'true' by the device, as long as the device has stopped by an external emergency stop trigger. This variable has only informal character and no reliability properties regarding safety concerns. E.g. an emergency button of another device or the cell is pressed.
InternalEmergencyState should be set to 'true' by the device, as long as the device itself is the cause of an emergency stop. This variable has only informal character and no reliability properties regarding safety concerns. E.g. an emergency button of the device is pressed.
EnergySavingState should be set to 'true' by the device, if any energy saving mode of the device is activated in the device. E.g. the exhaust filter system intentionally turns off the fan to save energy.
ProductionStartUpState should be set to 'true' by the device, if the device is producing but with special process parameters to ramp up the normal production leading to a production with normal process parameters and conditions.
E.g. the plunger speed curve of the HPDC machine is automatically set to lower speeds for the first five casting cycles when production is started.
ProductionPreparationState should be set to 'true' by the device, if the device is executing a procedure which is needed to prepare normal operation of the device.
E.g. a heating and cooling device is heating up the die or the furnace is heating up.
AbnormalOperationState should be set to 'true' by the device, if the device is still able to operate with an acceptable result but the device has in general restricted functionality.
E.g. one of the temperature sensors of the furnace is damaged so the furnace still works and the casting cell can produce good parts, but the furnace should be repaired.
SelfLearningState should be set to 'true' by the device, if the device is operating but is automatically adapting some parameters to improve its functionality.
E.g. the HPDC machine adapts the locking force automatically because the die is expanding due to rising die temperature.
CalibrationState should be set to 'true' by the device, if the device is executing a calibration or test procedure.
E.g. the operator starts the position reference procedure of the spraying system. E.g. after booting the die casting machine starts a reference procedure for the protection doors of the die area.
DiagnosticState should be set to 'true' by the device, as long as the device is executing a diagnostic or analysis procedure.
E.g. the operator starts an automatic leakage detection procedure of a hydraulic drive. E.g. a robot is executing a mandatory brake test.
WaitingState should be set to 'true' by the device, if the device is executing a machine program but is currently waiting for an external action or activation to proceed with the machine program.
E.g. if the sprayer is in home position and waiting for the next spraying cycle to be initiated. E.g. the HPDC machine is producing in semi-automatic operation mode and is waiting for the operator of the machine to manually initiate the start of the next production cycle.
WarningState should be set to 'true' by the device, as long as one or more warnings are currently active in the device (see also below HPDC Active Device Alarms and Warnings).
AlarmState should be set to 'true' by the device, as long as one or more alarms are currently active in the device (see also below HPDC Active Device Alarms and Warnings)
6.5.2 Additional device information
The variable QuantityActiveWarnings represents the quantity of all warnings which are currently active in the device as a UInt16 (see also below HPDC Active Device Alarms and Warnings). If no warning is active at the moment, the variable shall be "0".
The variable QuantityActiveAlarms represents the quantity of all alarms which are currently active in the device as a UInt16 (see also below HPDC Active Device Alarms and Warnings). If no alarm is active at the moment, the variable shall be "0".