PLC Input/Output (I/O) Capabilities
Some PLCs have the ability to connect to processor-less remote racks filled with additional I/O cards or modules, thus providing a way to increase the number of I/O channels beyond the capacity of the base unit. The connection from host PLC to remote I/O racks usually takes the form of a special digital network, which may span a great physical distance:
Input/output capability for programmable logic controllers comes in three basic varieties: discrete, analog, and network; each type discussed in a following subsection.
A “discrete” data point is one with only two states on and off. Process switches, pushbutton switches, limit switches, and proximity switches are all examples of discrete sensing devices. In order for a PLC to be aware of a discrete sensor’s state, it must receive a signal from the sensor through a discrete input channel. Inside the discrete input module is (typically) a light-emitting diode (LED) which will be energized when the corresponding sensing device turns on. Light from this LED shines on a photo-sensitive device such as a phototransistor inside the module, which in turn activates a bit (a single element of digital data) inside the PLC’s memory. This opto-coupled arrangement makes each input channel of a PLC rather rugged, capable of isolating the sensitive computer circuitry of the PLC from transient voltage “spikes” and other electrical phenomena capable of causing damage.
Indicator lamps, solenoid valves, and motor contactors (starters) are all examples of discrete control devices. In a manner similar to discrete inputs, a PLC connects to any number of different discrete final control devices through a discrete output channel. Discrete output modules typically use the same form of opto-isolation to allow the PLC’s computer circuitry to send electrical power to loads: the internal PLC circuitry driving an LED which then activates some form of photosensitive switching device. Alternatively, small electromechanical relays may be used to interface the PLC’s output bits to real-world electrical control devices.
An important concept to master when working with DC discrete I/O is the distinction between current-sourcing and current-sinking devices. The terms “sourcing” and “sinking” refer to the direction of current (as denoted by conventional flow notation) into or out of a device’s control wire. A device sending (conventional flow) current out of its control terminal to some other device(s) is said to be sourcing current, while a device accepting (conventional flow) current into its control terminal is said to be sinking current.
To illustrate, the following illustration shows a PLC output channel is sourcing current to an indicator lamp, which is sinking current to ground:
These terms really only make sense when electric current is viewed from the perspective of conventional flow, where the positive terminal of the DC power supply is envisioned to be the “source” of the current, with current finding its way “down” to ground (the negative terminal of the DC power supply). In every circuit formed by the output channel of a PLC driving a discrete control device, or by a discrete sensing device driving an input channel on a PLC, one element in the circuit must be sourcing current while the other is sinking current.
If the discrete device connecting to the PLC is not polarity-sensitive, either type of PLC I/O module will suffice. For example, the following diagrams show a mechanical limit switch connecting to a sinking PLC input and to a sourcing PLC input:
You will notice that the only difference in the two PLC input channels is the labeling of the terminals. In the “sinking” input channel, the input terminal was positive while the common (“Com”) terminal was negative. These labels are reversed in the “sourcing” input channel1.
Some discrete sensing devices are polarity-sensitive, such as electronic proximity sensors containing transistor outputs. A “sourcing” proximity switch can only interface with a “sinking” PLC input channel, and visa-versa:
Two photographs of a DC (sinking) discrete input module for an Allen-Bradley model SLC 500 PLC are shown here: one with the plastic cover closed over the connection terminals, and the other with the plastic cover opened up for viewing the terminals. A legend on the inside of the cover shows the purpose of each screw terminal: eight input channels (numbered 0 through 7) and two redundant “DC Com” terminals for the negative pole of the DC power supply to connect:
A standard feature found on practically every PLC discrete I/O module is a set of LED indicators visually indicating the status of each bit (discrete channel). On the SLC 500 module, the LEDs appear as a cluster of eight numbered squares near the top of the module.
A photograph of discrete output terminals on another brand of PLC (a Koyo model DL06) shows somewhat different labeling:
Here, each output channel terminal is designated with a letter/number code beginning with the letter “Y”. Several “common” terminals labeled with “C” codes service clusters of output channels. In this particular case, each “common” terminal is common only to four output channels. With sixteen total output channels on this PLC, this means there are four different “common” terminals. While this may seem somewhat strange (why not just have one “common” terminal for all sixteen output channels?), it more readily permits different DC power supplies to service different sets of output channels.
Electrical polarity is not an issue with AC discrete I/O, since the polarity of AC reverses periodically anyway. However, there is still the matter of whether the “common” terminal on a discrete PLC module will connect to the neutral (grounded) or hot (ungrounded) AC power conductor.
The next photograph shows a discrete AC output module for an Allen-Bradley SLC 500 PLC, using TRIACs as power switching devices rather than transistors as is customary with DC discrete output modules:
This particular eight-channel module provides two sets of TRIACs for switching power to AC loads, each set of four TRIACs receiving AC power from a “hot” terminal (VAC 1 or VAC 2), the other side of the load device being connected to the “neutral” (grounded) conductor of the AC power source.
Fortunately, the hardware reference manual supplied by the manufacturer of every PLC shows diagrams illustrating how to connect discrete input and output channels to field devices. One should always consult these diagrams before connecting devices to the I/O points of a PLC!
In the early days of programmable logic controllers, processor speed and memory were too limited to support anything but discrete (on/off) control functions. Consequently, the only I/O capability found on early PLCs were discrete in nature2. Modern PLC technology, though, is powerful enough to support the measurement, processing, and output of analog (continuously variable) signals.All PLCs are digital devices at heart. Thus, in order to interface with an analog sensor or control device, some “translation” is necessary between the analog and digital worlds. Inside every analog input module is an ADC, or Analog-to-Digital Converter, circuit designed to convert an analog electrical signal into a multi-bit binary word. Conversely, every analog output module contains a DAC, or Digital-to-Analog Converter, circuit to convert the PLC’s digital command words into analog electrical quantities.
Analog I/O is commonly available for modular PLCs for many different analog signal types, including:
• Voltage (0 to 10 volt, 0 to 5 volt)
• Current (0 to 20 mA, 4 to 20 mA)
• Thermocouple (millivoltage)
• RTD (millivoltage)
• Strain gauge (millivoltage)
The following photographs show two analog I/O cards for an Allen-Bradley SLC 500 modular PLC system, an analog input card and an analog output card. Labels on the terminal cover doors indicate screw terminal assignments:
Many different digital network standards exist for PLCs to communicate with, from PLC to PLC and between PLCs and field devices. One of the earliest digital protocols developed for PLC communication was Modbus, originally for the Modicon brand of PLC. Modbus was adopted by other PLC and industrial device manufacturers as a de facto standard3, and remains perhaps the most universal digital protocol available for industrial digital devices today.
Another digital network standard developed by a particular manufacturer and later adopted as a de facto standard is Profibus, originally developed by Siemens.
For more information on networking standards used in PLC systems, refer to the “Digital electronic instrumentation” chapter, specifically sections on specific network standards such as Modbus and Profibus.
1Some sourcing input modules may use a label other than “Com” to denote the positive terminal common to all input channels. DC input modules for the Allen-Bradley SLC 500 line of PLCs, for example, label the common terminal on DC sourcing inputs as “VDC” instead of “DC Com” to help avoid confusion. This way, the technician need only remember that “DC Com” always refers to the negative pole of the DC power source, while “VDC” always refers to the positive pole.
2Some modern PLCs such as the Koyo “Click” are also discrete-only. Analog I/O and processing is significantly more complex to engineer and more expensive to manufacture than discrete control, and so low-end PLCs are more likely to lack analog capability.
3A “de facto” standard is one arising naturally out of legacy rather than by an premeditated agreement between parties. Modbus and Profibus networks are considered “de facto” standards because those networks were designed, built, and marketed by pioneering firms prior to their acceptance as standards for others to conform to. In Latin, de facto means “from the fact,” which in this case refers to the fact of pre-existence: a standard agreed upon to conform to something already in popular use. By contrast, a standard intentionally agreed upon before its physical realization is a de jure standard (Latin for “from the law”). FOUNDATION Fieldbus is an example of a de jure standard, where a committee arrives at a consensus for a network design and specifications prior to that network being built and marketed by any firm.
written by Administrator, December 30, 2013
- Learn Ladder Logic with a Free Version of RSLogix 500 and RSEmulator 500
- A Quick Tutorial on RSLogix Emulator 5000
- An Introduction to RSLogix5000 Tags
- What are the primary elements used for flow measurement ?
- What is a Linear Variable Differential Transformer (LVDT)?
- Drives 101: Adjustable / Variable Frequency Drives
- Basic DC Electricity for Industrial Instrumentation
- DC Electromagnetism
- AC Electricity : Transmission Lines
- Introduction to Industrial Instrumentation
- Example: Boiler Water Level Control System
- Example: Wastewater Disinfection
- Example: chemical reactor temperature control
- Other Types of Instruments
- Instrumentation Documents
- Instrumentation Documents - Process and Instrument Diagrams
- Instrumentation Documents - Process Flow Diagrams
- Instrumentation Documents - Loop Diagrams
- Instrumentation Documents - SAMA Diagrams
- Instrumentation Documents - Instrument and Process Equipment Symbols
- Instrumentation Documents - Instrumentation Identification Tags
- Programmable Logic Controllers
- PLC Logic Programming Part 1
- PLC Logic Programming Part 2
- PLC Logic Programming Part 3
- Analog Electronic Instrumentation
- How To Teach Yourself PLC Programming
- PLC Examples
- Digital Data Communication Theory
- Analog Electronics Instrumentation - Current Loops
- Troubleshooting Current Loops
- Introduction - Digital Data Acquisition and Networks
- EIA/TIA-232, 422, and 485 Networks
- Ethernet Networks
- Internet Protocol (IP)
- DeltaV Card Parameters
- Transmission Control Protocol (TCP) and User Datagram Protocol (UDP)
- The HART Digital/Analog Hybrid Standard
- Instrumentation and Control - Sensors and Primary Transducers
- SPEEDTRONIC Mark VI Hardware Description
- SPEEDTRONIC Mark VI Control Software Philosophy
- SPEEDTRONIC Mark VI Protection Systems
- INDUSTRIAL CONTROL HANDBOOK - 1.3 POSITION SENSORS
- INDUSTRIAL CONTROL HANDBOOK - 0.2 THE ENVIRONMENT FOR AUTOMATION
- INDUSTRIAL CONTROL HANDBOOK - 0.3 CONTROL OF AUTOMATION/PROCESS CONTROL
- INDUSTRIAL CONTROL HANDBOOK - 0.4 COMPONENTS IN AUTOMATION
- INDUSTRIAL CONTROL HANDBOOK - 0.5 INTERFACING AND SIGNAL CONDITIONING
- INDUSTRIAL CONTROL HANDBOOK - 0.6 SUMMARY
- INDUSTRIAL CONTROL HANDBOOK - 1.0 SENSORS
- INDUSTRIAL CONTROL HANDBOOK - 1.1 QUALITY OF SENSORS
- INDUSTRIAL CONTROL HANDBOOK - 1.2 SWITCHES AND TRANSDUCERS
- INDUSTRIAL CONTROL HANDBOOK - 1.4 VELOCITY AND ACCELERATION SENSORS
- INDUSTRIAL CONTROL HANDBOOK - 2.1 INTRODUCTION
- INDUSTRIAL CONTROL HANDBOOK - 2.2 SOLENOIDS AND TORQUE MOTORS
- INDUSTRIAL CONTROL HANDBOOK - 2.3 AIR-POWER ACTUATORS AND SOLENOID-ACTUATED VALVES
- INDUSTRIAL CONTROL HANDBOOK - 2.4 HYDRAULIC ACTUATORS AND VALVES
- INDUSTRIAL CONTROL HANDBOOK - 2.5 SPECIAL-PURPOSE ACTUATOR SYSTEMS
- INDUSTRIAL CONTROL HANDBOOK - 2.6 CONSTRUCTION OF ELECTRIC MOTORS
- INDUSTRIAL CONTROL HANDBOOK - 2.7 THEORY OF OPERATION OF ELECTRIC MOTORS
- INDUSTRIAL CONTROL HANDBOOK - 2.8 TYPES OF ELECTRIC MOTORS
- INDUSTRIAL CONTROL HANDBOOK - 2.9 CONTROL OF MOTORS
- INDUSTRIAL CONTROL HANDBOOK - 3.1 OVERVIEW OF SCRs, TRIACS, AND TRANSISTORS IN INDUSTRIAL APPLICATIONS
- INDUSTRIAL CONTROL HANDBOOK - 3.3 TRIACS
- INDUSTRIAL CONTROL HANDBOOK - 3.4 POWER TRANSISTORS
- INDUSTRIAL CONTROL HANDBOOK - 3.5 INSULATED GATE BIPOLAR TRANSISTORS
- INDUSTRIAL CONTROL HANDBOOK - 3.6 JUNCTION FIELD EFFECT TRANSISTOR (J-FETS)
- INDUSTRIAL CONTROL HANDBOOK - 3.7 COMPARISON OF POWER SEMICONDUCTORS
- INDUSTRIAL CONTROL HANDBOOK - 3.8 OPTOISOIATORS AND OPTOINTERRUPTERS
- INDUSTRIAL CONTROL HANDBOOK - 4.1 ELECTRONIC CONTROL OF DIRECT CURRENT MOTORS
- INDUSTRIAL CONTROL HANDBOOK - 4.2 ELECTRONIC CONTROL OF ALTERNATING CURRENT MOTORS