IMD SolutionComputing LibraryShop main store

Comparison

What a PROFINET slave to MQTT gateway needs on the edge PC

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

Yes: a compact edge PC can terminate PROFINET as a slave to an S7-1500 and pass the data to Node-RED for MQTT publishing, but the base unit ships without PROFINET. You add it with a CODESYS runtime license, a dedicated PROFINET IRT slave gateway module, or the virtual HMI-data module when configured process data is not required. A 16-signal proof of concept costs about 51 kbit/s of MQTT traffic, so bandwidth is not the constraint; licensing is.

On this page
  1. What the base unit ships with and what it does not
  2. The three ways to give the edge PC a PROFINET slave role
  3. Worked example: MQTT load for a 16-signal S7-1500 proof of concept
  4. Building the path step by step
  5. Verify the path end to end
  6. Which option fits which case
  7. Questions asked

An edge PC can act as a PROFINET slave for an S7-1500 and hand the data to Node-RED for MQTT publishing, but the base unit does not ship with PROFINET. The flyer wording — that fieldbus functionality can be added without expansion modules — tells you an upgrade path exists, not what to order or how the function is licensed. There are three documented ways to get the slave role: a CODESYS runtime license, a dedicated PROFINET IRT slave gateway module, or the virtual HMI-data module when configured process data is not required. This article compares the three, works the MQTT side with real numbers, and gives the decision for each case.

What the base unit ships with and what it does not #

The base edge PC gives you the compute, the operating system, the Ethernet ports and Node-RED. It does not give you a PROFINET device stack. An S7-1500 exchanges cyclic input and output data only with a station it has configured as a PROFINET device in its engineering tool, so something on the edge side must take that role; the consequences of exactly that requirement for a Revolution Pi class host are set out in why a Revolution Pi Connect S needs a PROFINET gateway for an S7-1500. Until one of the three options below is installed and licensed, the controller will not exchange process data with the PC at all, no matter what the MQTT side is configured to do.

The three ways to give the edge PC a PROFINET slave role #

Option What takes the slave role How Node-RED reaches the data What you order or configure
CODESYS runtime license The edge PC itself, as a programmable PROFINET IRT slave device Through the interface the CODESYS runtime exposes, such as its Modbus TCP or OPC UA server A purchased runtime license, verified active on the deployed target
Dedicated PROFINET IRT slave gateway module A separate module; the PC stays a plain data host Through the module's second port, typically Modbus, read by Node-RED's Modbus nodes The module itself, ordered with the slave-side protocol your system needs
Virtual HMI-data module The edge PC, for the vendor's HMI data set only Directly from the device's process image Configuration only, documented by the vendor mainly in German

The CODESYS route is the most flexible: the same runtime that terminates PROFINET can run local logic, a second protocol, or the data shaping the MQTT publisher needs. Community reports of PROFINET master and slave operation on Raspberry Pi class hardware used CODESYS 3.5.17.10; treat that as a reported result for that version, and confirm the license edition and device application support for your model before you build on it. The dedicated gateway module route buys determinism: PROFINET IRT slave gateways are standalone devices — some pair the PROFINET slave port with Modbus RTU, others with EtherNet/IP or a second PROFINET port — and the conversion happens in the module, not in software you maintain. The virtual HMI-data module route costs the least and gives the least: it exposes only the referenced HMI data set, and the vendor documents it mainly in a German-language tutorial, so budget translation effort into the proof of concept.

Worked example: MQTT load for a 16-signal S7-1500 proof of concept #

The inputs below are example values for sizing a proof of concept like the one in question, not documented limits:

  • Process image from the S7-1500: 16 boolean signals, a typical size for a first data-collection proof of concept.
  • Payload format: one JSON message carrying every changed signal, roughly 40 bytes per name-value pair.
  • Publish rate: up to 10 messages per second while the process runs.
  • Uplink: a 100 Mbit/s Ethernet port on the edge PC.

The rule in words: payload bytes, multiplied by messages per second, multiplied by 8 bits per byte, gives the bits per second the publisher puts on the uplink. Worst case, all 16 signals change at once, so one message carries 16 × 40 B = 640 B. At 10 messages per second: 640 B × 10 × 8 = 51,200 bit/s, about 51 kbit/s.

That is roughly 0.05 percent of the uplink. Scale the check linearly: at 100 messages per second the same payload costs about 512 kbit/s, still under one percent of the link. The decision follows: bandwidth is not the constraint for this proof of concept at any realistic publish rate. The constraint is the PROFINET license or module, and that is where the ordering effort belongs.

