Node-RED Modbus TCP can recover from communication errors automatically. Options are available to you the programmer to continue the Node-RED flow upon detection of these errors.
Broken Ethernet cable, Modbus Server power, and Node-RED Client offline are just a few of the errors that can occur on the industrial plant floor. Our Node-RED program must account for and be tested for each of these conditions.
We will be communicating Modbus TCP (Ethernet) to our Click Plus PLC. Using the catch node we will detect and display errors that may occur. Let’s get started. Continue Reading!
We will be installing a USB to rs485 installation on our computer. The CH340/CH341 USB to Serial port is a 2-wire USB to RS-485 serial communication adapter for RS485 use. It does not require an external power supply or complicated configuration.
It has a Type A (plug) USB connector for the computer side and screw terminals for the RS485 connections. The CH340/CH341 USB to serial device supports multiple baud rates and has a thumb drive design. Let’s get started installing our USB to RS485 adapter. Continue Reading!
The Click Plus PLC has now been released. This can only be programmed with version 3.00 or higher of the Click Programming Software. Version 3.00 will program all of the Click PLC CPU units and add additional features to the Click Ethernet CPU units.
Features of the new Click PLUS PLC (C2-0xCPU) includes the following:
• Micro USB
• DHCP support
• DNS support
• Wi-Fi (programming and Modbus TCP)
• Bluetooth (Wi-Fi) provisioning
• SD Card (Data Logging)
• Data Logger
• Network Time Service
• MQTT (Publish/Subscribe)
• Required PLC Password
• Disable Ports
• Strong Password Support
• Disable Ping Response
• Encrypted Password Transfer
We will be installing version 3.00 of the Click programming software on our windows 10 computer. After starting the software we will review some of the new features. Let’s get started. Keep on Reading!
A PID (Proportional, Integral, and Derivative) control is possible with the Click PLC. A sample program was written for this PLC by Bernie Carlton in the following thread from the Automation Direct Forum. This was based on the math/process presented by Tim Wescott on is paper titled PID without a Ph.D. We will be using this sample program along with a Factory IO scene to demonstrate PID control using our Click PLC.
Here are some references on PID control:
PID without a Ph.D. By Tim Wescott
Understanding PID in 4 minutes
PID Control – A brief introduction
PID Controllers Explained
Who Else Wants to Learn about On-Off and PID Control?
Our Factory IO scene will be controlling the level of water in a tank. PID will be used to maintain the level based on a dial pot knob on the control panel. We will also discuss the math that the PID loop uses. Let’s get started! Keep on Reading!
A dusk to dawn sensor usually is discrete on/off of the lighting control. If we want to vary the lights to mimic more of the sunset and rise, we would use an analog output to control the lights. I was recently asked about such a program. Every day they wanted the lights to go off at 10 pm and come back on at 6 am. At 9:30 pm the lights would be on at 70% or 7volts of a 0-10V signal. In the next half hour, the program will bring the lights from 70% down to 0%. In the morning the lights will come back on within the half-hour from 0% to 70%. Poultry Farms are one place that would utilize this program.
We will be developing a program that will do this with our Click PLC. Let’s get started! Keep on Reading!