opcua-server/README.md
Christoph Hehl e3beb244f0 FixUpdate
2026-05-10 14:24:01 +02:00

22 lines
1021 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

**OPC UA Simulator **
**Voraussetzungen**
- JDK 17 oder neuer
- Maven 3.9 oder neuer
**CLI starten**
mvn -q exec:java -Dexec.args="examples/opcua-export-1775161283402.json 4840 /"
 
Dann verbinden mit:
opc.tcp://localhost:4840/
 
Anonyme Anmeldung ist aktiv. Zusätzlich existieren Benutzer:
user / password1
 admin / password2
 
**GUI starten**
mvn javafx:run
 
In der GUI zuerst den JSON-Export laden, danach den Server starten.
**Hinweise zur NodeId-Zuordnung**
Der Export enthält mehrere Custom-Namespace-Indizes (ns=1 bis ns=7). Ein einzelner Milo ManagedNamespace liefert aber nur eine Namespace aus. Deshalb werden Custom-Namespaces intern konsistent auf die Simulator-Namespace gemappt. String-NodeIds wie AirConditioner_1.Temperature bleiben als Identifier erhalten, numerische Custom-IDs werden kollisionsfrei als String-Identifier gespeichert, z. B. ns=3;i=5000.
Im OPC-UA-Client immer die NodeIds verwenden, die der Simulator beim Browsen tatsächlich anzeigt.