Back to Browse

Productivity PLC Node-RED MQTT

2.3K views
Jun 6, 2022
22:10

We will be using an MQTT broker in Node-RED to communicate to the productivity PLC clients. MQTT stands for Message Queuing Telemetry Transport. This simple ‘publish and subscribe’ communication protocol does not take too many resources. Constrained devices with low bandwidth are ideal for MQTT. This protocol provides machine-to-machine (M2M) connectivity, perfect for the Internet of Things. (IoT) This protocol is not for remote IO or real-time (deterministic) applications. MQTT is a good solution for applications that move data from hundreds or thousands of machines (sensors) to clients in many networks. We will be installing and programming the AEDES MQTT Broker in Node-RED. A productivity P2000, P1000, and Node-RED will be the clients communicating to the broker. The PLC simulator inputs on each controller will control the outputs on the other controller. This will demonstrate the communication capability for publishing and subscribing to this IoT platform. Let’s get started. More information can be obtained at our website. This includes all of the links mentioned in this video. https://accautomation.ca/productivity-plc-node-red-mqtt-p1000-p2000/ In this series we started using Node-RED in some of the following ways: The entire series can be viewed here: https://accautomation.ca/series/node-red-iot-enabling-software/ Installing the Windows Software https://accautomation.ca/node-red-installing-the-windows-software/ https://youtu.be/xGzH2Hv31WA Modbus RTU / TCP Communication https://accautomation.ca/node-red-modbus-rtu-tcp-communication/ https://youtu.be/yX1w5vcV6cc User Interface - Dashboards https://accautomation.ca/node-red-user-interface-dashboards/ https://youtu.be/8zAG2wXwGOc SQL Database Log https://accautomation.ca/node-red-sql-database-log-modbus-logging/ https://youtu.be/QHjcNj1S_Mo SQL Database Spreadsheet Connection https://accautomation.ca/node-red-sql-database-spreadsheet-connection/ https://youtu.be/Cd3LvhoMaCI Install Node-RED on Raspberry Pi 4 https://accautomation.ca/install-node-red-on-raspberry-pi-4/ https://youtu.be/KleNtxvJkU4 Do-More PLC Node-RED HTTP Request https://accautomation.ca/do-more-plc-node-red-http-request/ https://youtu.be/m-p28H9Fl5s Simple Click Data Logging https://accautomation.ca/simple-click-data-logging-node-red/ https://youtu.be/RmSn4ZSPSmg Node-RED Modbus TCP Handling Errors https://accautomation.ca/node-red-modbus-tcp-handling-errors/ https://youtu.be/CgsJozTr-8w Raspberry Pi Serial Port Programming https://accautomation.ca/raspberry-pi-serial-port-programming/ https://youtu.be/SAY8H3SBl-8 Omron PLC Node-RED Serial Communication https://accautomation.ca/omron-plc-node-red-serial-communication/ https://youtu.be/S-IrwNJuMWo We will continue with the following: Productivity PLC Node-RED MQTT 00:00 Productivity PLC Node-RED MQTT 01:53 What is MQTT? 03:01 MQTT System Configuration 03:47 MQTT Unified Namespace 04:49 Installing MQTT Broker on Node-RED 08:18 Node-RED MQTT Subscribe 10:12 Productivity 2000 MQTT Client - Publish-Subscribe 14:51 Productivity 1000 MQTT Client - Publish-Subscribe 17:47 View Hardware and Test MQTT Communication There are several reasons why we are using Node-RED. Here are just a few. - Built on top of the most dependable programming language JavaScript. - JavaScript is flexible and easy to work with on web browsers, server-side, IoT, IIoT projects, and more. - Visual flow type interface making programming easy. - Node will allow JavaScript code to run directly on a computer. - Node-RED is a free, open-source logic engine. - Connect to PLC, PAC, Temperature Controllers, Process Controllers using standard protocols. - Save and read from databases - Easily make the Internet of Things (IoT, IIoT) industrial solutions. Node-RED provides the ability for you to quickly create custom control solutions. ACC Automation https://accautomation.ca/

Download

1 formats

Video Formats

360pmp432.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Productivity PLC Node-RED MQTT | NatokHD