PLC Programming • Allen-Bradley

Allen-Bradley PLC Programming:
Complete Guide
for Oil & Gas (2026)

Merobix Engineering • May 5, 2026 • 14 min read

Allen-Bradley PLCs from Rockwell Automation are widely used programmable logic controllers in North American oil and gas operations. This guide covers everything from hardware selection and programming software to ladder logic fundamentals, SCADA integration, and real-world applications across wellhead automation, compressor control, and pipeline monitoring.

Back to Blog

What Is Allen-Bradley PLC?

Allen-Bradley is the industrial automation brand of Rockwell Automation, a Milwaukee-based company that has been manufacturing industrial control systems since 1903. Today, Rockwell Automation is one of the largest U.S.-headquartered industrial automation companies, and Allen-Bradley PLCs are widely used across North American manufacturing, oil and gas, water treatment, and mining operations.

In oil and gas specifically, Allen-Bradley PLCs are found on well pads, compressor stations, gas processing facilities, pipeline pump stations, and offshore platforms across the Permian Basin, Eagle Ford, Bakken, and virtually every other producing region in the United States. When a Texas operator says "we run Allen-Bradley," they almost certainly mean ControlLogix or CompactLogix - the two flagship product lines.

ControlLogix vs CompactLogix vs MicroLogix

Rockwell offers several Allen-Bradley PLC families, each suited to different application sizes:

1903 Rockwell Automation founded

Allen-Bradley Programming Software

The software you need depends on which Allen-Bradley PLC family you are programming. Using the wrong software version is one of the most common issues new users encounter.

Studio 5000 Logix Designer (Current Standard)

Studio 5000 is the current programming environment for all ControlLogix and CompactLogix PLCs. It replaced RSLogix 5000 as the product name while maintaining backward compatibility. Studio 5000 includes Logix Designer (the PLC programming application), View Designer (for PanelView HMI terminals), and Motion Analyzer. A software subscription runs approximately $2,000–$5,000 per seat per year. It is Windows-only and requires activation through Rockwell's licensing and activation service.

RSLogix 5000 (Legacy Name, Same Software)

RSLogix 5000 is the predecessor product name to Studio 5000 - they are functionally the same software. If you open an older project file or find documentation referencing RSLogix 5000, it will open in Studio 5000 without modification. Rockwell rebranded the product to Studio 5000 around version 21. For oil and gas operators with legacy programs, your existing RSLogix 5000 projects import directly into current Studio 5000 versions.

RSLogix 500 (For MicroLogix and SLC 500)

RSLogix 500 is a separate product used to program MicroLogix 1000/1100/1400 and SLC 500 PLCs. These are older platforms still found on legacy wellhead controllers across the Permian. RSLogix 500 uses a different instruction set and file-based (not tag-based) addressing. If you are working on a legacy RSLogix 500 program, you cannot open it in Studio 5000.

Connected Components Workbench (Micro800)

CCW is Rockwell's free programming environment for Micro800 series PLCs (Micro820, Micro830, Micro850). It is a simplified version of Studio 5000 with less capability but no licensing cost. Useful for low-cost monitoring applications where Modbus communication is sufficient.

Ladder Logic Basics for Oil & Gas

Ladder logic is the primary programming language for Allen-Bradley PLCs and represents the vast majority of oil and gas control programs. The name comes from the visual resemblance to a ladder - two vertical rails (representing power) with horizontal rungs between them representing logic conditions. For more detail on ladder logic fundamentals, see our complete ladder logic guide.

Contacts and Coils

The two most fundamental elements of ladder logic are contacts (inputs) and coils (outputs):

Timers and Counters

Allen-Bradley ladder logic includes built-in timer and counter instructions widely used in oil and gas control:

Real-World Oil and Gas Ladder Logic Examples

High Pressure Shutdown (HIPPS): A classic wellhead safety rung checks a pressure transmitter analog value against a high-high setpoint. When the PT value exceeds the setpoint, an XIC contact on the comparison output energizes an OTE coil that triggers the emergency shutdown valve. A latching rung requires operator reset before the well can restart.

Low Level Alarm: Tank level monitoring uses a comparison instruction (LES - Less Than) comparing the tank level tag against a low-low setpoint. When the level drops below the threshold, the LES output energizes an alarm coil and starts a timer to delay the shutdown output, avoiding nuisance trips from wave action.

