Explainer
Why a RevPi Connect S needs a PROFINET gateway for an S7-1500
Short answer
In PROFINET the I/O controller defines the data layout, and it reads that layout from the device's GSDML file. A RevPi Connect S does not present a GSDML on its own, so it needs a RevPi Gate PROFINET IRT device module (or a CODESYS soft PLC acting as the PROFINET device) before the S7-1500 can exchange I/O with it.
On this page
Setting 250 inputs and 250 outputs on the RevPi side will never appear as 250/250 in TIA Portal, because in PROFINET the I/O controller — here the S7-1500 — owns the data layout and reads it from the device's GSDML description file. A RevPi Connect S has no PROFINET device function of its own, so it needs a RevPi Gate PROFINET IRT device module (or a CODESYS soft PLC taking that role) whose GSDML you import into TIA Portal; after that, the byte counts are whatever the modules you select in the hardware catalog define. The fix is a hardware module plus a description-file import, not a setting change.
Who defines the I/O layout in PROFINET #
PROFINET cyclic I/O follows a strict division of labor. The IO controller (the S7-1500) establishes the connection and fixes the size and order of the exchanged data. The IO device advertises what it can offer through its GSDML file — a structured description of slots, subslots and I/O modules. The controller project is built from that description: you import the GSDML, the device appears in the hardware catalog, and the modules you drag into its slots determine the input and output byte counts in the controller's process image.
That is why a count configured on the device side cannot push itself into the controller. The GSDML defines the data types and the memory layout of each module; the PLC project then selects from that menu. Nothing travels the other way. The same rule governs every PROFINET device — a drive, a remote I/O block, a camera — and it is why the S7-1500's project, not the device's configuration screen, is where the layout gets its final shape.
What the Connect S can and cannot do #
The Connect S is a control-side computer: it runs PiCtory to describe its own I/O modules and it can host applications such as Node-RED. It does not implement a PROFINET IO device stack that an S7-1500 could connect to. Two documented paths close that gap:
- Gateway module. The RevPi Gate PROFINET IRT device module is compatible with the Connect S. It attaches to the RevPi and presents itself to the S7-1500 as a PROFINET device with a GSDML you import into TIA Portal. The S7-1500 sees only the gateway; the RevPi exchanges process data with it over the RevPi's module interface.
- CODESYS soft PLC. A CODESYS runtime on the Connect S can be configured as a PROFINET device; the S7-1500 imports the CODESYS-generated GSDML instead. When CODESYS runs, it takes over the process data configuration that PiCtory normally holds, and the process data becomes reachable from userspace — including from Node-RED.
Pick exactly one path. Configuring the same I/O in both PiCtory and CODESYS leaves two masters over one process image, and the CODESYS configuration wins.
Worked example: mapping one S7-1500 output to one RevPi input #
Suppose the S7-1500 must hand eight boolean commands to the RevPi side. In TIA Portal, after importing the gateway's GSDML, place a device and select an input module for the device that the GSDML offers — for example one carrying 16 input bytes — even though you need only 8. The module granularity comes from the GSDML, not from your requirement, so the S7-1500's process image reserves the full 16 bytes and you use bytes 0 through 7.
The mapping itself is then ordinary PLC addressing, with real offsets:
- S7-1500 writes QW0 (output word 0, 2 bytes) into the device's output area slot 0.
- Those 2 bytes arrive in the gateway's cyclic output frame and land in the RevPi process image at the offset the gateway documentation assigns to that module slot.
- The RevPi application reads those bytes at that offset; a Node-RED flow reading the same process image bytes sees the identical values.
Check it end to end: in a TIA Portal watch table, force the first output byte to the value 16#A5 and confirm it reads back online; read the matching offset on the RevPi and confirm 165 decimal (16#A5); write 16#3C from the RevPi side to the return bytes and confirm the S7-1500's input byte shows 60 decimal. Test every mapped byte, not just the first, because slot and offset errors show up byte by byte.
Two networks, two subnets #
Keep the two links apart. The PROFINET link (S7-1500 to gateway) must be in the controller's subnet, and the device name and IP on that side are assigned from TIA Portal — assign the device name so the project matches the name stored in the device. The host-side link between the RevPi and the gateway follows the gateway's own documentation; whether it needs a patch cable and which addresses it uses come from that document, not from the PROFINET rules. Mixing the two links onto one switch port is the fastest way to get a device that pings but never exchanges I/O — the same failure pattern as when ping succeeds but the PROFINET device is not found.
| Link | Purpose | Addressing rule |
|---|---|---|
| S7-1500 to gateway | PROFINET cyclic I/O | Same subnet as the controller; name and IP assigned in TIA Portal |
| RevPi to gateway | Host-side process data exchange | Per the gateway's own documentation |
Setup steps on the TIA Portal side #
- Import the gateway's GSDML file into the device library (under the options that manage general station description files).
- In the network view, drag the device from the catalog under other field devices and connect it to the S7-1500's PROFINET interface.
- Select the I/O modules whose byte counts match your needs; the module list is exactly what the GSDML declares.
- Assign the PROFINET device name so the stored name matches the project, then download the hardware configuration.
- Go online and confirm the device shows no diagnostic fault and the name matches.
If the device never appears in the catalog after step 1, the GSDML was not imported — no amount of RevPi-side configuration substitutes for it.
CODESYS or gateway: which to choose #
Choose the gateway module when the S7-1500 is the only controller and the RevPi side only consumes or produces process data — your case, since Node-RED reads process data directly. Choose the CODESYS soft PLC when you want logic running on the RevPi itself, or when you want to define the device's GSDML yourself rather than take the gateway's fixed module list. Gateway routes to PLCs on other platforms work on the same principle; the split between controller-owned layout and device-owned description is identical, for example, when connecting PROFINET IO to a CompactLogix through a gateway. For a deeper treatment of how these gateway modules carry cyclic data, the page on how RevPi gateways exchange data over PROFINET IRT covers the frame timing and mapping in detail.
The decision #
- If you want TIA Portal-only engineering with no logic on the RevPi: use the RevPi Gate PROFINET IRT device module, import its GSDML, size the I/O from the catalog modules, and let Node-RED read the process image. This is the path for the S7-1500-to-Node-RED SCADA case.
- If you want PLC logic on the Connect S: skip the gateway module, run CODESYS as the PROFINET device, and accept that CODESYS replaces PiCtory's process data configuration.
- Never expect a RevPi-side byte count to appear in TIA Portal: the controller's project, built from the GSDML, is the only place that layout exists.
One safety note: keep any machine safety function on the S7-1500's safety program and certified I/O, never on the gateway path or the RevPi process image, which carry no safety rating.
Questions asked
Does the 250 input and 250 output setting on the RevPi show up in TIA Portal?
No. TIA Portal builds the device's I/O area from the modules you select in the hardware catalog after importing the gateway's GSDML file, not from any count configured on the RevPi side. If you import a GSDML module that describes 16 input bytes and one that describes 16 output bytes, the S7-1500 process image gets exactly 16 and 16, whatever the RevPi-side configuration says.
Can the RevPi Connect S work with an S7-1500 without a gateway module?
Yes, on one alternative path: run a CODESYS soft PLC on the Connect S and configure the PROFINET device function there. CODESYS then serves the GSDML description the S7-1500 imports, and it takes over the process data configuration that PiCtory normally holds. Without either the gateway module or the soft PLC, the Connect S has no PROFINET device function to offer.
Do I need CODESYS on the RevPi to use Node-RED with the gateway?
No. With the gateway module route, the RevPi application reads and writes the process image directly, and Node-RED can access the same process image values from userspace. CODESYS is only needed when you want PLC logic running on the RevPi itself. Test the whole chain by writing a known byte from the S7-1500 and reading it in Node-RED's debug output before trusting the link.
Why is my PROFINET device not found in TIA Portal after wiring?
The two usual causes are a GSDML file that was never imported into the device library, and a device name that was never assigned to the hardware. Import the file, place the device in the network view, then assign the PROFINET device name so the name stored in the device matches the project. The device must also sit in the controller's subnet.