IMD SolutionComputing LibraryShop main store

Explainer

Is Node-RED a SCADA replacement for reading S7-1200 sensors?

Edge computing and IIoT Published 8 min read

Short answer

Yes for this job: Node-RED is an independent open-source runtime, not a layer over WinCC, so logging four S7-1200 analog values needs no WinCC license. The path still has licenses of its own: the CPU's OPC UA server needs firmware V4.4 or later plus a Siemens runtime license, while S7 or Modbus TCP nodes avoid it. What you give up is alarms, history and mimics.

On this page
  1. What Node-RED is, and what it is not
  2. The license answer
  3. Three ways into an S7-1200
  4. What you give up by skipping SCADA
  5. Storage and the outage case
  6. Worked example: four channels at 1 s polling
  7. Scaling and commissioning, once per channel
  8. The security cost of the free path
  9. The decision, case by case
  10. Questions asked

Yes for this application. Node-RED is an independent open-source flow runtime, not an abstraction over WinCC: a flow that reads four analog values from an S7-1200 and stores them never touches WinCC, so it needs no WinCC runtime license. The licenses to check sit elsewhere — Node-RED itself carries no runtime license, and the only Siemens license in play appears if you use the CPU's built-in OPC UA server, which also needs CPU firmware V4.4 or later. What you give up is the rest of SCADA: alarms, governed history and operator graphics. This article gives the license answer line by line, the three connection paths into an S7-1200, the storage arithmetic for four channels, and the decision for each scope.

What Node-RED is, and what it is not #

Node-RED executes flows: graphs of connected nodes in which each node receives messages, transforms them and forwards them. A communication node — S7, Modbus TCP or OPC UA — exchanges values with the PLC, and downstream nodes validate, timestamp and write those values to a file or database. It contains no WinCC code and never starts a WinCC runtime, so the path PLC to Node-RED to database runs entirely outside any SCADA product, and no SCADA runtime license is consumed by it.

Two consequences follow. Installing a Node-RED node enables nothing in the PLC: the CPU must already expose its values through a protocol the node speaks, which is why the comparison below is about PLC capability, not Node-RED capability. And open source settles only the runtime's own licensing — the PLC firmware features you switch on, the database you write to and the engineering tool each keep their own terms.

The license answer #

Three license questions separate cleanly, and only one of them can cost you anything on this job.

WinCC: a WinCC runtime license is consumed when a WinCC runtime actually runs. Your logger never runs one, so for reading four sensors and storing them the WinCC license count is zero — this path works identically on a machine where WinCC was never installed.

Node-RED: the runtime is open source and needs no license to deploy on your own hardware.

The PLC: this is the one that surprises people. The S7-1200 has a built-in OPC UA server as of CPU firmware V4.4, and Siemens documents that running that server on the CPU requires a runtime license. Connect over OPC UA and that Siemens license applies, even though the Node-RED client side carries no license of its own. Connect over S7 communication or Modbus TCP and the OPC UA server never starts, so that license is not part of the path; Siemens documents no runtime license for either of those connections on this CPU.

Decision for the four-sensor logger: the total additional license count can be zero — Node-RED plus an S7 or Modbus TCP connection needs no WinCC license and no PLC-side license. Choose OPC UA deliberately, for its browsing and typed data, and budget the CPU's OPC UA runtime license when you do.

Three ways into an S7-1200 #

Connection What the PLC side needs License effect for this job
S7 communication node (node-red-contrib-s7-plus, node-red-contrib-s7) A data block holding the four values, plus the CPU protection option that permits access from partners the project does not configure The CPU's OPC UA server stays off; no WinCC anywhere; nothing extra to license
OPC UA client node CPU firmware V4.4 or later, with the built-in OPC UA server enabled Siemens documents a runtime license for the CPU's OPC UA server
Modbus TCP node A Modbus server in the CPU program, with registers mapped to the four values The OPC UA server and its license stay out of the path; you own the register map

