PLC Hardware Components
PLC Hardware Components
Frank D. Petruzella
The I/O Section
The input/output (I/O) section of a PLC is the section to which all fi eld
devices are connected and provides the interface between them and the CPU.
Input/output arrangements are built into a fi xed PLC while modular types use
external I/O modules that plug into the PLC.
https://www.youtube.com/watch?v=0_b0S_UL0u4
• The time it takes to complete a scan cycle is called the scan
cycle time and indicates how fast the controller can react to
changes in inputs. The time required to make a single scan can
vary from about 1 millisecond to 20 milliseconds. If a
controller has to react to an input signal that changes states
twice during the scan time, it is possible that the PLC will
never be able to detect this change.
• For example, if it takes 8 ms for the CPU to scan a program,
and an input contact is opening and closing every 4 ms, the
program may not respond to the contact changing state. The
CPU will detect a change if it occurs during the update of the
input image table file, but the CPU will not respond to every
change. The scan time is a function of the following:
• The speed of the processor module
• The length of the ladder program
• The type of instructions executed
• The actual ladder true/false conditions
Figure 5-8 shows an overview of the data flow during the scan
process. For each rung executed, the PLC processor will:
• Examine the status of the input image table bits.
•Solve the ladder logic in order to determine logical
continuityUpdate the appropriate output image table bits, if
necessary.
•Copy the output image table status to all of the output
terminals. Power is applied to the output device if the output
image table bit has been previously set to a 1.
• Copy the status of all of the input terminals to the input image
table. If an input is active (i.e., there is electrical continuity), the
corresponding bit in the input image table will be set to a 1.
Overview of the data flow during the scan
process.
Figure Scan process applied to a single rung program.
Figure illustrates the scan process applied to a simple single rung program.
The operation of the scan process can be summarized as follows:
• If the input device connected to address I:3/6 is closed, the input module
circuitry senses electrical continuity and a 1 (ON) condition is entered into the
input image table bit I:3/6. During the program scan, the processor examines
bit I:3/6 for a 1 (ON) condition.
• In this case, because input I:3/6 is 1, the rung is said to be TRUE or have
logic continuity.
• The processor then sets the output image table bit O:4/7 to 1.
• The processor turns on output O:4/7 during the next I/O scan, and the
output device (light) wired to this terminal becomes energized.
• This process is repeated as long as the processor is in the RUN mode.
• If the input device opens, electrical continuity is lost, and a 0 would be
placed in the input image table. As a result, the rung is said to be FALSE due
to loss of logic continuity.
• The processor would then set the output image table bit O:4/7 to 0, causing
the output device to turn off.
There are two basic scan patterns that different PLC
manufacturers use to accomplish the scan function
Allen-Bradley PLCs use the horizontal scan by rung method. In
this system, the processor examines input and output
instructions from the fi rst command, top left in the program,
horizontally, rung by rung.
• Modicon PLCs use the vertical scan by column method. In this
system, the processor examines input and output instructions
from the top left command entered in the ladder diagram,
vertically, column by column and page by page.
Figure Scanning can be vertical or horizontal.
https://www.youtube.com/watch?v=0_b0S_UL0u4
END