Access project nodes

You can access C# object members, OPC UA nodes, NetLogic objects, and session aliases.

C# object members

In C#, each property or method contained in an object is generically defined as a member of the object. Each member is identified by
BrowseName
of the matching project node.
TIP: To display the
BrowseName
of a property, hover over its name in the
Property
pane. A tooltip appears with the
BrowseName
, data type, and short description (if present).
To access the members in hierarchical order, use the point.
In the following example, The
Acceleration
property of the
Motor
object is set to the value of
123
.
Motor.Acceleration = 123;
In the following example, the value of the
Motor
object
Speed
property is assigned to the value of the
currentSpeed
C# integer variable.
int currentSpeed = Motor.Speed;

OPC UA nodes of a
FactoryTalk Optix Studio
project

To access a node in the C# information model, the node must be represented in the NetLogic by a matching C# object. To obtain the matching C# object, you can use these APIs:
To refer to the OPC UA nodes of the properties of a typed node, the name of the matching C# property consists of the
BrowseName
of the property to which the
Variable
suffix is added. The following example shows a dynamic link set on the
Text
property of a label through API, accessing the property node represented by
TextVariable
.
Label1.TextVariable.SetDynamicLink(speedValue);
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.