Reference
OpcTwoStateVariableNode Members
Defines a specialization of the OpcStateVariableNode which uses a bool as the value of the VariableId.
Reference
OpcTwoStateVariableNode Members
- Type
- OpcTwoStateVariableNode
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Inherits members from OpcStateVariableNode, OpcTextVariableNode, OpcVariableNode, OpcInstanceNode, OpcNode.
Constructors
OpcTwoStateVariableNode
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcname specified. |
| Opc | Initializes a new instance of the Opcname specified with the initial value given by value. |
| Opc | Initializes a new instance of the Opcname and id specified. |
| Opc | Initializes a new instance of the Opcname and id specified with the initial value given by value. |
| Opc | Initializes a new instance of the Opcname specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname specified with the initial value defined by value as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opcname and id specified with the initial value defined by value as a child node of the parent node given. |
| Opc | Initializes a new instance of the Opccontent as the instance to wrap. |
| Opc | Initializes a new instance of the Opccontent as the instance to wrap. |
OpcTwoStateVariableNode(OpcName)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified.
public OpcTwoStateVariableNode(OpcName name)Public Sub New(name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
OpcTwoStateVariableNode(OpcName, OpcText)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified with the initial value given by value.
public OpcTwoStateVariableNode(OpcName name, OpcText value)Public Sub New(name As OpcName, value As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
value | OpcText | The initial value of the new two state variable node. |
OpcTwoStateVariableNode(OpcName, OpcNodeId)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified.
public OpcTwoStateVariableNode(OpcName name, OpcNodeId id)Public Sub New(name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state variable node can be identified and accessed. |
OpcTwoStateVariableNode(OpcName, OpcNodeId, OpcText)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified with the initial value given by value.
public OpcTwoStateVariableNode(OpcName name, OpcNodeId id, OpcText value)Public Sub New(name As OpcName, id As OpcNodeId, value As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state variable node can be identified and accessed. |
value | OpcText | The initial value of the new two state variable node. |
OpcTwoStateVariableNode(IOpcNode, OpcName)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified as a child node of the parent node given.
public OpcTwoStateVariableNode(IOpcNode parent, OpcName name)Public Sub New(parent As IOpcNode, name As OpcName)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
OpcTwoStateVariableNode(IOpcNode, OpcName, OpcText)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name specified with the initial value defined by value as a child node of the parent node given.
public OpcTwoStateVariableNode(IOpcNode parent, OpcName name, OpcText value)Public Sub New(parent As IOpcNode, name As OpcName, value As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
value | OpcText | The initial value of the new two state variable node. |
OpcTwoStateVariableNode(IOpcNode, OpcName, OpcNodeId)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified as a child node of the parent node given.
public OpcTwoStateVariableNode(IOpcNode parent, OpcName name, OpcNodeId id)Public Sub New(parent As IOpcNode, name As OpcName, id As OpcNodeId)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state variable node can be identified and accessed. |
OpcTwoStateVariableNode(IOpcNode, OpcName, OpcNodeId, OpcText)
Initializes a new instance of the OpcTwoStateVariableNode class accessible by the name and id specified with the initial value defined by value as a child node of the parent node given.
public OpcTwoStateVariableNode(
IOpcNode parent,
OpcName name,
OpcNodeId id,
OpcText value)Public Sub New(
parent As IOpcNode,
name As OpcName,
id As OpcNodeId,
value As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
parent | IOpcNode | The IOpcNode used as the parent node or a null reference ( |
name | OpcName | The OpcName through that the new two state variable node can be accessed. |
id | OpcNodeId | The OpcNodeId through that the new two state variable node can be identified and accessed. |
value | OpcText | The initial value of the new two state variable node. |
OpcTwoStateVariableNode(TwoStateVariableState)
Initializes a new instance of the OpcTwoStateVariableNode class using the content as the instance to wrap.
protected OpcTwoStateVariableNode(TwoStateVariableState content)Protected Sub New(content As TwoStateVariableState)Parameters
| Name | Type | Description |
|---|---|---|
content | Two | The Two |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
OpcTwoStateVariableNode(TwoStateVariableState, OpcNodeModel)
Initializes a new instance of the OpcTwoStateVariableNode class using the content as the instance to wrap.
protected OpcTwoStateVariableNode(
TwoStateVariableState content,
OpcNodeModel model)Protected Sub New(content As TwoStateVariableState, model As OpcNodeModel)Parameters
| Name | Type | Description |
|---|---|---|
content | Two | The Two |
model | OpcNodeModel | The OpcNodeModel which defines the modelling directives for the new node or a null reference ( |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The content is a null reference ( |
Properties
DefaultTypeDefinitionId
Gets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
protected override OpcNodeId DefaultTypeDefinitionId { get; }Protected Overrides ReadOnly Property DefaultTypeDefinitionId As OpcNodeIdProperty value
The OpcNodeId of the type node from that this OpcInstanceNode has been created from. These type node defines the typical structure of an instance node of its type definition. If there exists no specific type definition node a null reference (Nothing in Visual Basic).
Overrides
EffectiveTransitionTime
Gets or sets a value which specifies the time when the current state or one of its substates was entered.
public DateTime EffectiveTransitionTime { get; set; }Public Property EffectiveTransitionTime As DateProperty value
The effective DateTime of the time the current state has been entered.
Remarks
If, for example, a level alarm is active and - while active - switches several times between high and highhigh, then the TransitionTime stays at the point in time where the alarm became active whereas the EffectiveTransitionTime changes with each shift of a sub state.
EffectiveTransitionTimeNode
Gets the OpcPropertyNode<T> of the EffectiveTransitionTime property.
public OpcPropertyNode<DateTime> EffectiveTransitionTimeNode { get; }Public ReadOnly Property EffectiveTransitionTimeNode As OpcPropertyNode(Of Date)Property value
An instance of the OpcPropertyNode<T> class.
FalseState
Gets or sets a value which contains a human readable representation for the variable value when its VariableId property has the value true.
public OpcText FalseState { get; set; }Public Property FalseState As OpcTextProperty value
The human readable representation for the value true.
FalseStateNode
Gets the OpcTextPropertyNode of the FalseState property.
public OpcTextPropertyNode FalseStateNode { get; }Public ReadOnly Property FalseStateNode As OpcTextPropertyNodeProperty value
An instance of the OpcTextPropertyNode class.
TransitionTime
Gets or sets a value which specifies when the current state was entered.
public DateTime TransitionTime { get; set; }Public Property TransitionTime As DateProperty value
The DateTime of the time the current state was entered.
TransitionTimeNode
Gets the OpcPropertyNode<T> of the TransitionTime property.
public OpcPropertyNode<DateTime> TransitionTimeNode { get; }Public ReadOnly Property TransitionTimeNode As OpcPropertyNode(Of Date)Property value
An instance of the OpcPropertyNode<T> class.
TrueState
Gets or sets a value which contains a human readable representation for the variable value when its VariableId property has the value true.
public OpcText TrueState { get; set; }Public Property TrueState As OpcTextProperty value
The human readable representation for the value true.
TrueStateNode
Gets the OpcTextPropertyNode of the TrueState property.
public OpcTextPropertyNode TrueStateNode { get; }Public ReadOnly Property TrueStateNode As OpcTextPropertyNodeProperty value
An instance of the OpcTextPropertyNode class.
VariableId
Gets or sets a node identifier which uniquely identifies the current state within the state machine.
public bool? VariableId { get; set; }Public Property VariableId As Boolean?Property value
A bool which uniquely identifies the current state within the state machine.
Methods
InitializeDefaults
Initializes the default values used by the OpcTwoStateVariableNode.
protected override void InitializeDefaults()Protected Overrides Sub InitializeDefaults()Overrides
Remarks
This method is used to ensure the availability of appropriate node specific default values. For more information like when this method is to be overwritten see InitializeDefaults.

