With just some lines of configuration you can bring PLC values to OPC UA, MQTT and GraphQL. And to a variety of databases for tag logging…
💡 In that example with ModBus, but thanks to #plc4x this should work in the same way also for the other protocols supported by PLC4X.
📺 See the video, ModBus values are brought to OPC UA and MQTT.
💣 In MQTT the topic name is enriched with a UNS ISA95 topic path.
⚡ On MQTT SparkplugB encoded messages could be used.
😎 100% GUI free and Open Source.
Servers:
GraphQL:
- Port: 4000
LogLevel: INFO
GraphiQL: true
OpcUa:
- Port: 4841
Enabled: true
LogLevel: INFO
Topics:
- Topic: plc/demo/node/holding-register:1:INT
- Topic: plc/demo/node/holding-register:2:INT
- Topic: plc/demo/node/holding-register:3:INT
Drivers:
Plc4x:
- Id: "demo"
Enabled: true
Url: "modbus://localhost:502"
Polling:
Time: 100
OldNew: true
WriteTimeout: 100
ReadTimeout: 100
LogLevel: INFO
Loggers:
Mqtt:
- Id: mqtt1
Enabled: true
Host: 192.168.1.4
Port: 1883
Topic: modbus
Format: Raw
Logging:
- Topic: plc/demo/node/holding-register:1:INT
Target: enterprise/area1/line1/cell1/speed
- Topic: plc/demo/node/holding-register:2:INT
Target: enterprise/area1/line1/cell1/power
- Topic: plc/demo/node/holding-register:3:INT
Target: enterprise/area1/line1/cell1/torque