Publishing the line to an MQTT broker
The program in the simulator's PLC panel keeps running here, and the simulator publishes its variables to an MQTT broker, one topic each. A dashboard, a historian or any MQTT client subscribes to watch the line, and publishes to press its buttons.
In this guide a client publishes one message, a belt carries a box to a sensor, and the program stops it. No PLC is needed, and it takes about ten minutes.
You need
- The desktop app, for Windows or Linux. A browser tab works too, with one change to the broker: see From a browser tab.
- An MQTT broker. This guide uses Mosquitto, which is free, and its two command-line clients as the other side. Any broker and any client will do.