Use instances: to create nodes in the address space of the gateway. An entry makes an Object from a type, or a Variable with a data type. The key organizedBy, componentOf or propertyOf puts the node under its parent. The mapping: section can then connect the nodes to the data of a device. The address space is the tree of nodes that an OPC UA client browses.
Example
namespaces:
- di
instances:
- browseName: DistanceSensor
typeDefinition: ua:BaseObjectType
organizedBy: /ua:Objects/di:DeviceSet
- browseName: Distance
dataType: ua:Double
componentOf: /ua:Objects/di:DeviceSet/own:DistanceSensor
The value
instances: is a list. Each entry is an Object or Variable instance, a Variable declaration or an expand entry.
An Object or Variable instance
One node that the gateway creates. A type definition that is an ObjectType makes an Object. A VariableType makes a Variable.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
typeDefinition | The type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members. | type reference | yes |
nodeId | The node id of the node. Optional: without it, the gateway chooses a number. To set a text id, write s=MyMachine. To set a binary id, write b=1ABDFG==. Do not write the ns= part. | text | |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text | |
description | A short text that describes the node. An OPC UA client can read it. | text | |
properties | The properties of this node, as a list. Each property is a Variable that the node owns with a HasProperty reference. | list of Variable or Variable with children | |
components | The child components of this node, as a list. The node owns each one with a HasComponent reference. | list of existing child node or child node | |
organizes | The nodes that this node organizes, as a list. Each one is linked with an Organizes reference. | list of node in an organizes list | |
methods | The Methods of this node, as a list. An OPC UA client can call a Method. | list of Method | |
organizedBy | The browse path of the parent node. The parent organizes this node with an Organizes reference: /ua:Objects/di:DeviceSet. | text | |
componentOf | The browse path of the parent node. The parent owns this node as a component with a HasComponent reference. | text | |
propertyOf | The browse path of the parent node. The parent owns this node as a property with a HasProperty reference. | text | |
addInOf | The browse path of the parent node. This Object adds a function to the parent, with a HasAddIn reference. | text | |
orderedComponentOf | The browse path of the parent node. The parent owns this node as a component that keeps its order, with a HasOrderedComponent reference. | text | |
physicalComponentOf | The browse path of the parent node. The parent owns this node as a physical part, with a HasPhysicalComponent reference. | text | |
containedComponentOf | The browse path of the parent node. The parent contains this node, with a HasContainedComponent reference. | text | |
optionals | The optional members of the type to create on this node. Write each as a browse name with its alias: di:SerialNumber. For a nested member, join the names with a dot. To give a member a value, write di:Manufacturer: Sterfive. | text or list of text or a map | |
interfaces | The OPC UA interfaces that this node implements, as a list. | list of implemented interface | |
initializers | Start values for Variables below this node. Each entry gives a path that starts at this node, and a value. | list of initializer | |
propertyValues | Values for the properties of this node, as nested keys. Each key is a browse name with its alias. To give a Variable a value and children, write its value under $value. | a map | |
dataType | The data type of the Variable, for example ua:Double or ua:Int32. Optional when the type of the Variable already has a concrete data type. Required when it has none, or only a general one such as ua:Number. | text | |
value | The start value of the Variable. The gateway converts it to the data type. | any value | |
valueRank | The shape of the value. -1 is one single value (the default). 1 is a one-dimensional array. A larger number n is an array with n dimensions. 0 is an array with one or more dimensions. | number | |
arrayDimensions | The length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it. | list of number | |
accessLevel | What an OPC UA client can do with the value. Write one or more flags with |: CurrentRead | CurrentWrite. The flags are CurrentRead, CurrentWrite, HistoryRead, HistoryWrite, SemanticChange, StatusWrite and TimestampWrite. | text | |
minimumSamplingInterval | The fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date. | number | |
historizing | Set true to tell OPC UA clients that the gateway collects history for this Variable. The default is false. Also add HistoryRead to accessLevel: CurrentRead | HistoryRead. | true or false | |
addIns | The add-ins of this node, as a list. | list of add-in | |
references | Extra references from this node, as a list. Use it for a link that organizedBy and componentOf do not make. | list of reference or declaring reference | |
eventSources | The browse paths of the nodes that this node sends events for. The gateway makes a HasEventSource reference from this node to each one. | list of text | |
eventSourceOf | The browse path of the node that sends the events of this instance. The gateway makes a HasEventSource reference from that node to this one. | text | |
eventNotifier | Set true on an Object to make it an event notifier. An OPC UA client can then subscribe to its events. Set it on this Object only, not on the Objects below it. | true or false | |
Advanced keys (5)
| Key | What it does | Value | Required |
|---|
$anchor | A name that other entries use to point at this node as $Name. Use it when the browse name alone is not unique. Without it, the name is the browse name without its alias. | text | |
rolePermissions | Who can do what with this node. Each entry names a role, for example ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node uses the default of its namespace. | list of role permission | |
permissionSet | The name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions. | text | |
accessRestrictions | How an OPC UA client must secure its connection to reach this node: SigningRequired, EncryptionRequired, SessionRequired or ApplyRestrictionsToBrowse. Give one or more values. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
userAccessLevel | The access of the current user. It uses the same flags as accessLevel. It can reduce accessLevel, but not increase it. | text | |
Keys that the gateway accepts and does not use today (2)
The configuration file shares its instance language with the OPC UA modeler, so the schema accepts these keys. The gateway does not apply them: documentation and specRef are notes for a reader.
documentation, specRef
A Variable declaration
One Variable that the gateway creates, with a data type and an optional VariableType.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node. Browse paths use it as the last part: /ua:Objects/own:Temperature. | text | yes |
dataType | The data type of the Variable, with an alias: ua:Float, ua:Int32, ua:String. | text | yes |
nodeId | A text node id without the namespace part, for example s=MyNode. Without it, the gateway chooses a number. | text | |
displayName | The text that an OPC UA client shows for the Variable. The default is the browse name. | text | |
typeDefinition | The VariableType to make an instance of. The default is ua:BaseDataVariableType. | type definition | |
optionals | The optional members of the type to create on this node. Write each as a browse name with its alias: di:SerialNumber. For a nested member, join the names with a dot. To give a member a value, write di:Manufacturer: Sterfive. | list of text or a map | |
organizedBy | The browse path of the parent node, for example /ua:Objects/di:DeviceSet. The parent organizes the Variable. | text | |
propertyOf | The browse path of the parent node. The Variable becomes a property of the parent. | text | |
componentOf | The browse path of the parent node. The Variable becomes a component of the parent. | text | |
valueRank | The shape of the value. -1 is one single value (the default). 1 is a one-dimensional array. A larger number n is an array with n dimensions. | number | |
arrayDimensions | The fixed length of each dimension of an array. Use it with a valueRank of 1 or more. | list of number | |
accessLevel | What an OPC UA client can do with the value: CurrentRead or CurrentRead | CurrentWrite. | text | |
historizing | Set true to tell OPC UA clients that the gateway collects history for this Variable. | true or false | |
minimumSamplingInterval | The fastest sampling interval, in milliseconds, that the gateway tells OPC UA clients for this node. | number | |
An expand entry
An entry of instances: that uses templates to make other entries.
| Key | What it does | Value | Required |
|---|
expand | A block that makes entries from templates. It uses one template (use:) or a list of templates (layout:). It uses them one time, repeat: times, or once for each record of over:. | expand block | yes |
A type reference
The name of a type and its namespace, as two keys.
| Key | What it does | Value | Required |
|---|
name | The name of the type, without an alias: DeviceType. | text | |
namespace | The namespace alias of the type: di. | text | |
A Variable
A Variable with its own type, value and child nodes.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | any value | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | any value | |
description | A short text that describes the node. An OPC UA client can read it. | any value | |
nodeClass | The kind of node: Variable. | any value | |
typeDefinition | The VariableType of the Variable, for example ua:AnalogItemType. | any value | |
dataType | The data type of the Variable, for example ua:Double or ua:Int32. Optional when the type of the Variable already has a concrete data type. Required when it has none, or only a general one such as ua:Number. | text | |
valueRank | The shape of the value. -1 is one single value (the default). 1 is a one-dimensional array. A larger number n is an array with n dimensions. 0 is an array with one or more dimensions. | number | |
arrayDimensions | The length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it. | list of number | |
value | The start value of the Variable. The gateway converts it to the data type. | any value | |
minimumSamplingInterval | The fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date. | number | |
historizing | Set true to tell OPC UA clients that the gateway collects history for this Variable. The default is false. Also add HistoryRead to accessLevel: CurrentRead | HistoryRead. | true or false | |
accessLevel | What an OPC UA client can do with the value. Write one or more flags with |: CurrentRead | CurrentWrite. The flags are CurrentRead, CurrentWrite, HistoryRead, HistoryWrite, SemanticChange, StatusWrite and TimestampWrite. | text | |
exposesItsArray | Set true on a member Variable of a type to make it the element of the array of its parent. The parent must be a Variable or VariableType that holds an array. You cannot use it with modellingRule. | true or false | |
modellingRule | How an instance of the parent type must treat this member. Mandatory: always created. Optional: created only on request. MandatoryPlaceholder and OptionalPlaceholder: a pattern for members that an instance adds (one or more, or zero or more). false: no rule. | Mandatory, Optional, MandatoryPlaceholder, OptionalPlaceholder, false | |
components | The child components of this node, as a list. The node owns each one with a HasComponent reference. | list of existing child node or child node | |
organizes | The nodes that this node organizes, as a list. Each one is linked with an Organizes reference. | list of node in an organizes list | |
properties | The properties of this node, as a list. Each property is a Variable that the node owns with a HasProperty reference. | list of Variable or Variable with children | |
references | Extra references from this node, as a list. Use it for a link that organizedBy and componentOf do not make. | list of reference or declaring reference | |
interfaces | The OPC UA interfaces that this node implements, as a list. | list of implemented interface | |
promotedToMandatory | Optional members of the type to create and to mark as mandatory. Write each as a browse name with its alias. For a nested member, join the names with a dot. | list of text or list of text or a map | |
methods | The Methods of this node, as a list. An OPC UA client can call a Method. | list of Method | |
Advanced keys (7)
| Key | What it does | Value | Required |
|---|
$anchor | A name that other entries use to point at this node as $Name. Use it when the browse name alone is not unique. Without it, the name is the browse name without its alias. | text | |
rolePermissions | Who can do what with this node. Each entry names a role, for example ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node uses the default of its namespace. | list of role permission | |
permissionSet | The name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions. | text | |
accessRestrictions | How an OPC UA client must secure its connection to reach this node: SigningRequired, EncryptionRequired, SessionRequired or ApplyRestrictionsToBrowse. Give one or more values. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
documentation | Long text in Markdown for this node. The documentation that the OPC UA Modeler generates includes it. It is not the description, which an OPC UA client reads. | text | |
specRef | A link to the part of the specification that defines this node: https://reference.opcfoundation.org/Machinery/v104/docs/8.2. The NodeSet2.xml file keeps it as the Documentation of the node. false says that this node has no link. | text or false | |
userAccessLevel | The access of the current user. It uses the same flags as accessLevel. It can reduce accessLevel, but not increase it. | text | |
A Variable with children
A Variable that sits inside another node and can have properties, components and Methods.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
nodeId | The node id of the node. Optional: without it, the gateway chooses an id and keeps it the same when you generate the model again. | text | |
properties | The properties of this node, as a list. Each property is a Variable that the node owns with a HasProperty reference. | list of Variable or Variable with children | |
components | The child components of this node, as a list. The node owns each one with a HasComponent reference. | list of existing child node or child node | |
organizes | The nodes that this node organizes, as a list. Each one is linked with an Organizes reference. | list of node in an organizes list | |
methods | The Methods of this node, as a list. An OPC UA client can call a Method. | list of Method | |
Advanced keys (3)
| Key | What it does | Value | Required |
|---|
rolePermissions | Who can do what with this node. Each entry names a role, for example ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node uses the default of its namespace. | list of role permission | |
permissionSet | The name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions. | text | |
accessRestrictions | How an OPC UA client must secure its connection to reach this node: SigningRequired, EncryptionRequired, SessionRequired or ApplyRestrictionsToBrowse. Give one or more values. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
An existing child node
A reference to a child node that the parent already has, to change its names or to add children.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
components | The child components of this child node. Use it to name or change nodes below it. | list of existing child node or child node | |
orderedComponents | The child components of this child node that keep their order. Each one is linked with a HasOrderedComponent reference. | list of existing child node or child node | |
A child node
A child Object or Variable of a node, made from a type.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
typeDefinition | The type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members. | type reference | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
nodeClass | The kind of node: Object. You can leave it out. | Object | |
dataType | The data type of the Variable, for example ua:Double or ua:Int32. Optional when the type of the Variable already has a concrete data type. Required when it has none, or only a general one such as ua:Number. | text | |
valueRank | The shape of the value. -1 is one single value (the default). 1 is a one-dimensional array. A larger number n is an array with n dimensions. 0 is an array with one or more dimensions. | number | |
arrayDimensions | The length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it. | list of number | |
value | The start value of the Variable. The gateway converts it to the data type. | any value | |
minimumSamplingInterval | The fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date. | number | |
historizing | Set true to tell OPC UA clients that the gateway collects history for this Variable. The default is false. Also add HistoryRead to accessLevel: CurrentRead | HistoryRead. | true or false | |
accessLevel | What an OPC UA client can do with the value. Write one or more flags with |: CurrentRead | CurrentWrite. The flags are CurrentRead, CurrentWrite, HistoryRead, HistoryWrite, SemanticChange, StatusWrite and TimestampWrite. | text | |
exposesItsArray | Set true on a member Variable of a type to make it the element of the array of its parent. The parent must be a Variable or VariableType that holds an array. You cannot use it with modellingRule. | true or false | |
modellingRule | How an instance of the parent type must treat this member. Mandatory: always created. Optional: created only on request. MandatoryPlaceholder and OptionalPlaceholder: a pattern for members that an instance adds (one or more, or zero or more). false: no rule. | Mandatory, Optional, MandatoryPlaceholder, OptionalPlaceholder, false | |
components | The child components of this node, as a list. The node owns each one with a HasComponent reference. | list of existing child node or child node | |
organizes | The nodes that this node organizes, as a list. Each one is linked with an Organizes reference. | list of node in an organizes list | |
properties | The properties of this node, as a list. Each property is a Variable that the node owns with a HasProperty reference. | list of Variable or Variable with children | |
references | Extra references from this node, as a list. Use it for a link that organizedBy and componentOf do not make. | list of reference or declaring reference | |
interfaces | The OPC UA interfaces that this node implements, as a list. | list of implemented interface | |
promotedToMandatory | Optional members of the type to create and to mark as mandatory. Write each as a browse name with its alias. For a nested member, join the names with a dot. | list of text or list of text or a map | |
methods | The Methods of this node, as a list. An OPC UA client can call a Method. | list of Method | |
nodeId | The node id of the node. Optional: without it, the gateway chooses an id and keeps it the same when you generate the model again. | text | |
organizedBy | The browse path of the parent node. The parent organizes this node with an Organizes reference. | text | |
optionals | The optional members of the type to create on this node. Write each as a browse name with its alias: di:SerialNumber. For a nested member, join the names with a dot. To give a member a value, write di:Manufacturer: Sterfive. | text or list of text or a map | |
propertyValues | Values for the properties of this node, as nested keys. Each key is a browse name with its alias. To give a Variable a value and children, write its value under $value. | a map | |
engineeringUnits | The unit of an analog Variable, from the OPC UA list of units: °C or bar. | text (a fixed list) | |
valuePrecision | The precision of the value. | number | |
euRange | The usual range of the value, as two numbers: the low limit and the high limit, for example [0, 100]. | list of number | |
instrumentRange | The range that the instrument can measure, as two numbers: the low limit and the high limit. | list of number | |
definition | A text that defines the value. | text | |
Advanced keys (7)
| Key | What it does | Value | Required |
|---|
$anchor | A name that other entries use to point at this node as $Name. Use it when the browse name alone is not unique. Without it, the name is the browse name without its alias. | text | |
rolePermissions | Who can do what with this node. Each entry names a role, for example ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node uses the default of its namespace. | list of role permission | |
permissionSet | The name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions. | text | |
accessRestrictions | How an OPC UA client must secure its connection to reach this node: SigningRequired, EncryptionRequired, SessionRequired or ApplyRestrictionsToBrowse. Give one or more values. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
documentation | Long text in Markdown for this node. The documentation that the OPC UA Modeler generates includes it. It is not the description, which an OPC UA client reads. | text | |
specRef | A link to the part of the specification that defines this node: https://reference.opcfoundation.org/Machinery/v104/docs/8.2. The NodeSet2.xml file keeps it as the Documentation of the node. false says that this node has no link. | text or false | |
userAccessLevel | The access of the current user. It uses the same flags as accessLevel. It can reduce accessLevel, but not increase it. | text | |
A node in an organizes list
An Object, Variable or Method that a node organizes.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
nodeClass | The kind of node: Object, Variable or Method. | Object, Variable, Method | |
typeDefinition | The type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members. | type reference | |
promotedToMandatory | Optional members of the type to create and to mark as mandatory. Write each as a browse name with its alias. For a nested member, join the names with a dot. | list of text or list of text or a map | |
properties | The properties of this node, as a list. Each property is a Variable that the node owns with a HasProperty reference. | list of Variable or Variable with children | |
components | The child components of this node, as a list. The node owns each one with a HasComponent reference. | list of existing child node or child node | |
organizes | The nodes that this node organizes, as a list. Each one is linked with an Organizes reference. | list of node in an organizes list | |
optionals | The optional members of the type to create on this node. Write each as a browse name with its alias: di:SerialNumber. For a nested member, join the names with a dot. To give a member a value, write di:Manufacturer: Sterfive. | text or list of text or a map | |
propertyValues | Values for the properties of this node, as nested keys. Each key is a browse name with its alias. To give a Variable a value and children, write its value under $value. | a map | |
nodeId | The node id of the node. Optional: without it, the gateway chooses an id and keeps it the same when you generate the model again. | text | |
valueRank | The shape of the value. -1 is one single value (the default). 1 is a one-dimensional array. A larger number n is an array with n dimensions. 0 is an array with one or more dimensions. | number | |
arrayDimensions | The length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it. | list of number | |
dataType | The data type of the Variable, for example ua:Double or ua:Int32. Optional when the type of the Variable already has a concrete data type. Required when it has none, or only a general one such as ua:Number. | text | |
value | The start value of the Variable. The gateway converts it to the data type. | any value | |
exposesItsArray | Set true on a member Variable of a type to make it the element of the array of its parent. The parent must be a Variable or VariableType that holds an array. You cannot use it with modellingRule. | true or false | |
methods | The Methods of this node, as a list. An OPC UA client can call a Method. | list of Method | |
Advanced keys (6)
| Key | What it does | Value | Required |
|---|
$anchor | A name that other entries use to point at this node as $Name. Use it when the browse name alone is not unique. Without it, the name is the browse name without its alias. | text | |
rolePermissions | Who can do what with this node. Each entry names a role, for example ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node uses the default of its namespace. | list of role permission | |
permissionSet | The name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions. | text | |
accessRestrictions | How an OPC UA client must secure its connection to reach this node: SigningRequired, EncryptionRequired, SessionRequired or ApplyRestrictionsToBrowse. Give one or more values. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
documentation | Long text in Markdown for this node. The documentation that the OPC UA Modeler generates includes it. It is not the description, which an OPC UA client reads. | text | |
specRef | A link to the part of the specification that defines this node: https://reference.opcfoundation.org/Machinery/v104/docs/8.2. The NodeSet2.xml file keeps it as the Documentation of the node. false says that this node has no link. | text or false | |
A Method
A Method that an OPC UA client can call, with its input and output arguments.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
nodeId | The node id of the Method, for example s=Calibrate. Without it, the gateway chooses an id and keeps it the same when you generate the model again. | text | |
executable | Whether an OPC UA client can call the Method. Set false to forbid the call. | true or false | |
argumentPermissions | The permissions of the InputArguments and OutputArguments properties of the Method. Without it, they use the roles and the access restrictions of the Method. | permissions of the arguments of a method | |
inputArguments | The input arguments of the Method, as a list. | list of argument of a method | |
outputArguments | The output arguments of the Method, as a list. | list of argument of a method | |
Advanced keys (3)
| Key | What it does | Value | Required |
|---|
rolePermissions | Who can do what with this node. Each entry names a role, for example ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node uses the default of its namespace. | list of role permission | |
permissionSet | The name of a shared set of permissions, an entry of permissionSets. Use it instead of rolePermissions and accessRestrictions on the same node, not with them. | text | |
accessRestrictions | How a client must secure its connection before it can reach this node. SigningRequired: messages must be signed. EncryptionRequired: messages must be encrypted. SessionRequired: the client must use a session. ApplyRestrictionsToBrowse: the restrictions also apply when a client browses to the node. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
An implemented interface
Says that a node implements an OPC UA interface type, and so has the members of that interface. It appears in the interfaces list.
| Key | What it does | Value | Required |
|---|
browseName | The browse name of the interface type, for example di:IVendorNameplateType. Use the namespace alias when the type is in another namespace, and ua: for the OPC UA base namespace. | text | |
description | A short description. Write a text, or a map with text and locale. | text with a language | |
promotedToMandatory | The optional members of the interface to create and to make mandatory. Write their browse names, with the namespace alias. Use a dot for a nested member: Property.ChildProperty. | list of text or list of text or a map | |
An initializer
Gives a Variable its first value. It appears in the initializers list of the configuration file or of an instance.
| Key | What it does | Value | Required |
|---|
variable | The Variable to set. In the configuration file, write its browse path or an $anchor path. In an instance, write a path from that instance, such as Temperature. | text | yes |
value | The first value. Write a text, a number, true or false for a simple value, a list for an array, or a map for a structure. When the Variable has sub-properties, put its own value under $value. | any value | yes |
engineeringUnits | The unit of measure of the Variable, for example °C. The gateway does not apply it yet and writes a warning. | text (a fixed list) | |
range | The minimum and the maximum of the range of the Variable, as two numbers, for example [0, 100]. The gateway does not apply it yet. | list of number | |
description | A description of the Variable, in place of the description of its type. The gateway does not apply it yet. | text | |
An add-in
A reusable component that a node carries, made from an add-in type. It appears in the addIns list of a member of a type.
| Key | What it does | Value | Required |
|---|
typeDefinition | The type that the add-in is made from. | any value | |
modellingRule | How a type uses this member. Mandatory: every instance of the type has it. Optional: an instance can have it. MandatoryPlaceholder and OptionalPlaceholder: the member stands for any number of nodes. false: no rule. | any value | |
description | A short description of the add-in. | text | |
promotedToMandatory | The optional children of the add-in type to create and to make mandatory. Write their browse names. | list of text | |
properties | More properties of the add-in, in addition to the ones that its type makes. A companion specification uses this when it re-exposes an add-in and adds members to it. | list of Variable or value keys of a Variable member | |
components | More components of the add-in, in addition to the ones that its type makes. | list of Variable member of a type, Object member of a type, existing child node or member with property values | |
methods | More methods of the add-in, in addition to the ones that its type makes. | list of Method member of a type | |
browseName | The browse name of the add-in. Without it, the add-in takes the default browse name of its type. | any value | |
optionals | The optional children of the add-in type to create, by browse name and without a namespace alias. Use a dot for a nested child: Property.ChildProperty. A single text is also valid. | text or list of text | |
A reference
A link between two nodes, with a reference type. It appears in the references list and adds a link to the ones that the placement of the node already makes.
| Key | What it does | Value | Required |
|---|
source | The browse path of the node that the reference starts from. | text | |
target | The browse path of the node that the reference points to. | text | |
referenceType | The name of the reference type, for example ua:HasInterface. | text | |
isForward | The direction of the reference. true (the default): from the source to the target. false: from the target to the source, the inverse reference. | true or false | |
A declaring reference
A reference that also creates its target. The target node is created below the owner and linked with the reference type. It appears in the references list.
A role permission
One role and the permissions that the role gets on a node. It appears in the rolePermissions list.
| Key | What it does | Value | Required |
|---|
role | The role, as alias:BrowseName of a role, such as ua:Operator, or as a full browse path. | text | yes |
permissions | The permissions that the role gets: Browse, ReadRolePermissions, WriteAttribute, WriteRolePermissions, WriteHistorizing, Read, Write, ReadHistory, InsertHistory, ModifyHistory, DeleteHistory, ReceiveEvents, Call, AddReference, RemoveReference, DeleteNode or AddNode. Write [all] for every permission that applies to the node. | list of all or list of text (a fixed list) | yes |
A type definition
The VariableType that a variable declaration is made from. Write it as alias:TypeName, or as a map. The default is ua:BaseDataVariableType.
| Key | What it does | Value | Required |
|---|
name | The name of the type, without an alias: DeviceType. | text | |
namespace | The namespace alias of the type: di. | text | |
An expand block
A block that makes entries from templates. It uses one template (use) or a list of templates (layout), one time, repeat times, or one time for each record of over.
| Key | What it does | Value | Required |
|---|
parent | The parent of the entries that the block makes. A template reads it as ${parent}. Without it, the block uses the parent of the block around it. | text | |
with | Values that are the same for every iteration. The block gives each value to each template that declares a param with the same name. | a map | |
counters | The counters of the block, by name. A counter works in this block and in the blocks inside it. | a map | |
use | The name of the template that each iteration uses. | text | |
layout | The templates that each iteration uses, in order. Each entry is a template name, { use, repeat, with } or { expand }. | list of entry of a template layout | |
repeat | The number of iterations, for example 4. An expression can give the number. | number or text | |
index | The value of each iteration. n gives 0, 1, 2. A map gives a named counter: { name: n, start: 1, format: "000" }. | index | |
over | One iteration for each record. Give a list of maps, or a CSV table with { file }. | records of an expand block | |
reverse | When true, the counters of the block give their values from the other end. The order of the entries does not change. An expression can give the value. | true or false or text | |
instances | Instances that each iteration adds, without a template. | list of maps | |
mapping | Mapping entries that each iteration adds, without a template. | list of maps | |
initializers | Initializers that each iteration adds, without a template. | list of maps | |
A text with a language
A text and the language that it is in. You can also write a plain text, without a language.
| Key | What it does | Value | Required |
|---|
locale | The language of the text, for example en or de. Leave it empty for a text without a language. | text or nothing | |
text | The text. | text | |
The permissions of the arguments of a method
Sets the permissions of the InputArguments and OutputArguments of a method. Without it, they take the roles and the access restrictions of the method. Call becomes Read, and [all] becomes every Variable permission.
Advanced keys (2)
| Key | What it does | Value | Required |
|---|
rolePermissions | Who can do what on this node. Each entry names a role, such as ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node takes the default permissions of its namespace. | list of role permission | |
accessRestrictions | How a client must secure its connection before it can reach this node. SigningRequired: messages must be signed. EncryptionRequired: messages must be encrypted. SessionRequired: the client must use a session. ApplyRestrictionsToBrowse: the restrictions also apply when a client browses to the node. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
An argument of a method
One input or output value of a method. It appears in the inputArguments and outputArguments lists.
| Key | What it does | Value | Required |
|---|
name | The name of the argument, as a client sees it. | text | yes |
dataType | The data type of the argument, for example ua:Double or ua:String. Write the namespace alias before the name. | text | yes |
description | A description of the argument. Write a text, or a map with text and locale. | description of an argument | |
valueRank | The shape of the argument. -1: one value (the default). 0: an array with one or more dimensions. 1: an array with one dimension. A number above 1: an array with that number of dimensions. | number | |
arrayDimensions | The length of each dimension of an array argument, for example [10]. | list of number | |
The value keys of a Variable member
The keys that describe the value of a Variable member of a type: its data type, its dimensions and its value.
| Key | What it does | Value | Required |
|---|
valueRank | The shape of the value. -1 is one single value (the default). 1 is a one-dimensional array. A larger number n is an array with n dimensions. 0 is an array with one or more dimensions. | number | |
arrayDimensions | The length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it. | list of number | |
dataType | The data type of the Variable, for example ua:Double or ua:Int32. Optional when the type of the Variable already has a concrete data type. Required when it has none, or only a general one such as ua:Number. | text | |
value | The start value of the Variable. The gateway converts it to the data type. | any value | |
exposesItsArray | Set true on a member Variable of a type to make it the element of the array of its parent. The parent must be a Variable or VariableType that holds an array. You cannot use it with modellingRule. | true or false | |
A Variable member of a type
A Variable that a type declares as one of its members. It is either a Variable or a Variable specific entry.
It is one of:
- Variable: A Variable with its own type, value and child nodes.
- value keys of a Variable member: The keys that describe the value of a Variable member of a type: its data type, its dimensions and its value.
An Object member of a type
An Object that a type or an add-in declares as one of its members. It can have its own members: components, properties, methods and organized nodes.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
nodeClass | The kind of node: Object. You can leave it out. | Object | |
nodeId | The node id of the node. Optional: without it, the gateway chooses an id and keeps it the same when you generate the model again. | text | |
typeDefinition | The type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members. | type reference | |
modellingRule | How an instance of the parent type must treat this member. Mandatory: always created. Optional: created only on request. MandatoryPlaceholder and OptionalPlaceholder: a pattern for members that an instance adds (one or more, or zero or more). false: no rule. | Mandatory, Optional, MandatoryPlaceholder, OptionalPlaceholder, false | |
optionals | The optional members of the type to create on this node. Write each as a browse name with its alias: di:SerialNumber. For a nested member, join the names with a dot. To give a member a value, write di:Manufacturer: Sterfive. | text or list of text or a map | |
components | The child components of this node. Each one is linked to it with a HasComponent reference. | list of Variable member of a type, Object member of a type, existing child node or member with property values | |
organizes | The nodes that this node organizes, such as folders, with an Organizes reference. A node can be a Variable or a Property, not only an Object. A text entry links to a node that another entry declares. | list of node that an object organizes | |
properties | The properties of this node. Each one is linked to it with a HasProperty reference, and each one must be a Variable. | list of Variable or value keys of a Variable member | |
references | Extra references from this node, as a list. Use it for a link that organizedBy and componentOf do not make. | list of reference or declaring reference | |
interfaces | The OPC UA interfaces that this node implements, as a list. | list of implemented interface | |
promotedToMandatory | Optional members of the type to create and to mark as mandatory. Write each as a browse name with its alias. For a nested member, join the names with a dot. | list of text or list of text or a map | |
methods | The methods that this node offers to clients. | list of Method | |
orderedComponents | The child components in a fixed order, with a HasOrderedComponent reference. A client that browses them always gets them in the same order. | list of Object member of a type | |
physicalComponents | The parts that make up this hardware component, with a HasPhysicalComponent reference. Example: an IO station with its IO modules. | list of Object member of a type | |
containedComponents | The parts inside this hardware component, with a HasContainedComponent reference. You must open or remove a part of the component to reach them. | list of Object member of a type | |
attachedComponents | The parts fixed to the outside of this hardware component, with a HasAttachedComponent reference. You can see them without opening the component. | list of Object member of a type | |
organizedBy | The browse path of the parent node. The parent organizes this node with an Organizes reference. | text | |
Advanced keys (6)
| Key | What it does | Value | Required |
|---|
$anchor | A name for this member, so that the organizes links of its type can point to it as $Name. Use it when the browse name alone is ambiguous. | text | |
rolePermissions | Who can do what on this node. Each entry names a role, such as ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node takes the default permissions of its namespace. | list of role permission | |
permissionSet | The name of a shared set of permissions, an entry of permissionSets. Use it instead of rolePermissions and accessRestrictions on the same node, not with them. | text | |
accessRestrictions | How a client must secure its connection before it can reach this node. SigningRequired: messages must be signed. EncryptionRequired: messages must be encrypted. SessionRequired: the client must use a session. ApplyRestrictionsToBrowse: the restrictions also apply when a client browses to the node. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
documentation | Long text in Markdown for this node. The documentation that the OPC UA Modeler generates includes it. It is not the description, which an OPC UA client reads. | text | |
specRef | A link to the part of the specification that defines this node: https://reference.opcfoundation.org/Machinery/v104/docs/8.2. The NodeSet2.xml file keeps it as the Documentation of the node. false says that this node has no link. | text or false | |
A member with property values
A member entry that has only propertyValues. It sets the values of members that the type already has.
| Key | What it does | Value | Required |
|---|
propertyValues | Values for the properties of this node, as nested keys. Each key is a browse name with its alias. To give a Variable a value and children, write its value under $value. | a map | |
A Method member of a type
A Method that a type declares as one of its members. It appears in the methods list.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space. It has an optional namespace alias and a name: di:DeviceType. Omit the alias for a name in the gateway's own namespace. Write ua: for a name of the OPC UA base namespace. Use PascalCase: TemperatureSensor. | text | yes |
displayName | The text that an OPC UA client shows for the node. Without it, the client shows the browse name. | text with a language | |
description | A short text that describes the node. An OPC UA client can read it. | text with a language | |
nodeId | The node id of the Method, for example s=Calibrate. Without it, the gateway chooses an id and keeps it the same when you generate the model again. | text | |
modellingRule | How an instance of the parent type must treat this member. Mandatory: always created. Optional: created only on request. MandatoryPlaceholder and OptionalPlaceholder: a pattern for members that an instance adds (one or more, or zero or more). false: no rule. | Mandatory, Optional, MandatoryPlaceholder, OptionalPlaceholder, false | |
executable | Whether an OPC UA client can call the Method. Set false to forbid the call. | true or false | |
argumentPermissions | The permissions of the InputArguments and OutputArguments of the method. Without it, they take the roles and the access restrictions of the method. | permissions of the arguments of a method | |
inputArguments | The input arguments of the Method, as a list. | list of argument of a method | |
outputArguments | The output arguments of the Method, as a list. | list of argument of a method | |
Advanced keys (5)
| Key | What it does | Value | Required |
|---|
rolePermissions | Who can do what on this node. Each entry names a role, such as ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node takes the default permissions of its namespace. | list of role permission | |
permissionSet | The name of a shared set of permissions, an entry of permissionSets. Use it instead of rolePermissions and accessRestrictions on the same node, not with them. | text | |
accessRestrictions | How a client must secure its connection before it can reach this node. SigningRequired: messages must be signed. EncryptionRequired: messages must be encrypted. SessionRequired: the client must use a session. ApplyRestrictionsToBrowse: the restrictions also apply when a client browses to the node. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
documentation | Long text in Markdown for this node. The documentation that the OPC UA Modeler generates includes it. It is not the description, which an OPC UA client reads. | text | |
specRef | A link to the part of the specification that defines this node: https://reference.opcfoundation.org/Machinery/v104/docs/8.2. The NodeSet2.xml file keeps it as the Documentation of the node. false says that this node has no link. | text or false | |
An entry of a template layout
One step of the layout list of an expand block. It is a template name, a template with repeat and with, or a nested expand block.
| Key | What it does | Value | Required |
|---|
use | The name of the template to use. | text | |
repeat | How many times to use the template. An expression can give the number. | number or text | |
with | Values for the params of the template, by name. | a map | |
expand | A nested expand block that makes entries. | expand block | |
An index
The value of each iteration of an expand block. n gives 0, 1, 2. A map gives a named counter.
| Key | What it does | Value | Required |
|---|
name | The name of the index. A template reads the value as ${name}, for example ${slot}. | text | |
start | The first value. The default is 0. | number | |
step | The increase between two values. The default is 1. | number | |
format | A run of 0. The value becomes a text with zeros on the left, up to this width: "00" gives 01, 02. | text | |
in | The values, in order, for example [1, 2, 4, 8]. Do not use it with start or step. | list of number or text | |
The records of an expand block
One iteration for each record. Give a list of maps, or a CSV table with the key file.
| Key | What it does | Value | Required |
|---|
file | The CSV table, relative to the configuration file. Its first line names the columns. | text | |
delimiter | The separator of the cells: , or ;. Without it, the gateway reads the separator from the first line. | ,, ; | |
decimalSeparator | The decimal separator of the numbers: . or ,. The default is .. The gateway never guesses it. | ., , | |
A description of an argument
A text and the language that it is in. You can also write a plain text.
| Key | What it does | Value | Required |
|---|
locale | The language of the text, for example en or de. Leave it empty for a text without a language. | text or nothing | |
text | The text. | text | |
A node that an object organizes
A node that the object organizes, such as a folder, a Variable or a Method. You can also write a link to a node that another entry declares.
| Key | What it does | Value | Required |
|---|
browseName | The name of the node in the address space, for example Speed. Write the namespace alias before the name when it is in another namespace. | any value | |
displayName | The name that users see. Write a text, or a map with text and locale. | any value | |
description | A short description. Write a text, or a map with text and locale. | any value | |
nodeClass | The kind of node: Object, Variable or Method. Write it when the entry has no type definition, so that the kind is clear. | any value | |
nodeId | A fixed NodeId for the node, for example s=Speed. Without it, the modeler gives an identifier and keeps it when it builds the model again. | any value | |
typeDefinition | The type that the node is made from, for example ua:BaseDataVariableType. Write the namespace alias before the type name. | any value | |
promotedToMandatory | Optional members of the type to create and to mark as mandatory. Write each as a browse name with its alias. For a nested member, join the names with a dot. | list of text or list of text or a map | |
orderedComponents | The child components in a fixed order, with a HasOrderedComponent reference. A client that browses them always gets them in the same order. | list of Object member of a type | |
physicalComponents | The parts that make up this hardware component, with a HasPhysicalComponent reference. Example: an IO station with its IO modules. | list of Object member of a type | |
containedComponents | The parts inside this hardware component, with a HasContainedComponent reference. You must open or remove a part of the component to reach them. | list of Object member of a type | |
attachedComponents | The parts fixed to the outside of this hardware component, with a HasAttachedComponent reference. You can see them without opening the component. | list of Object member of a type | |
optionals | The optional members of the type to create on this node. Use a dot for a nested member: Property.ChildProperty. | any value | |
dataType | The data type of a Variable, for example ua:Double. Write the namespace alias before the name. | any value | |
valueRank | The shape of the value of a Variable. -1: one value (the default). 0: an array with one or more dimensions. 1: an array with one dimension. A number above 1: an array with that number of dimensions. | any value | |
arrayDimensions | The length of each dimension of an array Variable. | any value | |
value | The first value of a Variable. | any value | |
minimumSamplingInterval | The fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date. | number | |
historizing | Set true to tell OPC UA clients that the gateway collects history for this Variable. The default is false. Also add HistoryRead to accessLevel: CurrentRead | HistoryRead. | true or false | |
accessLevel | What an OPC UA client can do with the value. Write one or more flags with |: CurrentRead | CurrentWrite. The flags are CurrentRead, CurrentWrite, HistoryRead, HistoryWrite, SemanticChange, StatusWrite and TimestampWrite. | text | |
exposesItsArray | Set it to true when this member is an element of the array of its parent. The parent must be a Variable that holds an array. Do not use it with modellingRule. | any value | |
modellingRule | How a type uses this member. Mandatory: every instance of the type has it. Optional: an instance can have it. MandatoryPlaceholder and OptionalPlaceholder: the member stands for any number of nodes. false: no rule. | any value | |
components | The child components of this node. Each one is linked to it with a HasComponent reference. | list of Variable member of a type, Object member of a type, existing child node or member with property values | |
organizes | The nodes that this node organizes, such as folders, with an Organizes reference. A node can be a Variable or a Property, not only an Object. A text entry links to a node that another entry declares. | list of node that an object organizes | |
properties | The properties of this node. Each one is linked to it with a HasProperty reference, and each one must be a Variable. | list of Variable or value keys of a Variable member | |
references | Extra references from this node, as a list. Use it for a link that organizedBy and componentOf do not make. | list of reference or declaring reference | |
interfaces | The interface types that this node implements. | any value | |
methods | The methods that this node offers to clients. | list of Method member of a type | |
addIns | The add-ins of this node, as a list. | list of add-in | |
engineeringUnits | The unit of an analog Variable, from the OPC UA list of units: °C or bar. | text (a fixed list) | |
euRange | The usual range of the value, as two numbers: the low limit and the high limit, for example [0, 100]. | list of number | |
valuePrecision | The precision of the value. | number | |
instrumentRange | The range that the instrument can measure, as two numbers: the low limit and the high limit. | list of number | |
definition | A text that defines the value. | text | |
propertyValues | The values of members that the type already has. The keys are browse names with a namespace alias. Each value is a value or a nested map. Use $value for the value of the Variable itself. | any value | |
Advanced keys (7)
| Key | What it does | Value | Required |
|---|
$anchor | A name for this member, so that the organizes links of its type can point to it as $Name. Use it when the browse name alone is ambiguous. | text | |
rolePermissions | Who can do what on this node. Each entry names a role, such as ua:Operator, and the permissions that the role gets. An empty list grants no permission. Without this key, the node takes the default permissions of its namespace. | list of role permission | |
permissionSet | The name of a shared set of permissions, an entry of permissionSets. Use it instead of rolePermissions and accessRestrictions on the same node, not with them. | text | |
accessRestrictions | How a client must secure its connection before it can reach this node. SigningRequired: messages must be signed. EncryptionRequired: messages must be encrypted. SessionRequired: the client must use a session. ApplyRestrictionsToBrowse: the restrictions also apply when a client browses to the node. | list of SigningRequired, EncryptionRequired, SessionRequired, ApplyRestrictionsToBrowse | |
documentation | Long text in Markdown for this node. The documentation that the OPC UA Modeler generates includes it. It is not the description, which an OPC UA client reads. | text | |
specRef | A link to the part of the specification that defines this node: https://reference.opcfoundation.org/Machinery/v104/docs/8.2. The NodeSet2.xml file keeps it as the Documentation of the node. false says that this node has no link. | text or false | |
userAccessLevel | The access of the current user. It uses the same flags as accessLevel. It can reduce accessLevel, but not increase it. | text | |