How to connect to Siemens S7 PLC

Poll Siemens S7 PLC tags and publish them to MQTT topics, with an optional value simulator.

What this template does

Enables MQTT integration for Siemens S7 PLCs using the native S7 protocol. By periodically polling selected DB, marker, or I/O addresses, it extracts equipment data and publishes each value to a dedicated MQTT topic. It operates flexibly, handling multiple data types (like REAL, INT, and BOOL), and includes a built-in simulation mode for hardware-free testing.

When to use it

Ideal for setups requiring direct, automated data extraction from Siemens PLCs to feed dashboards, logic rules, or downstream actions within an MQTT-based ecosystem.

The notebook

What’s inside

Browse the markdown and code cells before you download.

LoT Notebook:siemens-s7-connector.lotnb
Related use cases

Similar templates

Templates chosen for overlap in routes, tags, and category.

View all in Manufacturing

Get this template

1 file · 1 downloads