Category Archives: Click

Automation Direct Click Series PLC

Click PLC PID Instruction and Autotuning using Factory IO

A PID (Proportional, Integral, and Derivative) control is possible with the Click PLC. The Click Programming Software version 2.50 now includes PID. This features 8 full-featured control loops with an easy graphical user interface (GUI). PID will run on all of the Ethernet-enabled Click PLCs.
We will be using this PID along with a Factory IO scene to demonstrate PID control and Autotuning 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. Let’s get started! Keep on Reading!

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!

Universal Signal Conditioner and Isolator

Signal conditioners are used with analog current and voltage signals. They have the ability to change your input analog signal to another output analog signal. As an example, we can have 4-20mA analog input and change it to a 0-10VDC output signal so we can wire this into our PLC. Typically signal conditioners will also electrically isolate the input and output signals. This is either done by magnetic or optical isolation. You would usually specify the input and output signals that are required in your circuit to choose the signal conditioner required. Using a universal signal conditioner will take a variety of signals and is a great product to use in troubleshooting analog circuits.

We will be using a universal signal conditioner to convert a thermocouple temperature input into a 0-10VDC linear output. This will be wired into the analog card of the Click PLC.
Let’s get started. Continue 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 an Ultrasonic Proximity Sensor to the Click PLC

An ultrasonic sensor (switch) is able to detect object presence without physical contact (limit switch). No physical contact means that the switch has no parts that will wear out. The life span of the sensor is increased with less maintenance.
An ultrasonic sensor will use sound waves to detect objects. These sound waves are at a level that we cannot hear. Distance is measured by the time it takes to send and receive the ultrasonic wave. Objects can be measured the same no matter what the colour, transparency, shininess, or lighting conditions of the application.

We will be wiring an ultrasonic sensor into the input of our Click PLC. This will include a discrete and analog input signal. The UK1F-E7-0A is an 18mm diameter sensor that has a PNP N.O./N.C. selectable output with analog output of 0 -10 VDC. The sensing distance is 200mm to 2200mm and has a one-hertz switching capacity. A 4-pin M12 quick disconnect is available but we will be wiring in our 2m wired version. Let’s get started. Continue Reading!

Wiring a Capacitive Proximity NPN PNP Sensor to the Click PLC

A proximity sensor (switch) is able to detect object presence without physical contact like a limit switch. No physical contact means that the switch has no parts that will wear out. The life span of the sensor is increased with less maintenance.
A capacitive proximity sensor will detect ferrous and non-ferrous objects. The sensor works by oscillating the charge on the plates in the sensor. When an object is placed in front of the surface, the amount of current flow is detected. (Capacitance) The dielectric of objects will determine the distance that the object can be detected.

We will be wiring a capacitive proximity switch into the input of our Click PLC. The CK1-00-2H is an 18mm diameter, NPN/PNP N.O./N.C. selectable output with a 12mm sensing distance. That means that the sensor can be wired as positive (Sourcing) or negative (Sinking) switch. This unshielded 10 Hz switching frequency sensor also has a 4-pin M12 quick disconnect. Let’s get started. Continue Reading!

Wiring an Inductive Proximity NPN PNP Sensor to the Click PLC

A proximity sensor (switch) is able to detect object presence without physical contact like a limit switch. No physical contact means that the switch has no parts that will wear out. The life span of the sensor is increased with less maintenance.
An inductive proximity sensor will detect ferrous metals. The sensor develops an electric field when metal (sensing object) is introduced usually killing the oscillation circuit of the sensor triggering the output.

We will be wiring an inductive proximity switch into the input of our Click PLC. The AM1-A0-4A is an extended range 12mm tubular sensor that can be wired into the PLC as a sink or source input. Let’s get started. Continue Reading!

Wiring Push Buttons and Selector Switch to Click PLC

A push button (pushbutton) is a simple human interface for controlling some aspect of a machine or process. The push button requires a force to push the button to change the electrical operation from off to on or vice versa. The condition of the output is usually momentarily. Some common everyday pushbuttons we use are keyboards keys.

A selector switch is also a mechanical device that will require a force to turn the electrical operation from off to on or vice versa. The selector switch usually locks into a position.

We will be wiring two illuminated pushbutton switches into our Click PLC. A selector switch will also be wired in. Let’s get started. Continue 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!