162
SECTION
2
Components
and Systems
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
6
The Discrete
Input/Output System
SOLUTION
The contents of register 4000 in BCD will be the BCD code equivalent
of the first set of thumbwheel switches connected to the PLC register
input module, and likewise for registers 4001, 4002, and 4003. Figure
6-31 shows the register contents. Note that the contents of each
register does not represent the decimal equivalent of the binary
pattern stored in that location, but rather the BCD equivalent. To
change this number to decimal, you must convert the BCD pattern to
its decimal equivalent using other instructions. For instance, the
decimal equivalent of the binary (BCD) pattern stored in register 4000
is 13,699, not 3,583, as the TWS (BCD number) indicates.
Figure 6-31. Register contents for Example 6-2.
0011010110000011
0010010101111000
0011100000010000
0100100100010111
4000
Word or
Register
4001
4002
4003
3583
2578
3810
4917
Value of 1st Set
Value of 2nd Set
Value of 3rd Set
Value of 4th Set
Contents
in BCD
Storage Table
6-6 PLC INSTRUCTIONS FOR DISCRETE OUTPUTS
Like discrete input interfaces, discrete output interfaces are the most
commonly used type of PLC output modules. These outputs connect the
programmable controller with discrete output field devices. Many single-bit
and multibit instructions are designed to manipulate discrete outputs.
During this discussion of output modules, keep in mind the relationship
between output interface signals (ON/OFF), rack and module locations
(where the output modules are inserted), and I/O table maps and addresses
(used in the control program). Figure 6-32 illustrates a simplified 8-bit output
image table. The coil of the motor starter (M1) is connected to a discrete
output module (slot 7) in rack 0, which can connect 8 field inputs (0–7). Note
that the starter will be known as output 077, which stands for rack 0, slot 7,
terminal connection 7.
Output interface circuitry switches the supplied voltage from the PLC ON or
OFF according to the status of the corresponding bit in the output image table.
This status (1 or 0) is set during the execution of the control program and is
sent to the output module at the end of scan (output update). If the signal
from the processor is 1, the output module will switch the supplied voltage