Skip to main content

instances

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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
typeDefinitionThe type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members.type referenceyes
nodeIdThe 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
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text
descriptionA short text that describes the node. An OPC UA client can read it.text
propertiesThe 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
componentsThe 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
organizesThe nodes that this node organizes, as a list. Each one is linked with an Organizes reference.list of node in an organizes list
methodsThe Methods of this node, as a list. An OPC UA client can call a Method.list of Method
organizedByThe browse path of the parent node. The parent organizes this node with an Organizes reference: /ua:Objects/di:DeviceSet.text
componentOfThe browse path of the parent node. The parent owns this node as a component with a HasComponent reference.text
propertyOfThe browse path of the parent node. The parent owns this node as a property with a HasProperty reference.text
addInOfThe browse path of the parent node. This Object adds a function to the parent, with a HasAddIn reference.text
orderedComponentOfThe browse path of the parent node. The parent owns this node as a component that keeps its order, with a HasOrderedComponent reference.text
physicalComponentOfThe browse path of the parent node. The parent owns this node as a physical part, with a HasPhysicalComponent reference.text
containedComponentOfThe browse path of the parent node. The parent contains this node, with a HasContainedComponent reference.text
optionalsThe 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
interfacesThe OPC UA interfaces that this node implements, as a list.list of implemented interface
initializersStart values for Variables below this node. Each entry gives a path that starts at this node, and a value.list of initializer
propertyValuesValues 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
dataTypeThe 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
valueThe start value of the Variable. The gateway converts it to the data type.any value
valueRankThe 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
arrayDimensionsThe length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it.list of number
accessLevelWhat 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
minimumSamplingIntervalThe fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date.number
historizingSet 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
addInsThe add-ins of this node, as a list.list of add-in
referencesExtra 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
eventSourcesThe 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
eventSourceOfThe 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
eventNotifierSet 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)
KeyWhat it doesValueRequired
$anchorA 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
rolePermissionsWho 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
permissionSetThe name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions.text
accessRestrictionsHow 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
userAccessLevelThe 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.

KeyWhat it doesValueRequired
browseNameThe name of the node. Browse paths use it as the last part: /ua:Objects/own:Temperature.textyes
dataTypeThe data type of the Variable, with an alias: ua:Float, ua:Int32, ua:String.textyes
nodeIdA text node id without the namespace part, for example s=MyNode. Without it, the gateway chooses a number.text
displayNameThe text that an OPC UA client shows for the Variable. The default is the browse name.text
typeDefinitionThe VariableType to make an instance of. The default is ua:BaseDataVariableType.type definition
optionalsThe 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
organizedByThe browse path of the parent node, for example /ua:Objects/di:DeviceSet. The parent organizes the Variable.text
propertyOfThe browse path of the parent node. The Variable becomes a property of the parent.text
componentOfThe browse path of the parent node. The Variable becomes a component of the parent.text
valueRankThe 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
arrayDimensionsThe fixed length of each dimension of an array. Use it with a valueRank of 1 or more.list of number
accessLevelWhat an OPC UA client can do with the value: CurrentRead or CurrentRead | CurrentWrite.text
historizingSet true to tell OPC UA clients that the gateway collects history for this Variable.true or false
minimumSamplingIntervalThe 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.

KeyWhat it doesValueRequired
expandA 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 blockyes

A type reference​

The name of a type and its namespace, as two keys.

KeyWhat it doesValueRequired
nameThe name of the type, without an alias: DeviceType.text
namespaceThe namespace alias of the type: di.text

A Variable​

A Variable with its own type, value and child nodes.