The plus package reads, writes and subscribes to S7-1200 tags by symbol name, and its documentation states that optimized data blocks need no layout changes because addresses and data types are resolved for you. The older package addresses a standard, non-optimized data block by byte offset, and its forum threads show plain reads of data-block arrays working; the usual mistakes there are offset and data-type mismatches. The data block, its layout and that protection option are all configured in the PLC engineering tool — if the STEP 7 and TIA Portal naming is new to you, this explainer of what STEP 7 is in a PLC project and which one you need sorts out the naming.

Over OPC UA, the Node-RED client node itself raises no license question: it browses the CPU's server and subscribes to the four variables. The deployment trip point is usually certificate and file permissions on the Node-RED host, which why a Node-RED deploy fails on OPC UA certificate file permissions covers.

Over Modbus TCP, documented working setups read an S7-1200 from Node-RED with no license beyond the CPU; you define every register, and each value the flow reads needs a configured register in the PLC program.

What you give up by skipping SCADA #

For unattended logging, very little. Be clear about the list anyway:

  • Alarms: no built-in alarm manager — no alarm classes, no acknowledgment chains, no shelving. Function nodes can watch thresholds and push a message, which is fine for a handful of limits and becomes a home-built alarm system if it grows.
  • History: no historian engine — no compression, downsampling or retention rules. You get whatever the database you choose provides; what a historian does in an OPC and PLC system explains that gap.
  • Graphics: no mimic library — no tanks, pipes or scales; dashboard add-ons are generic widgets you assemble yourself.
  • SCADA-grade user management, redundancy and audit trails: absent, or a build-it-yourself job.

The decision line is simple. If no operator has to acknowledge anything and the record only has to exist, Node-RED covers the job. If any bullet above matters — usually alarms — that scope is a SCADA job, and whether SCADA needs a historian between it and an OPC UA server is where that architecture starts.

Storage and the outage case #

Standard node families write to files and CSV, InfluxDB, SQL databases and MQTT; pick by how the data is read back. CSV is the simplest handoff to a spreadsheet, while a time-series database gives you queries and retention without manual file rotation.

Design for the outage, not just the steady state: when the database is unreachable, the flow must buffer and replay instead of dropping values, and resume cleanly when the connection returns. Fixing Node-RED InfluxDB write errors after a network outage walks exactly that failure on the InfluxDB path.

Worked example: four channels at 1 s polling #

Assume a data block holding four REAL values, polled once per second, one combined record per cycle.

Wire traffic: 4 values × 4 bytes per REAL = 16 bytes per poll, negligible on any plant network.

Record count: a day holds 86,400 seconds, so a 1 s interval produces 86,400 records a day, each carrying all four values and a timestamp.

CSV size: a line such as 2025-03-04T06:00:01Z,21.7,48.2,3.41,0.98 is about 50 bytes, so 86,400 × 50 bytes = 4,320,000 bytes ≈ 4.3 MB a day, and 4.3 MB × 30 ≈ 130 MB over 30 days. Before any compression, a year of raw CSV is 4.3 MB × 365 ≈ 1.6 GB.

The formula generalizes: records a day = 86,400 ÷ interval in seconds, and volume = records a day × bytes per record × retention days. Halve the interval and both count and volume double; log each value as its own record instead of one combined record and the count quadruples to 345,600 records a day. Four channels at 1 s is a small load — a modest SSD holds several years of this — so size from your own interval and retention, not from the channel count.

Scaling and commissioning, once per channel #

  • Scale in exactly one place. Let the PLC convert raw analog counts to engineering units and store the converted value with its unit; if Node-RED also scales, the stored number is wrong while the link itself looks healthy.
  • One source per channel. Each recorded value maps to a single PLC variable or register; two paths to the same sensor invite silent drift.
  • Validate each analog input against a known signal before trusting the log.
  • Stamp at the read cycle. If communication drops, stop writing rather than re-stamping the last value as fresh.
  • Commission one channel end to end — PLC to flow to stored record — then replicate to four.

The security cost of the free path #

The one real cost sits in the CPU protection settings: the option that permits access from partners the project does not configure is what the S7 nodes rely on, and enabling it widens who can read the CPU. Contain the exposure deliberately: a dedicated data block that holds only the logging values, a read-only connection where the node offers one, and a segmented OT network with no route from the office LAN to the logger. That is the whole safety note — four logged temperatures are not worth an open door into the control network.