Building the path step by step #

  1. Decide the role. If the S7-1500 must exchange configured process data with the edge PC, you need the CODESYS license or the dedicated PROFINET IRT slave module. If the proof of concept only needs the referenced HMI data set, the virtual module is enough.
  2. Order the option and confirm the scope in writing: the exact ordering code for the module, or the license edition for the runtime, before anything is installed. The platform-level choice behind this decision is worked through in Selecting a Revolution Pi Connect gateway for S7-1500 and Azure MQTT.
  3. Configure the PROFINET side in the PLC's engineering tool: install the device description file that ships with the purchased option, assign the device name and IP address, and map the process image to the tags the proof of concept needs.
  4. Expose the received values to Node-RED through the interface your option provides, then configure the MQTT client node with the broker address — for example 192.168.1.50 — the port, and a topic structure the downstream consumer agrees on. The Modbus leg of this wiring is covered in MQTT to Modbus TCP with Node-RED on an edge gateway.
  5. Keep the path read-only until step 6 passes.

Verify the path end to end #

Verify hop by hop, in order. Change a designated test value in the S7-1500 program and confirm the new value appears at the PROFINET interface on the edge side. Then confirm Node-RED reads the same value from that interface. Then confirm an MQTT subscriber — not the eventual consumer — receives the published payload with the expected topic and timestamp. The edge gateway commissioning sequence for plant data orders these checks the same way for a first installation. If the value stops at the PROFINET interface, the fault is in the license, module or controller configuration; if it reaches Node-RED but not the subscriber, the fault is in the MQTT leg.

One safety rule belongs here: a PROFINET slave output image can drive machine motion. Keep the proof of concept read-only, and let the PLC program own and validate any output the machine acts on.

Which option fits which case #

  • Choose the CODESYS runtime license when the edge PC must do more than convert protocols: local logic, a second fieldbus, or data shaping next to the MQTT publisher. Budget the license purchase and verify it is active on the deployed target before promising continuous service.
  • Choose the dedicated PROFINET IRT slave gateway module when you want the deterministic IRT exchange handled in hardware and the PC to stay a plain data host, or when you need a protocol pair the PC image does not offer.
  • Use the virtual HMI-data module only for a proof of concept in which configured process data is not required and the referenced HMI data set covers what you will publish; accept that the vendor documentation for it is in German.

When the proof of concept earns permanent hardware, the host running it is a compact controller-class unit — the kind of fanless industrial mini PC built for DIN-rail mounting in the cabinet next to the controller. Pick the PROFINET option first, size the MQTT side second; the numbers above show the wire will not be your problem.

Questions asked

Which CODESYS release has been shown running PROFINET master and slave on Raspberry Pi class hardware?

A documented community setup used CODESYS 3.5.17.10 to run a PROFINET master and slave between two Raspberry Pi boards. Treat that as a reported result for that version, not a guarantee for your unit: confirm that the runtime image and license edition you order support the PROFINET slave device application on your exact model before you build the proof of concept around it.

Does Node-RED talk PROFINET directly?

No. Node-RED ends this path at MQTT. It picks the process values up from whatever interface the PROFINET layer exposes: the Modbus TCP or RTU port of a dedicated gateway module, the OPC UA or Modbus server of a CODESYS runtime, or the process image of the virtual HMI-data module. Configure the MQTT client node with the broker address, port and topic, and test with a subscriber before connecting the real consumer.

Is the PROFINET function included in the base edge PC?

Flyer wording that says the unit can be upgraded with fieldbus functionality without expansion modules confirms that an upgrade path exists, not that the function ships enabled or what to order. The two orderable paths are a CODESYS runtime license and a dedicated PROFINET IRT slave module; the virtual HMI-data module is a configuration option. Confirm the exact ordering code and license scope with the supplier before purchasing.

Can the same gateway write values back to the PLC?

Yes. A PROFINET slave exchanges cyclic input and output data in both directions, so the edge side can write into the output image the controller consumes. For a proof of concept, keep the path read-only until every hop is verified, and let the PLC program own any output the machine acts on; never let an edge application drive machine motion directly from an MQTT payload.

Keep reading

  • How-to

    Bridging OPC UA PLC data to MQTT with an edge PC

    Keep the OPC UA server on the PLC side and give MQTT publishing its own role on a separate edge PC that acts as the OPC UA client and MQTT publisher. Commission the two links independently — first a verified tag read, then a verified subscriber message — and only then widen the tag set.

    Edge computing and IIoT

  • Selection guide

    Selecting a Revolution Pi Connect gateway for S7-1500 and Azure MQTT

    A RevPi Connect covers both jobs: two Ethernet ports separate the PLC network from the Azure uplink, up to five extension modules carry the analog and fieldbus hardware, and Node-RED is preinstalled. Size the analog side by counting 4-20 mA loops against the AIO's current-capable channels, and take Modbus TCP for the read-only feed so the S7-1500 keeps PUT/GET closed.

    Edge computing and IIoT

  • How-to

    MQTT to Modbus TCP with Node-RED on an edge gateway

    Yes: Node-RED with the node-red-contrib-modbus package can serve MQTT data to a SCADA client as Modbus TCP. Read the RTU device in Node-RED first, give the Modbus server node a port nothing else owns, and scale each MQTT payload to one integer per holding register before the first end-to-end test.

    Edge computing and IIoT

Publish raw JSON from Ignition Document tags via MQTT Transmission