KeyWhat it doesValueRequired
browseNameThe 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 valueyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.any value
descriptionA short text that describes the node. An OPC UA client can read it.any value
nodeClassThe kind of node: Variable.any value
typeDefinitionThe VariableType of the Variable, for example ua:AnalogItemType.any value
dataTypeThe 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
valueRankThe 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
arrayDimensionsThe length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it.list of number
valueThe start value of the Variable. The gateway converts it to the data type.any value
minimumSamplingIntervalThe fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date.number
historizingSet 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
accessLevelWhat 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
exposesItsArraySet 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
modellingRuleHow 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
componentsThe 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
organizesThe nodes that this node organizes, as a list. Each one is linked with an Organizes reference.list of node in an organizes list
propertiesThe 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
referencesExtra 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
interfacesThe OPC UA interfaces that this node implements, as a list.list of implemented interface
promotedToMandatoryOptional 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
methodsThe Methods of this node, as a list. An OPC UA client can call a Method.list of Method
Advanced keys (7)
KeyWhat it doesValueRequired
$anchorA 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
rolePermissionsWho 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
permissionSetThe name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions.text
accessRestrictionsHow 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
documentationLong 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
specRefA 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
userAccessLevelThe 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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
nodeIdThe 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
propertiesThe 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
componentsThe 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
organizesThe nodes that this node organizes, as a list. Each one is linked with an Organizes reference.list of node in an organizes list
methodsThe Methods of this node, as a list. An OPC UA client can call a Method.list of Method
Advanced keys (3)
KeyWhat it doesValueRequired
rolePermissionsWho 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
permissionSetThe name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions.text
accessRestrictionsHow 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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
componentsThe child components of this child node. Use it to name or change nodes below it.list of existing child node or child node
orderedComponentsThe 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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
typeDefinitionThe type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members.type referenceyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
nodeClassThe kind of node: Object. You can leave it out.Object
dataTypeThe 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
valueRankThe 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
arrayDimensionsThe length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it.list of number
valueThe start value of the Variable. The gateway converts it to the data type.any value
minimumSamplingIntervalThe fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date.number
historizingSet 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
accessLevelWhat 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
exposesItsArraySet 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
modellingRuleHow 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
componentsThe 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
organizesThe nodes that this node organizes, as a list. Each one is linked with an Organizes reference.list of node in an organizes list
propertiesThe 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
referencesExtra 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
interfacesThe OPC UA interfaces that this node implements, as a list.list of implemented interface
promotedToMandatoryOptional 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
methodsThe Methods of this node, as a list. An OPC UA client can call a Method.list of Method
nodeIdThe 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
organizedByThe browse path of the parent node. The parent organizes this node with an Organizes reference.text
optionalsThe 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
propertyValuesValues 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
engineeringUnitsThe unit of an analog Variable, from the OPC UA list of units: °C or bar.text (a fixed list)
valuePrecisionThe precision of the value.number
euRangeThe usual range of the value, as two numbers: the low limit and the high limit, for example [0, 100].list of number
instrumentRangeThe range that the instrument can measure, as two numbers: the low limit and the high limit.list of number
definitionA text that defines the value.text
Advanced keys (7)
KeyWhat it doesValueRequired
$anchorA 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
rolePermissionsWho 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
permissionSetThe name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions.text
accessRestrictionsHow 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
documentationLong 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
specRefA 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
userAccessLevelThe 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.

KeyWhat it doesValueRequired
browseNameThe 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
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
nodeClassThe kind of node: Object, Variable or Method.Object, Variable, Method
typeDefinitionThe type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members.type reference
promotedToMandatoryOptional 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
propertiesThe 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
componentsThe 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
organizesThe nodes that this node organizes, as a list. Each one is linked with an Organizes reference.list of node in an organizes list
optionalsThe 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
propertyValuesValues 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
nodeIdThe 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
valueRankThe 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
arrayDimensionsThe length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it.list of number
dataTypeThe 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
valueThe start value of the Variable. The gateway converts it to the data type.any value
exposesItsArraySet 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
methodsThe Methods of this node, as a list. An OPC UA client can call a Method.list of Method
Advanced keys (6)
KeyWhat it doesValueRequired
$anchorA 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
rolePermissionsWho 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
permissionSetThe name of an entry of permissionSets. Use it in place of rolePermissions and accessRestrictions.text
accessRestrictionsHow 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
documentationLong 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
specRefA 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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
nodeIdThe 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
executableWhether an OPC UA client can call the Method. Set false to forbid the call.true or false
argumentPermissionsThe 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
inputArgumentsThe input arguments of the Method, as a list.list of argument of a method
outputArgumentsThe output arguments of the Method, as a list.list of argument of a method
Advanced keys (3)
KeyWhat it doesValueRequired
rolePermissionsWho 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
permissionSetThe 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
accessRestrictionsHow 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.

