Tag Archives: plc wiring click

Click PLC PID using Factory IO

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!

Click PLC Analog Dusk to Dawn Program

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!

Wiring Stack Light to Click PLC

Stack lights are usually modular stackable components that provide a visually illuminated and audible indication for machines, systems, and processes. They are usually located on top of equipment to provide this notification to personnel in the area.

Stack lights are also known as signal tower lights, indicator lights, warning lights, industrial signal lights, tower lights, and light towers.
We will be connecting a Patlite NPS-402-RYGB Super Slim stack light to our Click PLC.

These stack lights come in preassembled units in the most popular combinations of colours with ABS resin main bodies that offer superior impact and heat resistance; double-insulated construction enhances durability and safety. Interchangeable light modules require no rewiring. Let’s get started. Continue Reading!

Click PLC High Speed Counting – Part 2

The Ethernet Click PLC high speed counter has seven different modes of operation. In Part 1 we discussed the High Speed Count Mode, Interval Measurement Mode,
Duration Measurement Mode and Frequency Measurement Mode.

This 100 KHz counter can accept Up, Down, Up/Down, Pulse/Direction or Quadrature (with Z) inputs.
We will be looking at the last three different high speed counter modes available in the click. (External Interrupt, Pulse Catch, Filter) This is all setup through a user friendly graphical user interface. We will also combine the Frequency Measurement and the High Speed Count in one application. Let’s get started! Keep on Reading!

Click PLC High Speed Counting – Part 1

The Click PLC family has been updated, and now has the ability to use high speed counting. This is available on all of the Ethernet units that have DC inputs. The faster processor on the Ethernet unit (3 to 10 times faster than the basic unit) allows this capability. There are seven (7) different modes of operation for the high speed counter available so adaption to your automation solution is easy. The input can count Up, Down, Up/Down, Pulse/Direction or Quadrature (with Z). Maximum speed on the high speed counter inputs are 100 kHz. That is 100,000 pulses per second.

We will be looking at the different high speed counter modes available in the click. This is all setup through a user friendly graphical user interface. Let’s get started! Keep on Reading!

Click PLC HMI Rotary Encoder Dial Input

Rotary encoders are modern digital devices that have taken over from the potentiometer in stereos and many other applications. This is because of their fine digital control and they can fully rotate without end stops. We can connect the rotary encoder into the PLC using just two digital inputs. This human machine interface (HMI) has the advantage over touch screens and other methods of control into the PLC. The operator can control the rate and set point with the dial (rotary encoder) without looking at the control. This will allow the operator to concentration on other tasks.

We will be connecting a rotary encoder with dial into the Click PLC. The signals being sent from the rotary encoder will be explained. Different methods of programming this input in our PLC will be discussed. Let’s get started. Keep on Reading!

Click PLC Shift Register Instruction

Allot of times when programming a PLC you need to track what has previously happened. Shift registers allow you to do just that. The Click PLC has a shift register in the instruction set. We will discuss the shift register and look at an example.  Keep on Reading!

Click PLC Program Control Instructions

The program control instructions will allow us to specify what parts of the logic get solved and when this happens. This will control how the PLC will scan and solve your logic in your program.  Keep on Reading!

Click PLC Compare and Math Instructions

Compare and math instructions in the Click PLC will allow you to do a number of things. We will use the compare instructions to turn on bits which will indicate production shifts. Using the math instruction we will convert the number of units made to a weight.  Keep on Reading!

Click PLC Installing the Software

Previously we discussed the Click PLC System Hardware – Video. Today we will be installing the free software required to program the PLC. This includes the actual program and communication drivers.  Keep on Reading!