Motor Start/Stop Sequence: A motor sequence typically uses OTL (latch) on the start pushbutton input, OTU (unlatch) on the stop or fault conditions, and an interlock rung that checks all permissives (motor overload, bearing temperature, lubrication pressure) before allowing the OTL instruction to execute. The permissive chain pattern is foundational to Allen-Bradley compressor control programs.

Connecting Allen-Bradley to SCADA

Integrating Allen-Bradley PLCs with SCADA systems is a core skill for oil and gas automation engineers. Understanding the available protocols prevents costly misconfigurations. For a broader look at PLC-to-SCADA integration, see our PLC programming for oil and gas guide.

EtherNet/IP Protocol

EtherNet/IP is Rockwell's native industrial Ethernet protocol and the preferred connection method for ControlLogix and CompactLogix PLCs. It runs over standard TCP/IP networks and uses the Common Industrial Protocol (CIP) as its application layer. Most modern SCADA platforms have native EtherNet/IP drivers. Tag access via EtherNet/IP uses the PLC's tag name directly, making configuration straightforward.

Modbus TCP Conversion

Many cloud SCADA platforms and older SCADA systems use Modbus TCP rather than EtherNet/IP. Allen-Bradley CompactLogix and ControlLogix PLCs do not natively speak Modbus as a server - they require either a Prosoft module (MVI56E-MNETC) or an external Modbus gateway device. Alternatively, the MSG (Message) instruction in the PLC ladder logic can be configured to write data to a Modbus slave register map, which the SCADA system then reads. Merobix cloud SCADA connects to Allen-Bradley PLCs via Modbus TCP through a local gateway device installed at the field site.

Tag Mapping Best Practices

When mapping Allen-Bradley tags to SCADA, use consistent naming conventions: prefix tags by asset (WELL_01, COMP_02), add descriptive suffixes (_PV for process variable, _SP for setpoint, _AL for alarm). Avoid mapping raw register addresses - always use descriptive tag names. Document every mapped tag in a tag register spreadsheet before beginning SCADA configuration.

Connecting to Cloud SCADA Like Merobix

Merobix connects to Allen-Bradley CompactLogix and ControlLogix PLCs through a local gateway device at each site. The gateway communicates with the PLC using Modbus TCP or EtherNet/IP, reads configured tags on a defined poll cycle (typically 1–5 seconds), and transmits data to the Merobix cloud over a cellular or Ethernet connection. Configuration takes less than an hour per site. See our PLC programming services page for integration options.

Common Allen-Bradley Applications in Oil & Gas

Wellhead Automation

CompactLogix PLCs are a widely used platform for wellhead automation in the Permian Basin and Eagle Ford. A typical wellhead program monitors tubing pressure, casing pressure, separator pressure, and flow rate, executes high-pressure and low-pressure shutdowns, controls the wellhead choke valve, and communicates production data to the SCADA system via Modbus or EtherNet/IP. Programs typically run 200–500 rungs of ladder logic for a standard oil well.

Compressor Control

Gas compressor automation is one of the most complex Allen-Bradley applications in oil and gas. A reciprocating compressor program manages suction and discharge pressure, inter-stage pressures, cylinder temperatures, vibration monitoring, lubrication oil pressure, coolant temperature, and anti-surge logic. ControlLogix is preferred for large multi-stage compressors due to its processing speed and I/O capacity. Programs often exceed 2,000 rungs with extensive function block logic for PID control loops.

Separator Control

Three-phase separator control programs manage oil, water, and gas interface levels using level transmitters and PID-controlled dump valves. Allen-Bradley PID instructions (PIDE in Studio 5000) are used for level control loops. The PIDE instruction supports auto-tuning and includes built-in anti-windup - important for separator dump valve control where valve position affects separator throughput directly.

Tank Level Monitoring

Tank battery systems use CompactLogix or MicroLogix PLCs to monitor oil tank levels via radar or float transmitters, control transfer pumps, and prevent tank overflows. Allen-Bradley analog input modules (1769-IF4) read 4–20mA signals from transmitters. Scaling instructions convert raw counts to engineering units (barrels). High-level alarms trigger SMS notifications through the connected SCADA system.