KeyWhat it doesValueRequired
browseNameThe 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
descriptionA short description. Write a text, or a map with text and locale.text with a language
promotedToMandatoryThe 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.

KeyWhat it doesValueRequired
variableThe 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.textyes
valueThe 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 valueyes
engineeringUnitsThe unit of measure of the Variable, for example °C. The gateway does not apply it yet and writes a warning.text (a fixed list)
rangeThe 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
descriptionA 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.

KeyWhat it doesValueRequired
typeDefinitionThe type that the add-in is made from.any value
modellingRuleHow 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
descriptionA short description of the add-in.text
promotedToMandatoryThe optional children of the add-in type to create and to make mandatory. Write their browse names.list of text
propertiesMore 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
componentsMore 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
methodsMore methods of the add-in, in addition to the ones that its type makes.list of Method member of a type
browseNameThe browse name of the add-in. Without it, the add-in takes the default browse name of its type.any value
optionalsThe 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.

KeyWhat it doesValueRequired
sourceThe browse path of the node that the reference starts from.text
targetThe browse path of the node that the reference points to.text
referenceTypeThe name of the reference type, for example ua:HasInterface.text
isForwardThe 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.

KeyWhat it doesValueRequired
referenceTypeThe name of the reference type that links the owner to the new node.textyes
targetThe node to create below the owner. Write it as a member entry, with a browse name. The owner becomes its parent.Variable member of a type, Object member of a type, existing child node or member with property valuesyes
sourceMust be /. It means the node that owns the reference.text

A role permission​

One role and the permissions that the role gets on a node. It appears in the rolePermissions list.

KeyWhat it doesValueRequired
roleThe role, as alias:BrowseName of a role, such as ua:Operator, or as a full browse path.textyes
permissionsThe 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.

KeyWhat it doesValueRequired
nameThe name of the type, without an alias: DeviceType.text
namespaceThe 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.

KeyWhat it doesValueRequired
parentThe 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
withValues 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
countersThe counters of the block, by name. A counter works in this block and in the blocks inside it.a map
useThe name of the template that each iteration uses.text
layoutThe 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
repeatThe number of iterations, for example 4. An expression can give the number.number or text
indexThe value of each iteration. n gives 0, 1, 2. A map gives a named counter: { name: n, start: 1, format: "000" }.index
overOne iteration for each record. Give a list of maps, or a CSV table with { file }.records of an expand block
reverseWhen 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
instancesInstances that each iteration adds, without a template.list of maps
mappingMapping entries that each iteration adds, without a template.list of maps
initializersInitializers 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.

KeyWhat it doesValueRequired
localeThe language of the text, for example en or de. Leave it empty for a text without a language.text or nothing
textThe 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)
KeyWhat it doesValueRequired
rolePermissionsWho 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
accessRestrictionsHow 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.

KeyWhat it doesValueRequired
nameThe name of the argument, as a client sees it.textyes
dataTypeThe data type of the argument, for example ua:Double or ua:String. Write the namespace alias before the name.textyes
descriptionA description of the argument. Write a text, or a map with text and locale.description of an argument
valueRankThe 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
arrayDimensionsThe 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.

KeyWhat it doesValueRequired
valueRankThe 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
arrayDimensionsThe length of each dimension of an array, for example [10]. If you omit valueRank, the number of lengths sets it.list of number
dataTypeThe 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
valueThe start value of the Variable. The gateway converts it to the data type.any value
exposesItsArraySet 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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
nodeClassThe kind of node: Object. You can leave it out.Object
nodeIdThe 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
typeDefinitionThe type that this node is an instance of: di:DeviceType or ua:BaseObjectType. The type gives the node its mandatory members.type reference
modellingRuleHow 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
optionalsThe 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
componentsThe 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
organizesThe 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
propertiesThe 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
referencesExtra 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
interfacesThe OPC UA interfaces that this node implements, as a list.list of implemented interface
promotedToMandatoryOptional 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
methodsThe methods that this node offers to clients.list of Method
orderedComponentsThe 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
physicalComponentsThe 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
containedComponentsThe 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
attachedComponentsThe 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
organizedByThe browse path of the parent node. The parent organizes this node with an Organizes reference.text
Advanced keys (6)
KeyWhat it doesValueRequired
$anchorA 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
rolePermissionsWho 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
permissionSetThe 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
accessRestrictionsHow 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
documentationLong 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
specRefA 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.

