Category Archives: Raspberry Pi

Productivity PLC Node-RED MQTT – P1000 / P2000


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.
Productivity PLC Node-RED MQTT - P1000 / P2000
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. Continue Reading!

ACC Automation 2021 Review – Industrial Control


Accelerate Learning …
Accelerate Machines…
Accelerate Knowledge…
ACC Automation

In this Covid-19 world, we are continuing to adapt. Social distancing, mask-wearing, hygiene, etc are the way we currently live. Video conferencing with Zoom, Teams, and Google Meet are the norm in business today. Information is knowledge, and everyone more than ever wants to be able to see, control and summarize production data on a regular basis. Open intuitive technologies are available to communicate like never before. Industrial plant data is rapidly changing. Factory 4.0 benefits are being seen and everyone wants to take advantage. We are looking forward to the New Year and new possibilities for implementing your control solution.
Raspberry Pi Serial Port Programming - ACC Automation
Each year we like to take a few minutes and reflect on the past, current, and future of ACC Automation. You have helped us to build the site that you see today through questions, comments, and suggestions. Thank you. Keep on Reading!

Raspberry Pi Serial Port Programming


Node-RED will be used on the Raspberry Pi 4 to communicate serial Modbus RTU to a Solo process temperature controller and Click PLC using twisted pair RS485. This will be done on the same serial network so the devices will be daisy-chained together on the two wires.
Raspberry Pi Serial Port Programming
We will be reading the PV (present value) and SV (set value) of the Solo temperature controller and then writing these values into the Click PLC. An SV value will then be read from the Click PLC and if it has changed, the value will be written to the SV of the Solo controller. Let’s get started. Continue Reading!

Simple Click Data Logging – Node-RED


We will now be looking at simple data logging using a Click PLC with an Ethernet port. Node-RED will be used to communicate to the controller via Modbus TCP protocol. Information collected will be then stored in an SQLite SQL database. A Raspberry Pi 4 single-board computer will be used for the Node-RED collecting and storing. The update time will be two times a second (500 mSec). This method is ideal for quickly determining how things are operating.

Analysis or display of the information will be done with a spreadsheet. The spreadsheet will be run on a windows computer. Let’s get started. Continue Reading!

Install Node-RED on Raspberry Pi 4


We will now be installing Node-RED on a Raspberry Pi 4 single-board computer. A static IP address will also be given for both the WiFi and Ethernet connections.
Install Node-RED on Raspberry Pi 4
The Raspberry Pi has quickly become a fixture in the industrial environment when utilizing the internet of things. (IoT) We will be utilizing this low-cost computer to poll and log information from our PLCs using Modbus and MQTT protocols. Node-RED will be the IoT enabling software that will allow us to utilize this hardware.
https://accautomation.ca/series/node-red-iot-enabling-software/
Let’s get started with installing Node-RED and setting up a fixed IP address on our Raspberry Pi 4 computer. Continue Reading!

Do-More PLC Node-RED HTTP Request


Node-RED HTTP Request can be used to read any BRX Do-More PLC memory area. This HTTP (Hypertext Transfer Protocol) communication will only read information from our controller.
Do-More PLC Node-RED HTTP Request
The BRX Do-More REST API is used to read information using a URL (Uniform Resource Locator) or web address. We will be using the HTTP request node in Node-RED to read information from our BRX Do-More REST API-enabled controller. Writing using Modbus will also be shown. This will all be done on our Raspberry Pi 4 single-board computer. Let’s get started. Continue Reading!