Pipeline Pressure Control

Pipeline monitoring applications use ControlLogix PLCs at mainline block valve stations and pump/compressor stations. Programs monitor pipeline pressure upstream and downstream of valves, execute emergency block valve closures on over-pressure events, and report pressure data to SCADA via DNP3 or EtherNet/IP for pipeline leak detection algorithms.

Allen-Bradley PLC Programming Costs

Cost Component Typical Range Notes
Studio 5000 License $2,000 – $5,000/yr Per seat, subscription-based
CompactLogix Hardware $2,000 – $6,000 CPU + I/O modules for wellhead
ControlLogix Hardware $8,000 – $25,000+ Rack + CPU + I/O for compressor
Engineering Labor $150 – $250/hr Experienced controls integrators
Typical Wellhead Program $5,000 – $20,000 Programming + commissioning
Full Installation (panel + PLC + SCADA) $20,000 – $75,000 Includes fabrication and field work

Cloud SCADA reduces total cost: By connecting your existing Allen-Bradley PLC to a cloud SCADA platform like Merobix, operators avoid the cost of a separate SCADA server, HMI software licensing ($10,000–$50,000), and ongoing IT maintenance. Merobix integrates directly with your CompactLogix or ControlLogix PLC via a plug-and-play gateway device - no changes to the PLC program required.

Frequently Asked Questions

What software do I need for Allen-Bradley PLC programming?

For modern Allen-Bradley PLCs (ControlLogix, CompactLogix), you need Studio 5000 Logix Designer from Rockwell Automation. For older MicroLogix and SLC 500 PLCs, RSLogix 500 is used. For Micro800 series PLCs, Connected Components Workbench (CCW) is the free programming environment. Studio 5000 requires a software subscription license from Rockwell Automation, typically $2,000–$5,000 per seat per year.

How do I connect Allen-Bradley PLC to SCADA?

Allen-Bradley PLCs connect to SCADA systems primarily via EtherNet/IP, Rockwell's native Ethernet protocol. Most modern SCADA platforms support EtherNet/IP natively. Alternatively, you can use a Modbus TCP gateway to convert EtherNet/IP to Modbus, which nearly every SCADA platform supports. Cloud SCADA platforms like Merobix connect to Allen-Bradley PLCs through a local gateway device requiring minimal configuration.

What is the difference between ControlLogix and CompactLogix?

ControlLogix is Rockwell's high-end modular PLC platform designed for large applications with high I/O counts, redundancy, and safety requirements. CompactLogix is a more compact, cost-effective platform for mid-size applications. Both use the same Studio 5000 programming software and share the same instruction set. For most wellhead and compressor applications, CompactLogix provides sufficient capability at lower cost.

How much does Allen-Bradley PLC programming cost?

Allen-Bradley PLC programming costs depend on project scope. Studio 5000 software licensing runs $2,000–$5,000 per seat annually. Hardware for a CompactLogix system starts at $2,000–$6,000. Engineering labor typically runs $150–$250/hr. A complete wellhead automation program including commissioning runs $5,000–$20,000. Full installations with panel fabrication and SCADA integration typically run $20,000–$75,000.

More in the Merobix Automation Fundamentals.

Electrical & field-work safety. The steps below can involve working on or near industrial control equipment that may be energized and located in classified (hazardous) areas. This work must be carried out only by qualified personnel and requires site-specific engineering and hazard analysis. Before wiring, tapping a serial or Ethernet port, or opening a panel: de-energize and apply lockout/tagout, verify absence of voltage, account for stored energy, and wear appropriate arc-flash PPE in accordance with NFPA 70E and your site electrical-safety program. Confirm the area classification and use wiring methods listed for hazardous (classified) locations. Always follow the equipment manufacturer manual and your facility written procedures, which take precedence over this general educational guidance.

Sources and verification

This page references the standards, specifications, and official documentation published by the organizations below. Editions, product capabilities, and documentation change over time - confirm current requirements and specifications directly with the source.

Merobix is not affiliated with, endorsed by, or sponsored by these organizations; their names are used only to identify the standards and products discussed.

Free SCADA operator training
Merobix University - 70 video lessons & 261 quiz questions, from first login to compliance reporting. No demo call required.
Start free →