C# APIs reference Warehouse
The APIs are supplied by the
IUANode
class. The class instances are starting points for searching the nodes to return.
IMPORTANT:
If multiple nodes have the same name, an unwanted node may be returned.
TIP:
In Visual Studio and Visual Studio Code, specifying the exact type (
<T>
) improves the intelligent code completion and makes it easier to identify errors while writing the code.At runtime, it is evident if the node searched is of the requested type. If the searched node is not of the requested type, the API returns
null
.The APIs are supplied by the
InformationModel
class, displayed by the FTOptix.HMIProject
module.
TIP:
At design time, the API functions only if the specified type is a predefined type (contained in the FTOptix modules).
TIP:
By default, dynamic links defined in a NetLogic are read-only, whereas dynamic links created with the
FactoryTalk Optix Studio
UI are read and write.Arguments
- browsePath(string)
- Can be either:
- TheBrowseNameof the object
- The path of the object in the information model, uniquely expressed as a sequence ofBrowseNamevalues separated by/
- T
- AnIUANodeC# class that corresponds to the class of the C# object to return.
- IUANode
- A C# class that corresponds to the class of the C# object to return.
- aliasName(string)
- Can be either:
- TheBrowseNameof the Alias
- The path to the node in the information model, uniquely expressed as a sequence ofBrowseNames separated by/
- browseName(string)
- TheBrowseNameof the node to find.
- T
- A IUANode C# class that corresponds to the C# object class to return.
- child(IUANode)
- A C# object that corresponds to the project node to add.
- browseName(QualifiedName)
- TheBrowseNameof the new object.
- objectTypeId(NodeId)
- TheNodeIDof the type from which the new object is derived.
- superTypeId(NodeId)
- TheNodeIDof the type from which the new object is derived.
- browseName(QualifiedName)
- TheBrowseNameof the new variable.
- dataTypeId(NodeId)
- The Data type contained in the new variable.TIP: The Data type is represented by a node inside theDataTypesclasses. For example,OpcUa.DataTypes.Boolean.
- browseName(QualifiedName)
- TheBrowseNameof the new variable type.
- arrayDimensions(uint[ ])
- Optional. The size of the Array.
- variableTypeId(NodeId)
- The Variable type from which the new variable type is derived.TIP: The Data type is represented by a node inside theVariableTypesclasses. For example,FTOptix.CoDeSys.VariableTypes.Tag.
- dataTypeId(NodeId)
- The Data type contained in the new variable type.TIP: The Data type is represented by a node inside theDataTypesclasses. For example,OpcUa.DataTypes.Boolean.
- timeoutMilliseconds(double)
- The timeout period, expressed in milliseconds, after which the API throws an exception.TIP: If not specified, the default value of the argument is30000(30 seconds).
- variables(IUAVariable)
- TheIUAVariableC# object to add to the object on which the method is invoked.
- variables(RemoteVariable)
- TheRemoteVariableC# object that identifies a cell of a one-dimensional or multidimensional array to be added to the object on which the method is invoked.
- variables(IEnumerable<IUAVariable>)
- TheIUAVariablelist to be added to the object on which the method is invoked.
- variables(IEnumerable<RemoteVariable>)
- TheRemoteVariablelist to be added to the object on which the method is invoked.
- message(string)
- The message to generate.
- category(string)
- The message category.
- source(IUAVariable)
- TheBrowseNameof the source variable.
- mode(DynamicLinkMode)
- An optional argument that specifies the dynamic link mode.The following dynamic link modes are available:
- DynamicLinkMode.Read(default)
- Read (from source node to parent).
- DynamicLinkMode.Write
- Write (from parent to source).
- DynamicLinkMode.ReadWrite
- Read and write (bidirectional).
- ResourceURI
- A C# object that contains the path indicated in the argument.
- localizedText(LocalizedText)
- A C# object thatTextIdandNamespaceIndexproperties identify the key of interest.
- childVariableValues(IEnumerable)
- The list of the variables whose value we want to write, expressed as a pair of theRemoteChildVariableValueclass following properties:
- RelativePath(string)
- The path relative to the variable inside the node.
- Value(UAValue)
- The value of the variable.
Returns
- T
- A C# object that matches the requested node.
- IUANode
- A C# object that matches the requested node.
- IUANode
- A C# object that corresponds to the object found.
- T
- A C# object that corresponds to the node found.
- IUAObject
- A C# object that corresponds to the project object created.
- T
- A C# object that corresponds to the project object created.
- IUAVariable
- A C# object that corresponds to the project variable created.
- IUAVariableType
- A C# object matching the project variable type created.
CSV Properties
- FieldDelimiter
- The character used to delimit the columns. If this property is not specified, its value defaults to the comma character (,).public char FieldDelimiter { get; set; } = ',';
- QuoteChar
- The character used to enclose the content of each field, which allows to use theFieldDelimitercharacter in the content of a field if necessary. If this property is not specified, its value defaults to the double quotes character (").public char QuoteChar { get; set; } = '"';
Provide Feedback