Ladder Logic is the core programming language for Allen-Bradley PLCs. This guide provides practical examples for CompactLogix and ControlLogix controllers to help engineers implement real-world automation solutions.
If you are new to Allen-Bradley PLCs, check our PLC guide for basics.
Example 1: Start/Stop Motor Control
This classic example demonstrates a basic motor control circuit with start and stop pushbuttons.

The ladder diagram above shows how to control a motor with interlocking to prevent simultaneous start/stop conflicts.
Example 2: Conveyor Belt Sequencing
This example illustrates controlling a conveyor system with multiple sensors and actuators.

Each sensor triggers corresponding actions in the ladder logic, ensuring smooth operation of the conveyor system.
Example 3: Timer & Counter Operations
Timers and counters are essential in process automation. This example shows how to use TON, TOF, and CTU instructions.

Using timers and counters correctly ensures accurate process timing and event counting.
Tips for Efficient Ladder Programming
- Always comment your rungs clearly.
- Use descriptive tag names.
- Test each rung individually before full program download.
- Follow Allen-Bradley best practices for CompactLogix and ControlLogix.
See How to Configure EtherNet/IP on Allen-Bradley PLC
Recommended Modules
Need Guide to Module Selection, please see:
Allen-Bradley PLC Modules (Selection Guide)
For real implementation, select the appropriate PLC modules:
- ControlLogix Controllers
- CompactLogix Controllers
- Ethernet Communication Modules (1756-EN2T / 1768-ENBT)
Browse our Allen-Bradley PLC modules for available stock.
Need PLC Modules for Your Project?
We supply original Allen-Bradley PLC modules compatible with CompactLogix and ControlLogix systems.
Conclusion
These ladder logic examples provide a practical starting point for engineers working with Allen-Bradley PLCs. Combine these examples with proper module selection and configuration to build robust industrial automation systems.
Need Help Implementing Ladder Logic?
Contact our engineers for technical guidance, programming support, and module recommendations.