opcua-gateway
is a server process that connects to MTConnect agents and provides an OPC UA interface according to the MTConnect OPC UA Companion Specification.
Usage:
opcua-gateway [config file - default is opcua-gateway.cfg]
# MTConnect agents information
agents:
#
# - name: <device name>
# url: <MTConnect Agent url>
# freq: <poll period in seconds>
#
- name: GFAgie01
url: https://smstestbed.nist.gov/vds/GFAgie01
freq: 1
- name: Mazak-5610
url: http://mtconnect.mazakcorp.com:5610
freq: 1
- name: Mazak-5611
url: http://mtconnect.mazakcorp.com:5611
freq: 1
- name: Mazak-5612
url: http://mtconnect.mazakcorp.com:5612
freq: 1
logging:
# serverity can be debug, info, warn, error or off, default is info
severity: info
#
# opcua server program name and its discovery port #
#
server:
#
# server name display in OPC UA discovery
#
name: MTConnect/OPC UA Gateway Demo
port: 4840
# initial wait time before reading data from agents
initialWaitTime: 10
# OPC UA event severity level for MTConnect Warning and Fault conditions
warningEventSeverity: 500
faultEventSeverity: 1000
#useWebSocket: TRUE
#
# Additional optional connection info
# cert: <location of certificate file - DER>
# key: <location of key file - PEM>
# user: <user's id>
# password: <user's password>
# certificateCheck: [true, false]
# default is false
# allowSecurityPolicyNone: [true, false]
# default is false
#
#cert: ../certs/public.cert.der
#key: ../certs/key.pem
#user: demo
#password: test
#certificateCheck: false
#allowSecurityPolicyNone: false
# licenseKey: <your license key - default is demo mode if not provided>
agents
name / url / frequency
: Specify the MTConnect agent's URL and how often to poll the data.server
port
: The port number that the OPC UA server will serve.initialWaitTime
: Initial wait time in seconds before collecting data from the MTConnect agents.user/password
: If not specified, allow anonymous login.warningEventSeverity
: OPC UA event severity level for MTConnect Warning conditions.faultEventSeverity
: OPC UA event severity level for MTConnect Fault conditionskey/cert
: Specify the location of the server certificate and its key file used in establishing the secured connections. If they are valid, it allows secured connections of all security policies.checkCertificate
: Validate the client's certificate during the secured connection.allowSecurityPolicyNone
: If checked, allow an unsecured connection option also.
C:\Program Files\MetaAgent\examples\opcua-gateway>opcua-gateway opcua-gateway.cfg
Metalogi MetaAgent - OPCUA/MTConnect Gateway 2.2.0.600 - built on Wed Oct 11 22:28:27 2023
[2023-10-29T09:33:17] info Settings are loaded from opcua-gateway.cfg
[2023-10-29T09:33:17] info Product OPC UA <=> MTConnect is verified
[2023-10-29T09:33:18] warn AccessControl: Unconfigured AccessControl. Users have all permissions.
[2023-10-29T09:33:18] warn Username/Password Authentication configured, but no encrypting SecurityPolicy. This can leak credentials on the network.
[2023-10-29T09:33:18] warn AcceptAll Certificate Verification. Any remote certificate will be accepted.
[2023-10-29T09:33:18] warn AcceptAll Certificate Verification. Any certificate will be accepted.
[2023-10-29T09:33:18] info Agent Uri: https://smstestbed.nist.gov/vds/GFAgie01
[2023-10-29T09:33:18] info Poll Interval: 1
[2023-10-29T09:33:18] info namespace: 3
[2023-10-29T09:33:18] info Agent Uri: http://mtconnect.mazakcorp.com:5610
[2023-10-29T09:33:18] info Poll Interval: 1
[2023-10-29T09:33:18] info namespace: 4
[2023-10-29T09:33:18] info Agent Uri: http://mtconnect.mazakcorp.com:5611
[2023-10-29T09:33:18] info Poll Interval: 1
[2023-10-29T09:33:18] info namespace: 5
[2023-10-29T09:33:18] info Agent Uri: http://mtconnect.mazakcorp.com:5612
[2023-10-29T09:33:18] info Poll Interval: 1
[2023-10-29T09:33:18] info namespace: 6