Keywords: PLC, programmable logic controller, industrial controls, fieldbus, analog input, analog output, Profibus, factory automation, electronic components
Introduction to Programmable Logic Controllers (PLCs) and the Operational Function of Main System Modules
OverviewProgrammable logic controllers (PLCs) have been an integral part of factory automation and industrial process control for decades. PLCs control a wide array of applications from simple lighting functions to environmental systems to chemical processing plants. These systems perform many functions, providing a variety of analog and digital input and output interfaces; signal processing; data conversion; and various communication protocols. All of the PLC's components and functions are centered around the controller, which is programmed for a specific task.
The basic PLC module must be sufficiently flexible and configurable to meet the diverse needs of different factories and applications. Input stimuli (either analog or digital) are received from machines, sensors, or process events in the form of voltage or current. The PLC must accurately interpret and convert the stimulus for the CPU which, in turn, defines a set of instructions to the output systems that control actuators on the factory floor or in another industrial environment.
Modern PLCs were introduced in the 1960s, and for decades the general function and signal-path flow changed little. However, twenty-first-century process control is placing new and tougher demands on a PLC: higher performance, smaller form factor, and greater functional flexibility. There must be built-in protection against the potentially damaging electrostatic discharge (ESD), electromagnetic interference and radio frequency interference (RFI/EMI), and high-amplitude transient pulses found in the harsh industrial setting.
Robust DesignPLCs are expected to work flawlessly for years in industrial environments that are hazardous to the very microelectronic components that give modern PLCs their excellent flexibility and precision. No mixed-signal IC company understands this better than Maxim. Since our inception, we have led the industry with exceptional product reliability and innovative approaches to protect high-performance electronics from real environmental dangers, including high levels of ESD, large transient voltage swings, and EMI/RFI. Designers have long endorsed Maxim's products because they solve difficult analog and mixed-signal design problems and continue solving those problems year after year.
Higher IntegrationPLCs have from four to hundreds of input/output (I/O) channels in a wide variety of form factors, so size and power can be as important as system accuracy and reliability. Maxim leads the industry in integrating the right features into ICs, thereby reducing the overall system footprint and power demands and making designs more compact. Maxim has hundreds of low-power, high-precision IC's in the smallest available footprints, so the system designer can create precision products that meet strict space and power requirements.
Factory Automation, a Short HistoryAssembly lines are a relatively new invention in human history. There have likely been many parallel inventions in many countries, but here we will mention just a few highlights from the U.S.
Samuel Colt, the U.S. gun manufacturer, demonstrated interchangeable parts in the mid-1800s. Previously each gun was assembled with individually made pieces that were filed to fit. To automate that assembly process, Mr. Colt placed all the pieces for ten guns in separate bins and then assembled a gun by randomly pulling pieces from the bins. Early in the twentieth century Henry Ford expanded mass-production techniques. He designed fixed-assembly stations with cars moving between positions. Each employee learned just a few assembly tasks and performed those tasks for days on end. In 1954 George Devol applied for U.S. Patent 2,988,237, which enabled the first industrial robot named Unimate. By the late 1960s General Motors® used a PLC to assemble automobile automatic transmissions. Dick Morley, known as the "father" of the PLC, was involved with the production of the first PLC for GM®, the Modicon. Morley's U.S. Patent 3,761,893 is the basis of many PLCs today. (For more information on the above four inventors, please see: www.wikipedia.org/; for their patents, search: http://patft.uspto.gov/netahtml/PTO/srchnum.htm).
Basic PLC OperationHow simple can process control be? Consider a common household space heater.
The heater's components are enclosed inside one container, which makes system communications easy. Expanding on this concept is a household forced-air heater with a remote thermostat. Here the communication paths are just a few meters and a voltage control is typically utilized.
Think now beyond a small, relatively simple process-control system. What controls and configuration are necessary in a factory?
The resistance of long wires, EMI, and RFI make voltage-mode control impractical. Instead, a current loop is a simple, but elegant solution. In this design wire resistance is removed from the equation because Kirchhoff's law tells us that the current anywhere in the loop is equal to all other points in the loop. Because the loop impedance and bandwidth are low (a few hundred ohms and < 100Hz), EMI and RFI spurious pickup issues are minimized. A PLC system is useful for properly controlling such a factory system.
A household electric heater serves as a simple example of process control.
Longer-range factory communications.
Current Communication for PLCsCurrent-control loops evolved from early twentieth-century teletype impact printers, first as 0–60mA loops and later as 0–20mA loops. Advances in PLC systems added 4–20mA loops.
A 4–20mA loop has several advantages. Older discrete component designs required careful design calculations; circuitry was comparatively large compared to today's integrated 4–20mA ICs. Maxim has introduced several 20mA devices, including the MAX15500 and MAX5661, which greatly simplify the design of a 4–20mA PLC system.
Any measured current-flow level indicates some information. In practice, the 4–20mA current loops operate from a 0mA to 24mA current range. However, the electrical current ranges from 0mA to 4mA and 20mA to 24mA are used for diagnostics and system calibration. Since current levels below 4mA and above 20mA are used for diagnostics, one might conclude that readings between 0mA and 4mA could indicate a broken wire in the system. Similarly, a current level between 20mA and 24mA could indicate a potential short circuit in the system.
An enhancement for 4–20mA communications is the highway-addressable remote transducer (HART® system) which is backward compatible with 4–20mA instrumentation. A HART system allows two-way communications with smart, microprocessor-based, intelligent field devices. The HART protocol allows additional digital information to be carried on the same pair of wires with the 4–20mA analog current signal for process-control applications.
PLCs can be described by separating them into several functional groups. Many PLC manufacturers will organize these functions into individual modules; the exact content of each of these modules will likely be as diverse as are the applications. Many modules have multiple functions that can interface with multiple sensor interfaces. Yet other modules or expansion modules are often dedicated to a specific application such as a resistance temperature detector (RTD), sensor, or thermocouple sensor. In general, all modules have the same core functions: analog input, analog output, distributed control (e.g., a fieldbus), interface, digital input and outputs (I/Os), CPU, and power. We will examine each of these core functions in turn, and leave sensors and sensor interfaces for a separate section.
Simplified PLC block diagram. For a list of Maxim's recommended PLC solutions, please go to: www.maximintegrated.com/plc.
|DS28E01-100||1Kb Protected 1-Wire EEPROM with SHA-1 Engine||Free Samples|
|DS8500||HART Modem||Free Samples|
|MAX1300||8- and 4-Channel, ±3 x VREF Multirange Inputs, Serial 16-Bit ADCs||Free Samples|
|MAX1301||8- and 4-Channel, ±3 x VREF Multirange Inputs, Serial 16-Bit ADCs||Free Samples|
|MAX1302||8-Channel, ±VREF Multirange Inputs, Serial 16-Bit ADC||Free Samples|
|MAX1303||4-Channel, ±VREF Multirange Inputs, Serial 16-Bit ADC||Free Samples|
|MAX13430E||RS-485 Transceivers with Low-Voltage Logic Interface||Free Samples|
|MAX13433E||RS-485 Transceivers with Low-Voltage Logic Interface||Free Samples|
|MAX13442E||±15kV ESD-Protected, ±80V Fault-Protected, Fail-Safe RS-485/J1708 Transceivers||Free Samples|
|MAX13443E||±15kV ESD-Protected, ±80V Fault-Protected, Fail-Safe RS-485/J1708 Transceivers||Free Samples|
|MAX13448E||±80V Fault-Protected, Full-Duplex RS-485 Transceiver||Free Samples|
|MAX13450E||RS-485 Transceivers with Integrated 100Ω/120Ω Termination Resistors||Free Samples|
|MAX13451E||RS-485 Transceivers with Integrated 100Ω/120Ω Termination Resistors||Free Samples|
|MAX13485E||Half-Duplex RS-485/RS-422 Transceivers in µDFN||Free Samples|
|MAX13486E||Half-Duplex RS-485/RS-422 Transceivers in µDFN||Free Samples|
|MAX14752||8-Channel/Dual 4-Channel 72V Analog Multiplexers||Free Samples|
|MAX14753||8-Channel/Dual 4-Channel 72V Analog Multiplexers||Free Samples|
|MAX14770E||±35kV High-ESD PROFIBUS RS-485 Transceiver||Free Samples|
|MAX14824||IO-Link Master Transceiver||Free Samples|
|MAX14830||Quad Serial UART with 128-Word FIFOs|
|MAX15046||40V, High-Performance, Synchronous Buck Controller||Free Samples|
|MAX15048||Triple-Output Buck Controllers with Tracking/Sequencing||Free Samples|
|MAX15049||Triple-Output Buck Controllers with Tracking/Sequencing||Free Samples|
|MAX15500||Industrial Analog Current/Voltage Output Conditioners||Free Samples|
|MAX15501||Industrial Analog Current/Voltage Output Conditioners||Free Samples|
|MAX256||3W Primary-Side Transformer H-Bridge Driver for Isolated Supplies||Free Samples|
|MAX3107||SPI/I²C UART with 128-Word FIFOs||Free Samples|
|MAX3440E||±15kV ESD-Protected, ±60V Fault-Protected, 10Mbps, Fail-Safe RS-485/J1708 Transceivers||Free Samples|
|MAX3444E||±15kV ESD-Protected, ±60V Fault-Protected, 10Mbps, Fail-Safe RS-485/J1708 Transceivers||Free Samples|
|MAX3535E||+3V to +5V, 2500VRMS Isolated RS-485/RS-422 Transceivers with ±15kV ESD Protection||Free Samples|
|MAX4238||Ultra-Low Offset/Drift, Low-Noise, Precision SOT23 Amplifiers||Free Samples|
|MAX4239||Ultra-Low Offset/Drift, Low-Noise, Precision SOT23 Amplifiers||Free Samples|
|MAX5033||500mA, 76V, High-Efficiency, MAXPower Step-Down DC-DC Converter||Free Samples|
|MAX5035||1A, 76V, High-Efficiency MAXPower Step-Down DC-DC Converter||Free Samples|
|MAX5069||High-Frequency, Current-Mode PWM Controller with Accurate Oscillator and Dual FET Drivers||Free Samples|
|MAX5079||ORing MOSFET Controller with Ultra-Fast 200ns Turn-Off||Free Samples|
|MAX5080||1A, 40V, MAXPower Step-Down DC-DC Converters||Free Samples|
|MAX5081||1A, 40V, MAXPower Step-Down DC-DC Converters||Free Samples|
|MAX5134||Pin-/Software-Compatible, 16-/12-Bit, Voltage-Output DACs||Free Samples|
|MAX5135||Pin-/Software-Compatible, 16-/12-Bit, Voltage-Output DACs||Free Samples|
|MAX5136||Pin-/Software-Compatible, 16-/12-Bit, Voltage-Output DACs||Free Samples|
|MAX5137||Pin-/Software-Compatible, 16-/12-Bit, Voltage-Output DACs||Free Samples|
|MAX5167||32-Channel Sample/Hold Amplifier with Output Clamping Diodes|
|MAX5490||100kΩ Precision-Matched Resistor-Divider in SOT23||Free Samples|
|MAX5491||Precision-Matched Resistor-Divider in SOT23||Free Samples|
|MAX5492||10kΩ Precision-Matched Resistor-Divider in SOT23||Free Samples|
|MAX5661||Single 16-Bit DAC with Current and Voltage Outputs for Industrial Analog Output Modules||Free Samples|
|MAX9939||SPI-Programmable Gain Amplifier (PGA) with Input VOS Trim and Output Op Amp||Free Samples|
|MAX9943||High-Voltage, Precision, Low-Power Op Amps||Free Samples|
|MAX9944||High-Voltage, Precision, Low-Power Op Amps||Free Samples|
|MAXQ1850||DeepCover Secure Microcontroller with Rapid Zeroization Technology and Cryptography||Free Samples|
|EE-Mail||Subscribe to EE-Mail and receive automatic notice of new documents in your areas of interest.|
|Download||Download, PDF Format (123kB)|
|© May 10, 2010, Maxim Integrated Products, Inc.|
APP 4701: May 10, 2010
TUTORIAL 4701, AN4701, AN 4701, APP4701, Appnote4701, Appnote 4701