This enumeration WwUnitStateEnumeration represents the generalized state of a unit. The enumeration is defined in Table 24.
Table 24 – WwUnitStateEnumeration Items
Name |
Value |
Description |
OFFLINE |
0 |
The unit is offline. |
STANDBY |
1 |
The unit is in standby. |
READY |
2 |
The unit is ready to start working. |
WORKING |
3 |
The unit is working. |
ERROR |
4 |
The 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 address space 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:
MachineOn && (!MachineInitialized || EnergySaving || (!Error && !Calibrated))
MachineOn && MachineInitialized && !EnergySaving && !Error && Calibrated && !RecipeInRun
MachineOn && MachineInitialized && !EnergySaving && !Error && Calibrated && RecipeInRun
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 25.
Table 25 – WwUnitStateEnumeration Definiton
Attribute |
Value |
||||
BrowseName |
WwUnitStateEnumeration |
||||
IsAbstract |
False |
||||
References |
Node Class |
BrowseName |
DataType |
TypeDefinition |
Other |
Subtype of the Enumeration type defined in OPC 10000-5 |
|||||
0:HasProperty |
Variable |
0:EnumValues |
0:EnumValueType[] |
0:PropertyType |
|
Conformance Units |
|||||
Woodworking Unit State |