Uploaded June 2024 | Updated November 2026, 2 days ago
Learn the basics of PLC programming with this quick guide to Contact instructions in Ladder Diagram language.
Learn the basics of PLC programming with this quick guide to Contact instructions in Ladder Diagram language.









![IO-Link to Cloud with ifm and MQTT
Send sensor data straight to the cloud with an ifm DataLine IO-Link master and MQTT, without touching the PLC program. A full step by step demo.
▶ Need IO-Link sensors and plant data connected to your systems? We can help: https://www.realpars.com/solutions/instrumentation?utm_source=youtube&utm_medium=video&utm_campaign=instrumentation&utm_content=io-link-to-cloud
▶ For companies, train your whole team with RealPars Business: https://www.realpars.com/business?utm_source=youtube&utm_medium=video&utm_campaign=business&utm_content=io-link-to-cloud
▶ For individuals, learn industrial automation at your own pace: https://www.realpars.com/?utm_source=youtube&utm_medium=video&utm_campaign=individual&utm_content=io-link-to-cloud
Chapters:
0:00 Intro
0:27 Why send data from sensor to cloud
1:50 The Y path of IO-Link data
2:55 MQTT, JSON and HTTPS
3:19 The demo hardware
3:54 Connecting the IO-Link master
4:17 Finding the master in moneo configure
4:29 The IoT-Core Visualizer page
5:05 Setting up the data subscription
6:18 MQTT broker settings
7:04 Running the Mosquitto broker
8:12 Viewing the data in MQTTX
9:10 Summary
ifm DataLine IO-Link masters can send sensor data to the cloud without changing the control system. Companies can change what data they collect without stopping the process, and the PLC cycle time is not affected, because the PLC does not collect or forward the data. This is the Y path. According to ifm, only about 5 percent of a sensors data is process data for the PLC. The other 95 percent, like diagnostics and alarms, can go straight to higher level software over MQTT, JSON or HTTPS for condition, energy and quality monitoring.
The demo sends data from an O5D150 distance sensor through an AL1326 IO-Link master using MQTT, a lightweight publish and subscribe protocol. Connect the PC to the masters IoT port, not the EtherNet/IP ports. Find the master in moneo configure, then open its IoT-Core Visualizer at the IP address followed by /web/subscribe. Set Timer[1] to 5000 so it changes every 5 seconds, and add a subscription that sends the pdin process data each time the timer changes. Enter a consumer ID, the PCs IP address, port 1883 and a topic.
On the PC, run the Mosquitto broker with a listener and anonymous access allowed. Open the firewall for port 1883 if needed. Then subscribe to the topic in an MQTT client like MQTTX and watch the values change as the sensor moves. For a real setup, you can swap the local broker for a cloud broker like HiveMQ.
▶ IO-Link Essentials course: https://www.realpars.com/courses/io-link-essentials-industry-4-0
▶ Previous IO-Link video: https://youtu.be/jv-Xiv3GcLc
▶ Read the full article: https://www.realpars.com/blog/io-link-to-cloud
Watch next:
Sensor to Cloud with Emerson Smart Devices: https://www.youtube.com/watch?v=JlsbTJC3Lr0
Smart Sensors & Actuators: Basics and Benefits in IIoT: https://www.youtube.com/watch?v=i0_gJFYyb2g
Smart Sensor Explained, What Makes a Sensor Smart: https://www.youtube.com/watch?v=5b5xJu8KYrc
Profibus PA vs Profibus DP Explained: https://www.youtube.com/watch?v=OZPLOMj_M6U
Subscribe for new videos: https://www.youtube.com/@realpars?sub_confirmation=1
Follow us on LinkedIn: https://www.linkedin.com/company/realpars
Follow us on Instagram: https://www.instagram.com/realparsdotcom/
Like us on Facebook: https://www.facebook.com/therealpars/
Follow us on X: https://x.com/realpars
#IOLink #IIoT #RealPars IO-Link to Cloud with ifm and MQTT](https://i.ytimg.com/vi/VbC3P8NX91o/mqdefault.jpg)
