Categories: Other

Beginner’s Guide to Programming an Allen-Bradley PLC

Allen-Bradley Programmable Logic Controllers (or PLC) remain widely used in industrial automation. Programming their PLCs opens a multitude of opportunities for those willing to learn how to do so. Learning to program them requires understanding both the hardware and the programming software, typically Rockwell Automation’s RSLogix 500 or Studio 5000 (for ControlLogix or CompactLogix PLCs).

Read more: Beginner’s Guide to Programming an Allen-Bradley PLC

Understanding the PLC

The first step to programming a PLC is understanding what the heck a PLC even is. This article gives a more in-depth explanation into understanding PLC’s. The basic rundown is that a PLC is basically a computer used to control machines and processes. It accomplishes this using inputs like sensors, and outputs such as actuators. While these systems use a variety of components there are definitely fundamental ones that are universally found across multiple systems. The components are crucial to system operation.

PLC System Components

  1. Processor/CPU: Executes the program logic.
  2. I/O Modules: Interface for sensors and actuators.
  3. Power Supply: Powers the PLC.
  4. Communication Port: Connects to programming devices or networks.

Installing the Required Software

  1. Get the Software:
    • For MicroLogix series, use RSLogix 500.
    • For CompactLogix/ControlLogix, use Studio 5000 Logix Designer.
  2. Install RSLinx:
    RSLinx is the communication software needed to connect your PC to the PLC.
  3. Licensing: Make sure you have a valid software license. If you need the software package for a one off job, Allen-Bradly offers free trial versions for many of their software packages.

Connecting the PLC

  1. Hardware Setup:
    • Connect your PC to the PLC using USB, Ethernet, or Serial (depending on the model).
    • Ensure proper power is supplied to the PLC.
  2. Communication Setup in RSLinx:
    • Open RSLinx and configure a communication driver (e.g., Ethernet/IP, RS232).
    • Test communication to ensure the PC recognizes the PLC.

Create a New Project

  1. Open the Programming Software:
    • In RSLogix 500 or Studio 5000, create a new project.
  2. Select Model:
    • Choose the correct processor type (e.g., MicroLogix 1400, CompactLogix L33ER).
  3. Configure I/O:
    • Define the input and output modules in the program, ensuring they match the physical hardware.

Learn Ladder Logic

  1. What is Ladder Logic?
    Ladder Logic is the primary programming language for PLCs. It mimics electrical relay logic with “rungs.”
  2. Basic Elements of Ladder Logic:
    • Inputs: Represented by normally open (NO) or normally closed (NC) contacts.
    • Outputs: Represented by coils or actuators.
    • Timers/Counters: For delay or counting applications.
    • Branching: For parallel operations.

Write an Easy Program

Once you go over the basics of PLC programming, take a crack and writing your own program! One example of a simple programming project is creating a function that toggles a motor START and STOP.


Conclusion

Understanding how to program Allen-Bradley PLCs seems intimidating. However, the opportunities and advancements that come with learning how to program PLCs makes the struggle worth it.


Having PLC Issues?

Our team of qualified experts are ready to assist you with your PLC needs. Reach out today either by phone: (800) 691-8511 or email: sales@mroelectric.com.

Ken Cheng

Share
Published by
Ken Cheng

Recent Posts

The Most Popular U.S. College Mascots

The game is almost over, and your team is losing. You can feel the crowd’s…

2 weeks ago

Every State’s Favorite OREO

Whether you’re loyal to the classic, double stuf, or thin OREOs, the addicting cookies always…

3 weeks ago

Legal and Safety Requirements Regarding Arc Flashes

Arc flash incidents are among the most dangerous hazards in the electrical industry, posing serious…

1 month ago

Understanding an Arc Flash

Understanding an Arc Flash An arc flash stand as one of the most dangerous electrical…

2 months ago

Distributed Control System (DCS) Explained

A Distributed Control System (DCS) is a type of automated industrial control system (ICS) used…

2 months ago

The Effects of Dirty Power on Electronics

The Effects of Dirty Power In today's tech-driven world, many of our most valuable devices…

2 months ago