Tag Archives: Wiring Sensors

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!

Create an Analog Voltage Input Tester for a PLC

We will create a simple and inexpensive analog voltage tester for a PLC using a potentiometer and a 9VDC battery. The potentiometer will be 5K ohms. This should be enough impedance for most analog inputs of the programmable logic controller. (PLC) Voltage impedance for analog voltage inputs are in the mega ohm range where current input is typically 250 ohms. Our tester will be for analog voltage inputs (0-10 VDC). Check your input specifications before wiring anything to your PLC. I have used this tester for other voltage inputs along with a meter to ensure that the voltage levels do not get out of range for the input signal.
Analog inputs to the PLC are continuous and can come in a variety of signals. These signals can come from temperature, flow rate, pressure, distance, etc. Continue Reading!

Wiring Interposing Relays

Interposing relay means a device that will separate two different circuits. The isolation can be for current consumption, voltage differences, voltage references or a combination of both current and voltage. We can use these relays to help connect our inputs and outputs on our programmable logic controller. (PLC) Continue Reading!

Here’s a Quick Way to Wire NPN and PNP devices

Here’s a Quick Way to Wire NPN and PNP devices

I get asked often on how to wire NPN and PNP devices to the programmable logic controller. This can be confusing at first when looking at the wiring diagrams. I have managed to destroy a few sensors in the process….. so let’s get started and I will share my experiences.


E2A_7069B_7l E2A_7002A_7l
NPN and PNP refer to the transistor in the output device.
NPN – Negative Positive Negative Switching. Sometimes referred to as ‘Sinking’ the load.  People have told me that when the NPN sensor blows it has a tendency to blow in an open state. (No Signal)
PNP – Positive Negative Positive Switching. Sometimes referred to as ‘Sourcing’ the load. People have told me that when the PNP sensor blows it has a tendency to blow in a closed state. (Signal On)

When the sensor blows, (malfunctions) it usually will also take out the power supply. (Fuse) It generally does not matter if you use NPN or PNP sensors provided they are all connected to the PLC using isolated commons.

You cannot mix PNP and NPN sensors on the same common point for inputs to the PLC. If you do mix the sensors, then the different common points on the PLC must be isolated from each other. This means that the commons are not connected internally to each other. Not ensuring this takes place will provide a short across the power supply and blow your sensors and supply. In general, machines tend to use all NPN or all PNP only.

Colour coding of the wires vary. Do not always rely on the colour code of the wires for connection. Refer to the wire diagrams in the documentation.

The following is a wiring diagram of an open collector PNP sensor. You will notice that the load appears between the 0V (Blue)  and Switching wire (Black). When connecting to the PLC, the PLC input acts as the load. The 0V (Blue) will be attached to the common input and the Switching wire (Black) will be attached to the input number.PNP1

The following is a wiring diagram of an open collector NPN sensor. You will notice that the load appears between the +V (Brown)  and Switching wire (Black). When connecting to the PLC, the PLC input acts as the load. The +V (Brown) will be attached to the common input and the Switching wire (Black) will be attached to the input number.NPN1

As you can see a direct short will be created if NPN and PNP sensors are wired into the PLC on the same common. The following shows an example of wiring of the 3 wire sensors into a PLC with isolated commons.

NPN_PNP_PLC

Watch on YouTube : Wiring NPN Sensor to PLC

Watch on YouTube : Wiring PNP Sensor to PLC

Watch on YouTube : Wiring Contact (Discrete) PLC Inputs

Wiring Interposing Relays
Watch on YouTube
: Wiring NPN and PNP Sensors into the PLC with an Interposing Relay
If you have any questions or need further information please contact me.
Thank you,
Garry



If you’re like most of my readers, you’re committed to learning about technology. Numbering systems used in PLC’s are not difficult to learn and understand. We will walk through the numbering systems used in PLCs. This includes Bits, Decimal, Hexadecimal, ASCII and Floating Point.

To get this free article, subscribe to my free email newsletter.


Use the information to inform other people how numbering systems work. Sign up now.

The ‘Robust Data Logging for Free’ eBook is also available as a free download. The link is included when you subscribe to ACC Automation.