OPC UA Machine Simulator for MES Testing
Simulate industrial machines and test OPC UA communication without physical hardware. MaConSim provides an embedded OPC UA server that lets you build custom address spaces, expose dynamic machine data and validate communication with MES, SCADA and DCS systems.
Back to the product overview.

How the OPC UA integration works
- Create an OPC UA tree — a virtual server instance with its own address,
port (default
4840) and security configuration. - Build the address space: Objects, Variables, Methods and Views, organized with references (Organizes, HasComponent, HasProperty, …). A separate Type Definitions view lets you define reusable types such as a standard MachineType.
- Bind every Variable to a data source: a static value, a database reference to live simulation data, or a simulation (sine, sawtooth, random, …). Methods are implemented by Python functions or low-code flows.
- Start the server. Your MES/SCADA connects as an OPC UA client and reads, subscribes to or writes your simulated machine data.
Changes to trees or nodes require stopping the server first; restart it afterwards for the changes to take effect. The system detects port conflicts automatically.
OPC UA server capabilities
- Custom address spaces: Objects, Variables, Methods, Views + Type Definitions
- NodeId identifier types: string, numeric, GUID, ByteString; data types String, Int32, Int64, Float, Double, Boolean, DateTime, ByteString
- Access levels (read-only / write-only / read-write), engineering units with EU range, value precision, update interval
- Security modes None / Sign / SignAndEncrypt with policies such as
Basic256Sha256,Aes128Sha256RsaOaep(recommended) andAes256Sha256RsaPss - User authentication: Anonymous, UserName/password, X.509 Certificate, IssuedToken (OAuth/JWT)
- NodeSet2 XML import and export — import pre-built address spaces, export your trees for reuse
- Certificate management: server certificates generated automatically; trusted client certificates (.der, .pem, .crt, .cer) managed per tree
- Methods backed by Python functions / low-code flows, with a dry-run “Test (no changes)” before going live
- Live value display and Live Chart for simulation variables in the UI
Data sources behind OPC UA variables
The same data source system is shared with MQTT:
| Type | Description | Best for |
|---|---|---|
| Static Value | Fixed value until manually changed | Configuration constants, test values |
| Database Reference | Live values from the MaConSim database via a visual query builder (up to 4 JOINs, filters, sorting, limit, aggregation, live preview) | Dynamic machine data, orders, event logs |
| Simulation | Generated values (sine, sawtooth, random, …) | Sensor data, demos, testing without database entries |
Typical use cases
- Testing MES/SCADA connectivity without a physical machine.
- Validating OPC UA node structures and companion-spec mappings.
- Testing machine state and sensor data processing in your MES.
- Reproducing communication scenarios in a development environment.
Technical details
| Aspect | Detail |
|---|---|
| Default port | 4840 (configurable per tree) |
| Security | Security modes None/Sign/SignAndEncrypt; recommended production mode SignAndEncrypt |
| Authentication | Anonymous, UserName, Certificate (X.509), IssuedToken |
| NodeSet2 | XML import (replaces existing nodes) and export |
| Deployment | Desktop app and Docker — both run the OPC UA server |
| License | OPC UA server/client requires the opcUaServer or opcUaClient entitlement |
FAQ
Can MaConSim import OPC UA NodeSet2 files? Yes. Import a NodeSet2 XML file on any tree to pre-populate the node structure (the import replaces the tree’s current nodes and references), and export your own trees as NodeSet2 XML.
Can dynamic simulation values be exposed through OPC UA? Yes. Every Variable can be bound to a database reference or a simulation data source (sine, sawtooth, random, …), so clients see live-changing values.
Can OPC UA clients write to nodes? Yes, where the Variable’s access level allows it. Values in machine connection tables (e.g. the current value of a data collection) are read-only for OPC UA clients.
Which security configuration is recommended?
For production-like testing use SignAndEncrypt with a modern policy such as
Aes128Sha256RsaOaep and certificate or username authentication. Mode None
sends messages in plain text.
Technical documentation
Read the OPC UA chapter of the User Manual: OPC UA, NodeSet2 Import/Export, Certificate Management, Node Management, Data Source Configuration.
Related: MQTT simulator · Automation Flows (methods run functions) · Machine Simulation.
