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 adiscrete 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.
Analog I/O
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, orAnalog-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)
Example 1:
Lighting control system :
A lighting control system is to be developed. The system will be controlled by four switches,
SWITCH1, SWITCH2, SWITCH3, and SWITCH4. These switches will control the lighting in a room
based on the following criteria:
1. Any of three of the switches SWITCH1, SWITCH2, and SWITCH3, if turned ON can turn the
lighting on, but all three switches must be OFF before the lighting will turn OFF.