InformationModel.MakeVariableType<T>(browseName, dataTypeId, arrayDimensions)
Create a project variable type derived from the type indicated by the supertype that contains the data type indicated by the dataTypeId argument. Create a specific array with the optional arrayDimensions argument.
static T MakeVariableType<T>(QualifiedName browseName, NodeId dataTypeId, uint[] arrayDimensions);
Arguments
TIUAVariableTypeC# class, corresponding to the C# object class to return.browseName(QualifiedName)- The
BrowseNameof the new variable type. -
dataTypeId(NodeId) -
The Data type contained in the new variable.
Tip: A node inside theDataTypesclass represents the Data type. For example,OpcUa.DataTypes.Boolean. arrayDimensions(uint[ ])- Optional. The size of the Array.
Returns
IUAVariableType- A C# object matching the project variable type created.
Example
var myCustomTagType = InformationModel.MakeVariableType<FTOptix.CoDeSys.TagType>("CustomCoDeSysTagType", FTOptix.CoDeSys.VariableTypes.Tag, OpcUa.DataTypes.UInt16);
