PLCtalk.net
Volume 
Automating Manufacturing Systems with PLCs
Chapter
Digital Sensors
PDF Version
Pages

Wiring Switches for PLCs


Mechanical switching contacts, like those in buttons, relays, and selector switches, are simpler to understand, but require a knowledge of reading symbols and observing current polarity.


When a sensor detects a change in the state of a process variable, it must signal the change to the PLC. This is typically done by switching a voltage on or off, driving current through the PLC input. In some cases, a sensor's output is used to switch a load directly, effectively eliminating the need for a PLC. While this might be more commonly done with a switch or pushbutton, it is very rare for a transistor-based sensor because these only provide a tiny amount of current, insufficient for large load devices.

Instead, these sensors and switches will provide signals to PLC inputs. A few of the typical sensor and input types are listed below.

  • Plain, Manual Switches—Switch the voltage on or off.
  • Dry-contact Relays and Sensors—Switch voltage in response to an external circuit
  • Solid State Relays—Rapidly switch DC or AC outputs.
  • Sinking/Sourcing Sensors—Switch current on or off.
  • TTL (Transistor-Transistor Logic)—Use 0V and 5V to indicate logic levels.

Of this list, the first three constitute a cohesive group, commonly called ‘switches’. They do not contain internal resistance, so they can drive larger loads. For PLC connections, they are the simplest and will be discussed first.

 

Wiring Manual Switches

Pushbuttons and quarter-turn switches are common devices found in operator panels. Automation means that nearly everything is connected to a sensor, but manual control is still crucial in many settings. These switches tend to be the simplest because they only use two wires to establish the loop (circuit) connection with the PLC, and they have virtually no limitations on current and voltage when used for PLC inputs.

An example of standard switch wiring is shown below in Figure 4.1.

 

Figure 4.1. An example of pushbutton and selector switch wiring.

 

In the figure, a normally open (often abbreviated NO) pushbutton switch is connected to input 0. Following the circuit loop path, voltage is supplied to the button from the DC source and passed from the button to input terminal 0. The COM terminal is connected back to 0 VDC, thus completing the circuit.

The selector switch shows a nearly identical configuration, passing the voltage to input terminal 3. Some selector switches energize separate circuits in both rotation directions, so be on the lookout for subtle changes in the schematic symbols.

Although buttons and selector switches are non-polar, they do have contact terminal numbers. For the sake of future troubleshooting, always install these switches exactly as marked in the machine wiring diagram, even though there is no risk of connecting them backwards.

 

Dry Contact Sensors

The term dry in an electrical context means that there is no voltage supplied from the internal circuits. Pushbuttons and selector switches are actually a form of dry contact, but the term is normally used for relays and limit switches. As expected, the wiring connections are very similar to those shown above.

 

Figure 4.2. An example of limit switch and relay contact wiring.

 

The limit switch symbol is shown connected to input terminal 0, exactly the same as the examples in Figure 4.1, with the same logic applied to the circuit.

The relay contact symbol usually adopts the same symbol standard that was discussed in a previous chapter, Introduction to Ladder Logic. (<- add hyperlink when publishing) In the wiring diagram, terminal numbers will often be applied to relay contacts. This is mainly because of the sheer number of terminals on a standard relay. One of the largest, the type with four poles and double throws (4PDT), has 14 terminals in total, each with a specific job. It’s very important to follow the wiring diagrams carefully.

Some sensors may also have dry switching contacts, similar to what is seen in Figure 4.2. The sensor must be powered separately, so the V+ and V- terminals are connected to the power supply. The sensor output will become active when its sensing threshold has been crossed. This means the internal switch (probably a relay of some kind) will be closed, allowing current to flow and positive voltage to be applied to the input.

 

Solid-State Relay Switches

In function, these relays act nearly the same as mechanical relays. But the internal construction is slightly different, which leads to a few interesting properties.

All of the dry contact devices (buttons, relays, and limit switches) are mechanical, which means that the contacts physically move away from each other, usually with an audible “click” sound. When they are de-energized, the air gap resistance is so extremely large that there is essentially zero current traveling to the load. We can safely say there is no current.

In contrast, the contacts of solid-state relays do not physically open or close. The semiconductor device properties change rapidly between very low and very high resistance. When de-energized, the resistance is very high, but not nearly as high as an air gap. What does this mean to a PLC?

 

Figure 4.3. An input circuit can be represented as two series resistors.

 

In Figure 4.3, we see this system represented as two resistors: one inside the contact of the solid-state relay, and the other is the internal resistance of the PLC input. In electronics, this makes a series circuit out of these two resistors, commonly known as a voltage divider. If the two resistance values are both quite high, they might share the voltage somewhat equally when the relay is de-energized. If the PLC is designed to receive a 12-24 V input (or a 3.3-5 V TTL input), there may be enough voltage to energize the input, even when the relay is switched off.

To prevent this problem, examine the datasheet of both the relay and the PLC input module. The off-state resistance of the relay should be sufficiently higher than the input resistance of the PLC. A factor of 10x is sufficient. Alternatively, the relay datasheet might list the maximum leakage current, which should be significantly lower than the maximum off-state current limit for the PLC.

In reality, this will very rarely pose a problem for PLCs, since most solid-state relays on the market are high enough resistance to work quite well in this situation. Still, it can cause troubleshooting confusion when using older relays or very high-resistance PLC inputs.