Configuration
configuration file
The configuration file is a YAML file that contains the settings for the server. The file should be structured as follows:
# yaml-language-server: $schema=node_modules/@sterfive/opcua-omni-edge/schema/config.schema.json
# the TCP-IP port of the OPCUA Server
port: 4840
# a list of preloeaded nodesets (NodeSet XML files) that will be loaded at startup
# The nodeset can be either aliases for well-known nodeset ( like di for http://opcfoundation.org/UA/DI/) or a path to a nodeset XML file.)
nodesets:
# the list of devices to be connected to the server including (Mobus, OPCUA, MQTT, S7 , Redis etc...)
brownfieldDevices:
# the table of mapping allowing you to map a OPCUA Variable node to a brownfield device
mapping:
the nodesets section
The server allows you to import OPC UA companion specification, which are XML files that define the structure and semantics of the OPC UA information model.
You can specify the nodesets to be loaded in the configuration file under the nodesets section.
You can use aliases for well-known nodesets or provide the path to custom nodeset XML files.
-
alias : You can use predefined aliases for well-known nodesets, such as
difor the Device Integration nodeset (http://opcfoundation.org/UA/DI/). see the List of nodesets aliases section for a complete list of available aliases. -
custom nodeset: You can also specify custom nodeset XML files by providing their paths in the
nodesetssection of the configuration file.
the noteset section provides more details on how to configure the nodesets.
the brownfieldDevices section
The server can connect to various brownfield devices, such as Modbus, OPC UA, MQTT, S7, Redis, etc. You can define the devices to be connected in the brownfieldDevices section of the configuration file.
See Brownfield Devices for more details on how to configure the brownfield devices.
the mapping section
The mapping section allows you to map OPC UA Variable nodes to brownfield devices.
This is done using a variety of technics, such as JSONata expressions, which allow you to transform and manipulate the data from the brownfield devices before exposing it in the OPC UA address space.
See Mapping Section for more details on how to configure the mapping.