Node-RED Modbus RTU / TCP Communication

Node-RED can easily connect to industrial controls using Modbus communication. Modbus is a master-slave type of communication. Masters will always send the commands to read or write to the slaves on the network. The slaves will respond if the communication is directed at them.
We will be installing the node-red-contrib-modbus palette. This will allow us to communicate Modbus serial (RS485) RTU to a Solo process temperature controller. We will then use Modbus Ethernet TCP to communicate to a Click PLC.
Note: When using Modbus TCP (Ethernet) the master is referred to as the Client and the slave is a Server.
Node-RED Modbus RTU / TCP Communication
Node-RED will be used to create a single Modbus flow. We will communicate to our Solo process temperature controller using Modbus RTU on a serial RS485 network. The present and set values of the controller will be read. These values will then be written to our Click PLC using an Ethernet Modbus TCP network. A set value from an analog input on the Click will be used to then write to the Solo. This will happen every 200 milliseconds or 5 times per second.
Let’s get started using Node-RED for Modbus communication. Continue Reading!

Arduino Uno Super Starter Kit Buzzers

We will now look at active and passive buzzer outputs on our Arduino UNO controller. Electronic buzzers are DC-powered and equipped with an integrated circuit. They are widely used in computers, printers, photocopiers, alarms, electronic toys, automotive electronic devices, telephones, timers, and other electronic products for voice devices. Buzzers can be categorized as active and passive. Turn the pins of two buzzers face up. The one with a green circuit board is a passive buzzer, while the other enclosed with black tape is an active one.
Arduino Uno Super Starter Kit Buzzers
We will be wiring passive and active buzzers to our Arduino UNO R3 controller on our super starter kit. Two pushbuttons with pull-down resistors will control the buzzers. Pressing the first button will play a melody on the passive buzzer. A two-tone alarm will sound using the active buzzer when the other push button is selected. Let’s get started. Continue Reading!

Productivity BRX Do-More EtherNet/IP Remote IO

We will now utilize Ethernet/IP to connect a BRX Do-More PLC as remote IO on a Productivity system. The productivity series of controllers can use explicit and implicit messaging techniques of EtherNet/IP to optimize data exchanges across the network.
Explicit messaging means that the data messages that are transmitted will contain everything needed in order to respond or decode the message. It is a normal client/server relationship with instructions explicitly spelled out in the data messages. This communication happens at times that the Client requests the information.
Implicit messaging means the data messages are streamlined. The device is configured ahead of time to know what to do with the data. This is used for time-critical messages and it functions as a typical scanner/adapter relationship. Implicit messaging is real-time. It has the ability to copy data with minimal additional information because both ends already know exactly what each bit and byte.
Productivity 1000 Series PLC BRX Do-More EthernetIP Remote IO
A BRX Do-More PLC will be set up as remote distributed inputs and outputs for our Productivity 1000 controller. Implicit Ethernet IP will be set up. The Do-More will be the Ethernet IP adapter and the Productivity will be the Ethernet IP scanner. Let’s get started. Keep on Reading!

Node-RED Installing the Windows Software

We will now be installing the Node-RED software on our Windows 10 computer. Node-RED is a powerful and easy programming tool that will allow you to join together hardware devices, APIs (Application Programming Interface), and online services. This joining of information is part of the smart factory. Internet of Things (IoT), Industrial Internet of Things (IIoT), Industry 4.0, and Smart Production are just a few of the other labels that have been applied to this type of technology.
Node-RED Installing the Windows Software
Node-RED provides a browser-based flow editor. This provides an easy way to visually see and modifies your program flow. Flows can then be deployed to the runtime in a single click. Node-RED is built on Node.js. This lightweight runtime can be deployed on low-cost hardware (Raspberry Pi ) or cloud services (Microsoft Azure). This has the ability to bring data collection, analysis, and storage closer to the actual device. Real-time edge computing can then be achieved without latency issues.

In this series we will be using Node-RED in some of the following ways:
– Connect to our industrial equipment using the Modbus protocol.
– Display Information on a user interface, HMI, or dashboard
– Log information into a database
– View information in the database through spreadsheets such as Excel.
Let’s get started by installing Node-RED. Continue Reading!

Arduino Uno Super Starter Kit Analog Inputs

We will now be looking at how to use analog inputs to our Arduino UNO controller. An analog input converts a voltage level into a digital value. This can then be used in our Arduino program or sketch. The analog input signal can represent many different items. Speed, levels, distance, brightness, density, humidity, etc. are a few items that this external input can represent.
Arduino Uno Super Starter Kit Analog Inputs
We will be wiring a 10K potentiometer to the first analog input of the controller. The Arduino Uno R3 from our Super Starter Kit will be used. As the analog values changes via our potentiometer, we will use PWM to change the brightness of an LED. We will look at how this conversion from analog voltage to digital is done. Values will be displayed on the built-in serial monitor of our Arduino IDE software. Let’s get started. Continue Reading!

Practical Tips and Techniques