Reference
OpcStateMachineNode Class
Defines the base class for all state machine nodes.
Reference
OpcStateMachineNode Class
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcStateMachineNode Members
Defines the base class for all state machine nodes. It uses a single variable which represents the current state of the machine.
Syntax
[OpcNodeType(2299)]
public class OpcStateMachineNode : OpcObjectNode<OpcNodeType(2299)>
Public Class OpcStateMachineNode
Inherits OpcObjectNodeInheritance
Object → OpcNode → OpcInstanceNode → OpcObjectNode → OpcStateMachineNode
Implements
Derived types
Remarks
An instance of this object should generate an event whenever a significant state change occurs. The server decides which state changes are significant. Servers should use the GeneratesEvent reference type to indicate which event(s) could be produced by the state machine.
Subtypes may add methods which affect the state of the machine. The Executable attribute is used to indicate whether the method is valid given the current state of the machine. A state machine may not be active. In this case, the CurrentState and LastTransition vvariables should have a status equal to BadStateNotActive.
Subtypes may add components which are instances of state machines. These components are considered to be sub-states of the state machine. Sub state machines are only active when the parent machine is in an appropriate state.
Events produced by sub state machines may be suppressed by the parent machine. In some cases, the parent machine will produce a single event that reflects changes in multiple sub state machines.
Constructors
| Name | Description |
|---|---|
| Opc | Initializes a new instance of the Opcname specified. |
Properties
| Name | Description |
|---|---|
| CurrentState | Gets or sets the current state of the Opc |
| CurrentStateNode | Gets the Opc |
| Default | Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created. |
| LastTransition | Gets or sets the last transition which occurred in an instance and provides a human readable name for the last transition which may not be suitable for use in application control logic. |
| Last | Gets the Opc |
Inherits members from OpcObjectNode, OpcInstanceNode, OpcNode.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