The decision, case by case #

  • Logging four analog values with no operator interaction: build the Node-RED flow over S7 communication or Modbus TCP. The license count is zero beyond the CPU you already own. Go.
  • OPC UA specifically, for browsing, typed data or existing UA infrastructure: confirm CPU firmware V4.4 or later and budget the Siemens runtime license documented for the CPU's OPC UA server.
  • Alarms operators must acknowledge, mimic screens, or governed long-term history: that scope is SCADA. Keep Node-RED as the collector feeding it if you want one.
  • A SCADA or OPC server already on site: read from it rather than opening a second connection to the PLC — the comparison of reading sensor data from a SCADA server over OPC, Modbus or capture lays out those paths.
  • Hosting: the logger is small enough that it usually runs on an industrial mini PC in the control panel rather than on a SCADA server machine.

Questions asked

Can Node-RED write values back to the S7-1200 too?

Yes. The S7 packages document writes as well as reads, and the plus package writes tags by symbol name. For a logger, keep the link read-only where the node offers it and expose a dedicated data block rather than the control logic, so a flow mistake cannot move an output. Remember that the CPU protection option you enable for the connection then covers writes as well as reads.

How much storage does the same logger need at a 10 second interval?

Divide the 1 s example by ten. A day holds 8,640 records and 30 days about 259,200; at roughly 50 bytes a line the CSV grows by about 432 kB a day, or 13 MB over 30 days. Compute from your own interval before choosing storage: records a day always equals 86,400 divided by the interval in seconds.

Does the CPU's OPC UA runtime license apply if I use Modbus TCP instead?

No. Siemens ties that runtime license to running the OPC UA server on the S7-1200 CPU. A Modbus TCP connection never starts that server, so the license is not part of the path. The trade-off moves elsewhere: you define the register mapping and the data representation yourself, and every value the flow reads needs a configured register in the PLC program.

Can alarm handling be added to Node-RED later without buying SCADA?

You can watch thresholds in function nodes and push notifications by email or a chat service, and for a handful of limits that is a reasonable design. What you are rebuilding is what a SCADA alarm system ships as standard: alarm classes, acknowledgment states, shelving, history cross-reference and audit trails. Once several operators depend on it, that flow-based alarm system becomes a project of its own, and a SCADA host is the cheaper answer.

What hardware runs the logger?

The runtime itself is light: it runs in the control panel on a small fanless industrial PC with a local database, needs no monitor or keyboard after commissioning, and talks to the PLC over ordinary Ethernet. Size the machine mainly for the storage side and for how long you want an outage buffer to survive. The body's worked example shows the data volume is small.

Keep reading

  • Selection guide

    OPC UA and MQTT dashboard comparison for plant data

    Choose Node-RED when the dashboard only displays MQTT or OPC UA values; both protocols have maintained connector packages for it. Choose a tag-based SCADA platform when operators must write values, acknowledge alarms or open trends under accounts, and Grafana on InfluxDB when stored trends are the whole job. The decision hinges on interaction, not rendering.

    Edge computing and IIoT

  • Troubleshooting

    Node-RED on a Windows XP machine: isolate and transfer instead

    Do not install Node-RED on the Windows XP machine PC: Node.js dropped XP support in the 6.0 line, the last XP-capable line, 4.x, closed LTS in April 2018, and every documented Node-RED minimum from 2.x upward needs Node.js 12 or newer. Keep XP on an isolated segment with no internet route and move the data through a maintained dual-NIC edge device or read the PLC directly.

    Edge computing and IIoT

  • Troubleshooting

    Why a Grafana MSSQL dashboard shows no data from Node-RED

    If the Node-RED flow still inserts, a blank Grafana MSSQL panel is a read-path fault, not a collection fault. Read the newest row in MSSQL first: current rows there move the fault to the Grafana data source, its read-only login, the query fields or the timestamp convention. Fix the layer whose boundary check fails first.

    Edge computing and IIoT

Transferring old WinCC tag logging data to Process Historian