KeyWhat it doesValueRequired
propertyValuesValues 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.

KeyWhat it doesValueRequired
browseNameThe 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.textyes
displayNameThe text that an OPC UA client shows for the node. Without it, the client shows the browse name.text with a language
descriptionA short text that describes the node. An OPC UA client can read it.text with a language
nodeIdThe 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
modellingRuleHow 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
executableWhether an OPC UA client can call the Method. Set false to forbid the call.true or false
argumentPermissionsThe 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
inputArgumentsThe input arguments of the Method, as a list.list of argument of a method
outputArgumentsThe output arguments of the Method, as a list.list of argument of a method
Advanced keys (5)
KeyWhat it doesValueRequired
rolePermissionsWho 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
permissionSetThe 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
accessRestrictionsHow 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
documentationLong 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
specRefA 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.

KeyWhat it doesValueRequired
useThe name of the template to use.text
repeatHow many times to use the template. An expression can give the number.number or text
withValues for the params of the template, by name.a map
expandA 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.

KeyWhat it doesValueRequired
nameThe name of the index. A template reads the value as ${name}, for example ${slot}.text
startThe first value. The default is 0.number
stepThe increase between two values. The default is 1.number
formatA run of 0. The value becomes a text with zeros on the left, up to this width: "00" gives 01, 02.text
inThe 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.

KeyWhat it doesValueRequired
fileThe CSV table, relative to the configuration file. Its first line names the columns.text
delimiterThe separator of the cells: , or ;. Without it, the gateway reads the separator from the first line.,, ;
decimalSeparatorThe 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.

KeyWhat it doesValueRequired
localeThe language of the text, for example en or de. Leave it empty for a text without a language.text or nothing
textThe 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.

KeyWhat it doesValueRequired
browseNameThe 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
displayNameThe name that users see. Write a text, or a map with text and locale.any value
descriptionA short description. Write a text, or a map with text and locale.any value
nodeClassThe kind of node: Object, Variable or Method. Write it when the entry has no type definition, so that the kind is clear.any value
nodeIdA 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
typeDefinitionThe type that the node is made from, for example ua:BaseDataVariableType. Write the namespace alias before the type name.any value
promotedToMandatoryOptional 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
orderedComponentsThe 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
physicalComponentsThe 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
containedComponentsThe 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
attachedComponentsThe 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
optionalsThe optional members of the type to create on this node. Use a dot for a nested member: Property.ChildProperty.any value
dataTypeThe data type of a Variable, for example ua:Double. Write the namespace alias before the name.any value
valueRankThe 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
arrayDimensionsThe length of each dimension of an array Variable.any value
valueThe first value of a Variable.any value
minimumSamplingIntervalThe fastest rate, in milliseconds, at which the gateway can sample the value. 0 means the value is always up to date.number
historizingSet 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
accessLevelWhat 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
exposesItsArraySet 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
modellingRuleHow 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
componentsThe 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
organizesThe 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
propertiesThe 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
referencesExtra 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
interfacesThe interface types that this node implements.any value
methodsThe methods that this node offers to clients.list of Method member of a type
addInsThe add-ins of this node, as a list.list of add-in
engineeringUnitsThe unit of an analog Variable, from the OPC UA list of units: °C or bar.text (a fixed list)
euRangeThe usual range of the value, as two numbers: the low limit and the high limit, for example [0, 100].list of number
valuePrecisionThe precision of the value.number
instrumentRangeThe range that the instrument can measure, as two numbers: the low limit and the high limit.list of number
definitionA text that defines the value.text
propertyValuesThe 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)
KeyWhat it doesValueRequired
$anchorA 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
rolePermissionsWho 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
permissionSetThe 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
accessRestrictionsHow 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
documentationLong 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
specRefA 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
userAccessLevelThe access of the current user. It uses the same flags as accessLevel. It can reduce accessLevel, but not increase it.text