PLC 6 chapter notes
PLC 6 chapter notes
PLC 6 chapter notes
• The PLC system's power supply is designed to withstand normal line voltage
fluctuations and continue operating within its specified range.
• If voltage fluctuations exceed the operating range, a system shutdown may occur to
prevent damage.
• Constant Voltage (CV) Transformer: In areas prone to excessive voltage variation
or brownouts, a CV transformer may be required to prevent PLC shutdowns.
Isolation Transformers:
• Purpose: These transformers isolate the PLC from electrical disturbances caused by
other equipment connected to the power distribution system.
• Isolation transformers are often used to place the PLC power supply and I/O devices
on a separate transformer, which can also serve as a step-down transformer for
reducing incoming voltage.
• The MOV is a popular surge protection device and works similarly to two zener
diodes connected back-to-back.
• Operation (Refer to Fig. 13-13):
o The MOV acts as an open circuit until the voltage across it exceeds its rated
value.
o Once the voltage surpasses the threshold, the MOV becomes a short circuit,
redirecting the excess voltage away from sensitive components, protecting the
circuit from surges.
Program Editing in PLC:
Editing a PLC program refers to making changes to an existing ladder logic program. This
can involve adding or removing instructions, modifying rung elements, or updating
addresses. Most modern PLC programming environments are user-friendly and based on
graphical interfaces (e.g., Microsoft Windows), which simplifies the editing process.
Editing Process:
Example Scenario:
Commissioning
Commissioning is the process of testing and verifying that a PLC system, including the
hardware, ladder logic program, and I/O devices (inputs and outputs), functions as intended
before putting it into full operation. This process ensures that the system is safe, reliable, and
ready to control the equipment it’s designed for.
1. Programming a PLC
When programming a PLC, you generally use a personal computer with specialized
programming software provided by the PLC manufacturer. This software allows you to:
Programming Modes:
• Offline Programming:
o In this mode, you write and edit the program on your computer without being
connected to the PLC.
o Once the program is ready, you can download it to the PLC later.
o This is a safer way to program because changes don't affect the running
system until explicitly uploaded to the PLC.
• Online Programming:
o In this mode, you are directly connected to the PLC, and any changes you
make are immediately implemented.
o You can modify, test, and either accept or reject changes while the PLC is
running.
o While convenient, online programming requires caution because changes take
effect immediately and can affect the process being controlled.
o It is generally advised to use online programming only if you fully understand
the system and the effects of your changes.
Test Modes:
2. Monitoring Tools:
Monitoring is critical for observing how the PLC operates, detecting issues, and making
adjustments. Most PLC programming environments offer two key tools for monitoring: Data
Monitor and Cross Reference.
Data Monitor:
The data monitor feature allows you to observe and manipulate real-time data from the
program. It can be used to:
• View data values within specific instructions (such as timer values or counter
positions).
• Set or reset values for debugging purposes (e.g., force an input or output bit on/off).
• Change the data format (such as converting between binary, decimal, or
hexadecimal).
• Monitor and modify specific variables during testing and debugging.
For example, in the Allen-Bradley SLC 500 and RSLogix software, you can monitor data
like the status of I/O files, timers, counters, and other system variables. Changes made
through the data monitor can affect the operation of the system, so use this feature cautiously.
The cross reference function helps you locate where a specific address or data point is used
throughout the program. It provides a report that includes:
Contact Histogram:
The contact histogram function allows you to track the on/off states of data table values over
time. It records:
This tool is particularly useful for detecting intermittent problems, either in hardware or
program logic. For instance, if a sensor is failing intermittently, the histogram will show the
exact moments it fails, making it easier to diagnose.
• Uploading: When you upload a program, you copy it from the PLC to the
programming device (your computer). This is useful for backing up the program
currently running on the PLC.
• Downloading: When you download a program, you transfer it from the programming
device to the PLC. This is how you load new or modified programs onto the PLC.
Preventive maintenance is crucial for minimizing system faults and ensuring reliable
operation of PLCs (Programmable Logic Controllers). While PLCs are designed to require
minimal maintenance, certain preventive measures help prolong their lifespan and prevent
costly downtime.
Start by identifying the problem and its potential source. The issue could stem from various
components, such as:
• Processor Module
• I/O Hardware
• Wiring
• Machine Inputs or Outputs
• Ladder Logic Program
The processor performs self-diagnostics and provides status information through indicators
(LEDs). You can also access more detailed diagnostics through the programming software.
Key indicators on the processor include:
Watchdog Timer: This function ensures that the CPU completes its scan within a set time. If
the CPU takes too long, a major error will be declared, signaling a processor issue.
3. Input Malfunctions
If the PLC is in RUN mode but outputs are not functioning as expected, the issue may lie
with:
• Input/output wiring
• Field devices or their power supplies
• Input sensors and output actuators
• PLC I/O modules
• Processor
1. Check the Input Module's Status Indicator: If it doesn't illuminate when the input
device (e.g., a pushbutton or sensor) is activated, check the voltage across the input
terminal.
2. Measure the Voltage: If correct voltage is present but the status indicator remains
off, the input module may be faulty and needs replacement.
3. Verify Input Module Conversion: If the status indicator illuminates but the
programming monitor shows incorrect logic status, the input module may not be
converting signals correctly.
If replacing the input module does not resolve the issue, the problem may lie in the wiring,
I/O rack, communication cable, or processor.
4. Output Malfunctions
Output malfunctions may be related to blown fuses, faulty modules, or wiring issues. Most
output modules include a blown fuse indicator and a power indicator:
• Blown Fuse Indicator: Shows when the protective fuse in the output circuit has
blown.
• Power Indicator: Confirms that power is applied to the load.
1. Check the Blown Fuse Indicator: If illuminated, replace the fuse and fix the cause
of the malfunction.
2. Verify Output Status Indicator: If the logic status indicator is on but the output
device isn’t responding, inspect the wiring and the output device itself.
3. Check Voltage: If the programming device monitor shows the output is commanded
to turn on but the status indicator is off, the output module or processor could be
faulty.
• Programming Software: Modern PLCs allow you to monitor the system in real-time,
providing tools such as data monitors, cross-reference functions, and fault logs to help
trace errors.
• Data Monitor: Displays the real-time status of variables, instructions, and data
values, making it easier to locate faults.
• Cross-Reference Function: Helps identify all instances where a specific address is
used in the program, making it easier to trace and debug specific components.
While the ladder logic program itself is generally reliable, it can sometimes fail due to
programming errors or unexpected process states. Many software tools, like RSLogix 500,
offer verification features to check for program errors before deployment.
Key Steps for Troubleshooting Ladder Logic Programs:
• Address Conflicts: One common issue is assigning the same address to multiple coil
instructions. This creates conflicting commands, where later instructions override
earlier ones, causing malfunctioning outputs.
o Example: If two rungs are controlling the same output (O:2/1), but one rung is
false, it will prevent the output from energizing even if an earlier rung sets the
condition to true.
Input Troubleshooting Guide: