7.7 WwUnitStateEnumeration

This enumeration WwUnitStateEnumeration represents the generalized state of a unit. The enumeration is defined in Table 25.

Table 25 – WwUnitStateEnumeration Items
Name Value Description
OFFLINE0The unit is offline.
STANDBY1The unit is in standby.
READY2The unit is ready to start working.
WORKING3The unit is working.
ERROR4The unit is not able to work. The cause can be an alarm or error or user intervention.

A unit state depends on the unit flags (see 7.9). Even if the unit flags are not provided in the AddressSpace they exist internally in the machine. If the device does not support EnergySaving, it is assumed that the variable value is False. Therefore, they are always the basis for the state:

OFFLINE:

!MachineOn

STANDBY:

MachineOn && (!MachineInitialized || EnergySaving || (!Error && !Calibrated))

READY:

MachineOn && MachineInitialized && !EnergySaving && !Error && Calibrated && !RecipeInRun

WORKING:

MachineOn && MachineInitialized && !EnergySaving && !Error && Calibrated && RecipeInRun

ERROR:

MachineOn && MachineInitialized && !EnergySaving && Error

This is the state diagram of the UnitState:

Note: Since the unit state is an enumeration do not rely on the transitions. Only the logic of the unit flags counts.

Figure 9 – State Machine of the unit state

Its representation in the AddressSpace is defined in Table 26.

Table 26 – WwUnitStateEnumeration Definiton
Attribute Value
BrowseNameWwUnitStateEnumeration
IsAbstractFalse
References Node Class BrowseName DataType TypeDefinition Other
Subtype of the Enumeration type defined in OPC 10000-5
0:HasPropertyVariable0:EnumValues0:EnumValueType[]0:PropertyType
Conformance Units
Woodworking Unit State