Uploaded November 2026 | Updated November 2026, 2 days ago
Stop wiring every sensor back to the control cabinet. In this video, I set up the Advantech ADAM-250PN remote I/O module on a Siemens S7-1500 over PROFINET, read the same module in parallel over Modbus TCP with an edge device, and pushed the data to the cloud with Node-RED and HiveMQ (MQTT) – all without stopping the PLC.
You'll learn:
✅ Why classic modular PLC I/O holds modern factories back
✅ How remote I/O on the machine cuts wiring to ONE network cable
✅ 16 channels, each configurable as digital input OR output
✅ M12 wiring for inputs and outputs (Us / Ua power groups)
✅ Built-in diagnostics: wire break, short circuit, over/under-voltage
✅ GSDML install, PROFINET setup and I/O addressing in TIA Portal
✅ Reading the I/Os over Modbus TCP into a Node-RED dashboard
✅ Sending the data to HiveMQ Cloud via MQTT
👉 Get the ADAM-250PN from IoT Mart: iotmart.com/en-eu/en/product-details?productSku=01tfS000000Lf1oQAC&utm_source=linkedin&utm_medium=paid_social&utm_campaign=2026_adam-250Pn&utm_content=rajvir_singh
This video is sponsored by Advantech and IoTMart. All opinions are my own.
⏱️ CHAPTERS
00:00 Why is all this wiring in the cabinet?
00:44 Meet the ADAM-250PN
01:30 The 4 limitations of modular PLC I/O
02:43 The new approach: I/O on the machine
03:36 Module tour: 16 channels, DI or DO
04:52 My live setup & architecture
06:46 Hardware on camera
07:31 Wiring the inputs
08:40 Wiring the outputs
09:37 Diagnostics & Advantech I/O Module Utility
11:38 LIVE: PROFINET setup in TIA Portal
15:55 I/O addressing explained
18:45 PLC program & live test
20:50 LIVE: Modbus TCP + Node-RED dashboard
23:27 LIVE: Sending data to the cloud via MQTT (HiveMQ)
25:48 Where to use it: real applications
26:32 Recap
🛠️ SETUP USED
- Advantech ADAM-250PN remote I/O (PROFINET + Modbus TCP)
- Siemens S7-1500 (CPU 1516)
- reComputer edge device running Node-RED
- HiveMQ Cloud MQTT broker
- Banner photoelectric sensors, switches, tower light
📚 RESOURCES
- GSDML file & firmware: advantech.com/en-eu/search/?q=ADAM-250PN&st=all
- Advantech I/O Module Utility: advantech.com/en-eu/products/754bb611-d105-43e4-af3e-5a16904f8ae5/adam-250pn/mod_0b2da5de-c38a-46cf-b3ab-f52426a758f1
💬 Where would you mount one of these in your plant? Tell me in the comments!
🔔 Subscribe to Code and Compile for more PLC, IIoT, and industrial automation tutorials.
🌐 codeandcompile.com
#PLC #PROFINET #IIoT #IndustrialAutomation #Siemens #ModbusTCP #NodeRED #MQTT
For daily/weekly updates, follow us:
🧑💻 E-learning platform: learn.codeandcompile.com
💻 Website: codeandcompile.com
📕 Wiki: wiki.codeandcompile.com
📸 Instagram: instagram.com/rajvir.codencompile
Stop wiring every sensor back to the control cabinet. In this video, I set up the Advantech ADAM-250PN remote I/O module on a Siemens S7-1500 over PROFINET, read the same module in parallel over Modbus TCP with an edge device, and pushed the data to the cloud with Node-RED and HiveMQ (MQTT) – all without stopping the PLC.
You'll learn:
✅ Why classic modular PLC I/O holds modern factories back
✅ How remote I/O on the machine cuts wiring to ONE network cable
✅ 16 channels, each configurable as digital input OR output
✅ M12 wiring for inputs and outputs (Us / Ua power groups)
✅ Built-in diagnostics: wire break, short circuit, over/under-voltage
✅ GSDML install, PROFINET setup and I/O addressing in TIA Portal
✅ Reading the I/Os over Modbus TCP into a Node-RED dashboard
✅ Sending the data to HiveMQ Cloud via MQTT
👉 Get the ADAM-250PN from IoT Mart: iotmart.com/en-eu/en/product-details?productSku=01tfS000000Lf1oQAC&utm_source=linkedin&utm_medium=paid_social&utm_campaign=2026_adam-250Pn&utm_content=rajvir_singh
This video is sponsored by Advantech and IoTMart. All opinions are my own.
⏱️ CHAPTERS
00:00 Why is all this wiring in the cabinet?
00:44 Meet the ADAM-250PN
01:30 The 4 limitations of modular PLC I/O
02:43 The new approach: I/O on the machine
03:36 Module tour: 16 channels, DI or DO
04:52 My live setup & architecture
06:46 Hardware on camera
07:31 Wiring the inputs
08:40 Wiring the outputs
09:37 Diagnostics & Advantech I/O Module Utility
11:38 LIVE: PROFINET setup in TIA Portal
15:55 I/O addressing explained
18:45 PLC program & live test
20:50 LIVE: Modbus TCP + Node-RED dashboard
23:27 LIVE: Sending data to the cloud via MQTT (HiveMQ)
25:48 Where to use it: real applications
26:32 Recap
🛠️ SETUP USED
- Advantech ADAM-250PN remote I/O (PROFINET + Modbus TCP)
- Siemens S7-1500 (CPU 1516)
- reComputer edge device running Node-RED
- HiveMQ Cloud MQTT broker
- Banner photoelectric sensors, switches, tower light
📚 RESOURCES
- GSDML file & firmware: advantech.com/en-eu/search/?q=ADAM-250PN&st=all
- Advantech I/O Module Utility: advantech.com/en-eu/products/754bb611-d105-43e4-af3e-5a16904f8ae5/adam-250pn/mod_0b2da5de-c38a-46cf-b3ab-f52426a758f1
💬 Where would you mount one of these in your plant? Tell me in the comments!
🔔 Subscribe to Code and Compile for more PLC, IIoT, and industrial automation tutorials.
🌐 codeandcompile.com
#PLC #PROFINET #IIoT #IndustrialAutomation #Siemens #ModbusTCP #NodeRED #MQTT
For daily/weekly updates, follow us:
🧑💻 E-learning platform: learn.codeandcompile.com
💻 Website: codeandcompile.com
📕 Wiki: wiki.codeandcompile.com
📸 Instagram: instagram.com/rajvir.codencompile










