Learn PLCs free
Intermediate15 min readWater & Wastewater

Bosch Rexroth Ladder Logic for Pump Control

Learn Ladder Logic programming for Pump Control using Bosch Rexroth ctrlX WORKS / IndraWorks. Includes code examples, best practices, and step-by-step implementation guide for Water & Wastewater applications.

💻
Platform
ctrlX WORKS / IndraWorks
📊
Complexity
Intermediate
⏱️
Project Duration
2-4 weeks

Troubleshooting Ladder Logic programs for Pump Control in Bosch Rexroth's ctrlX WORKS / IndraWorks benefits from a systematic diagnostic process and a clear understanding of likely failure modes. This guide provides a repeatable path from observed symptom to evidence, hypothesis, controlled test, and documented correction.

Start by recording the controller model, firmware, ctrlX WORKS / IndraWorks version, task state, active faults, I/O status, and the exact conditions that reproduce the problem. Preserve the original project and collect diagnostic evidence before changing logic.

Common challenges in Pump Control systems include pressure regulation, pump sequencing, and energy optimization. When implemented with Ladder Logic, additional considerations include can become complex for large programs, requiring specific diagnostic approaches. Bosch Rexroth's diagnostic tools in ctrlX WORKS / IndraWorks provide powerful capabilities, but knowing exactly which tools to use for specific symptoms dramatically improves troubleshooting efficiency.

This guide walks through systematic troubleshooting procedures, from initial symptom analysis through root-cause verification and corrective-action testing. It explains how to use relevant ctrlX WORKS / IndraWorks diagnostic features and interpret system behavior in a Pump Control context without assuming that one symptom always has the same cause.

Bosch Rexroth ctrlX WORKS / IndraWorks for Pump Control

ctrlX WORKS / IndraWorks is a programming environment associated with Bosch Rexroth controller families such as ctrlX CORE XM21, ctrlX CORE XM22, ctrlX CORE XM42. This guide uses Ladder Logic terminology from the supplied guide dataset, but controller capabilities and language support can change by model, firmware, software edition, and license.

Verify Before You Start:

  • The selected controller supports the required Ladder Logic constructs

  • The project version matches the installed ctrlX WORKS / IndraWorks release

  • Required communications, motion, safety, and simulation options are licensed

  • Firmware and device-description files are compatible with the project

  • The vendor manuals used for the design match the exact hardware revision


Application Planning:

For a Pump Control exercise, map the required inputs and outputs before writing logic. The example considers 5 sensor types, including Pressure transmitters, Flow meters, Level sensors, and 5 actuator types.

Control Equipment for Pump Control:

  • Centrifugal pumps for high flow applications

  • Positive displacement pumps for metering

  • Submersible pumps for wet well applications

  • Booster pump systems for pressure maintenance


Controller-family references used in this guide include:

  • ctrlX CORE XM21: Confirm CPU, I/O, memory, communications, and Ladder Logic support in the current selection guide

  • ctrlX CORE XM22: Confirm CPU, I/O, memory, communications, and Ladder Logic support in the current selection guide

  • ctrlX CORE XM42: Confirm CPU, I/O, memory, communications, and Ladder Logic support in the current selection guide

  • IndraControl XM21: Confirm CPU, I/O, memory, communications, and Ladder Logic support in the current selection guide


Hardware Selection Checklist:

  • Count local and remote I/O, including planned expansion

  • Measure the required task and communications update rates

  • Identify memory, data-retention, diagnostics, and cybersecurity requirements

  • Treat safety functions as a separate, standards-led design activity

  • Confirm lifecycle status, regional availability, licensing, and support


Source and Validation Note:

This page does not represent a vendor certification or a hardware acceptance test. Use current Bosch Rexroth manuals, release notes, and safety documentation as the authority for product-specific behavior. Validate adapted logic in a simulator or isolated test setup before connecting it to equipment.

Investment Considerations:

For Pump Control projects, compare hardware, software licensing, training, engineering, test equipment, commissioning, spares, and ongoing support. Obtain current pricing and lifecycle information directly from the vendor or an authorized regional supplier.

Understanding Ladder Logic for Pump Control

Ladder Logic (LAD) is a graphical programming language that represents control circuits as rungs on a ladder. It was designed to mimic the appearance of relay logic diagrams, making it intuitive for electricians and maintenance technicians familiar with hardwired control systems.

Execution Model:

Programs execute from left to right, top to bottom. Each rung is evaluated during the PLC scan cycle, with input conditions on the left determining whether output coils on the right are energized.

Core Advantages for Pump Control:

  • Highly visual and intuitive: Critical for Pump Control when handling intermediate control logic

  • Easy to troubleshoot: Critical for Pump Control when handling intermediate control logic

  • Industry standard: Critical for Pump Control when handling intermediate control logic

  • Minimal programming background required: Critical for Pump Control when handling intermediate control logic

  • Easy to read and understand: Critical for Pump Control when handling intermediate control logic


Why Ladder Logic Fits Pump Control:

Pump Control systems in Water & Wastewater typically involve:

  • Sensors: Pressure transmitters for discharge and suction pressure, Flow meters (magnetic, ultrasonic, or vortex), Level transmitters for tank or wet well level

  • Actuators: Variable frequency drives (VFDs) for speed control, Motor starters (DOL or soft start), Control valves for flow regulation

  • Complexity: Intermediate with challenges including Preventing cavitation at low suction pressure


Control Strategies for Pump Control:

  • constant: Maintain fixed speed or output

  • pressure: PID control to maintain discharge pressure setpoint

  • flow: PID control to maintain flow rate setpoint


Programming Fundamentals in Ladder Logic:

Contacts:
- xic: Examine If Closed (XIC) - Normally Open contact that passes power when the associated bit is TRUE/1
- xio: Examine If Open (XIO) - Normally Closed contact that passes power when the associated bit is FALSE/0
- risingEdge: One-Shot Rising (OSR) - Passes power for one scan when input transitions from FALSE to TRUE

Coils:
- ote: Output Energize (OTE) - Standard output coil, energized when rung conditions are true
- otl: Output Latch (OTL) - Latching coil that remains ON until explicitly unlatched
- otu: Output Unlatch (OTU) - Unlatch coil that turns off a latched output

Branches:
- parallel: OR logic - Multiple paths allow current flow if ANY path is complete
- series: AND logic - All contacts in series must be closed for current flow
- nested: Complex logic combining parallel and series branches

Best Practices for Ladder Logic:

  • Keep rungs simple - split complex logic into multiple rungs for clarity

  • Use descriptive tag names that indicate function (e.g., Motor_Forward_CMD not M001)

  • Place most restrictive conditions first (leftmost) for faster evaluation

  • Group related rungs together with comment headers

  • Use XIO contacts for safety interlocks at the start of output rungs


Common Mistakes to Avoid:

  • Using the same OTE coil in multiple rungs (causes unpredictable behavior)

  • Forgetting to include stop conditions in seal-in circuits

  • Not using one-shots for counter inputs, causing multiple counts per event

  • Placing outputs before all conditions are evaluated


Typical Applications:

1. Start/stop motor control: Directly applicable to Pump Control
2. Conveyor systems: Related control patterns
3. Assembly lines: Related control patterns
4. Traffic lights: Related control patterns

Understanding these fundamentals prepares you to implement effective Ladder Logic solutions for Pump Control using Bosch Rexroth ctrlX WORKS / IndraWorks.

Implementing Pump Control with Ladder Logic

Pump control systems use PLCs to regulate liquid flow in industrial processes, water treatment, and building services. These systems manage pump operation, protect equipment, optimize energy use, and maintain process parameters.

This walkthrough demonstrates practical implementation using Bosch Rexroth ctrlX WORKS / IndraWorks and Ladder Logic programming.

System Requirements:

A typical Pump Control implementation includes:

Input Devices (Sensors):
1. Pressure transmitters for discharge and suction pressure: Critical for monitoring system state
2. Flow meters (magnetic, ultrasonic, or vortex): Critical for monitoring system state
3. Level transmitters for tank or wet well level: Critical for monitoring system state
4. Temperature sensors for bearing and motor monitoring: Critical for monitoring system state
5. Vibration sensors for predictive maintenance: Critical for monitoring system state

Output Devices (Actuators):
1. Variable frequency drives (VFDs) for speed control: Primary control output
2. Motor starters (DOL or soft start): Supporting control function
3. Control valves for flow regulation: Supporting control function
4. Isolation valves (actuated for remote operation): Supporting control function
5. Check valves to prevent backflow: Supporting control function

Control Equipment:

  • Centrifugal pumps for high flow applications

  • Positive displacement pumps for metering

  • Submersible pumps for wet well applications

  • Booster pump systems for pressure maintenance


Control Strategies for Pump Control:

  • constant: Maintain fixed speed or output

  • pressure: PID control to maintain discharge pressure setpoint

  • flow: PID control to maintain flow rate setpoint

  • level: Control tank/wet well level within band


Implementation Steps:

Step 1: Characterize pump curve and system curve

In ctrlX WORKS / IndraWorks, characterize pump curve and system curve.

Step 2: Size VFD for application (constant torque vs. variable torque)

In ctrlX WORKS / IndraWorks, size vfd for application (constant torque vs. variable torque).

Step 3: Implement primary control loop (pressure, flow, or level)

In ctrlX WORKS / IndraWorks, implement primary control loop (pressure, flow, or level).

Step 4: Add pump protection logic (minimum flow, temperature, seal)

In ctrlX WORKS / IndraWorks, add pump protection logic (minimum flow, temperature, seal).

Step 5: Program lead/lag sequencing with alternation

In ctrlX WORKS / IndraWorks, program lead/lag sequencing with alternation.

Step 6: Implement soft start/stop ramps for smooth operation

In ctrlX WORKS / IndraWorks, implement soft start/stop ramps for smooth operation.


Bosch Rexroth Function Design:

Rexroth engineers lean heavily on reusable function blocks packaged as ctrlX libraries. The mapp-technology-equivalent SDK apps expose motion-profiled FBs, recipe-driven parameter handlers, and cockpit widgets as pre-built components. OEM machine builders maintain private app catalogues for their machine families, with versioned FBs that can be swapped between machine variants without rewiring upstream code. IEC 61131-3 OOP extensions (classes, interfaces, methods) are used in more advanced teams but are optional.

Common Challenges and Solutions:

1. Preventing cavitation at low suction pressure

  • Solution: Ladder Logic addresses this through Highly visual and intuitive.


2. Managing minimum flow requirements

  • Solution: Ladder Logic addresses this through Easy to troubleshoot.


3. Coordinating VFD speed with system pressure

  • Solution: Ladder Logic addresses this through Industry standard.


4. Handling pump cycling with varying demand

  • Solution: Ladder Logic addresses this through Minimal programming background required.


Safety Considerations:

  • Dry run protection using flow or level monitoring

  • Overtemperature protection for motor and bearings

  • Overload protection through current monitoring

  • Vibration trips for mechanical failure detection

  • Emergency stop with proper system depressurization


Performance Metrics:

  • Task and I/O timing: Record minimum, average, and maximum values under a defined test load

  • Accuracy: Define an acceptable tolerance and compare it with calibrated reference measurements

  • Throughput: Count completed cycles over a fixed interval and record rejected or incomplete cycles

  • Fault response: Measure detection, safe-state, alarm, and recovery behavior for each test case

  • Resource use: Record memory, communications load, and diagnostic-buffer behavior

Bosch Rexroth Diagnostic Tools:

ctrlX WORKS Trace tool — multi-variable waveform logging at up to 1 ms sample rate,Data Layer Explorer — browse every runtime variable in a hierarchical tree with live values,Web-based diagnostics interface — device-level health, CPU and memory utilisation,IndraWorks MotionManager — axis commissioning, tuning plots, and envelope monitoring,ctrlX I/O Engineer — field-bus topology view with per-slave diagnostic status,Integrated Git history for project files with visual diff between versions,Wireshark integration for EtherCAT and Profinet frame capture and analysis,Linux journalctl access on ctrlX CORE for controller-side system log inspection,REST API query tools (Postman, curl) for runtime variable inspection during development,SSH access to the ctrlX controller for deep diagnostics when support escalation is required

Use the monitoring and diagnostic functions available in your ctrlX WORKS / IndraWorks version, and record the software, firmware, hardware, workload, and test procedure with every result.

Bosch Rexroth Ladder Logic Example for Pump Control

Illustrative Ladder Logic example for Pump Control using Bosch Rexroth terminology. Adapt the syntax to your ctrlX WORKS / IndraWorks release, compile it, and verify it in an isolated test environment before use on equipment.

// Bosch Rexroth ctrlX WORKS / IndraWorks - Pump Control Control
// Ladder Logic Implementation
// Naming: Bosch Rexroth projects in ctrlX WORKS follow IEC 61131-3 nam...

NETWORK 1: Input Conditioning - Pressure transmitters for discharge and suction pressure
    |----[ Pressure_transm ]----[TON Timer_Debounce]----( Enable )
    |
    | Timer: On-Delay, PT: 500ms (debounce for Water & Wastewater environment)

NETWORK 2: Safety Interlock Chain - Emergency stop priority
    |----[ Enable ]----[ NOT E_Stop ]----[ Guards_OK ]----+----( Safe_To_Run )
    |                                                                          |
    |----[ Fault_Active ]------------------------------------------+----( Alarm_Horn )

NETWORK 3: Main Pump Control Control
    |----[ Safe_To_Run ]----[ Flow_meters ]----+----( Centrifugal_ )
    |                                                           |
    |----[ Manual_Override ]----------------------------+

NETWORK 4: Sequence Control - State machine
    |----[ Motor_Run ]----[CTU Cycle_Counter]----( Batch_Complete )
    |
    | Counter: PV := 50 (illustrative batch size; replace with a reviewed requirement)

NETWORK 5: Output Control with Feedback
    |----[ Centrifugal_ ]----[TON Feedback_Timer]----[ NOT Motor_Feedback ]----( Output_Fault )

Code Explanation:

  • 1.Network 1: Input conditioning with Bosch Rexroth-specific TON timer for debouncing in Water & Wastewater environments
  • 2.Network 2: Safety interlock chain ensuring Dry run protection using flow or level monitoring compliance
  • 3.Network 3: Main Pump Control control with manual override capability for maintenance
  • 4.Network 4: Production counting using Bosch Rexroth CTU counter for batch tracking
  • 5.Network 5: Output verification monitors actuator feedback - critical for intermediate applications
  • 6.Online monitoring: ctrlX WORKS provides full online monitoring with variable watch tables, trace wa

Best Practices

  • Follow Bosch Rexroth naming conventions: Bosch Rexroth projects in ctrlX WORKS follow IEC 61131-3 naming with dot notatio
  • Bosch Rexroth function design: Rexroth engineers lean heavily on reusable function blocks packaged as ctrlX lib
  • Data organization: Rexroth projects use IEC 61131-3 global variable lists and PROGRAM VAR sections
  • Ladder Logic: Keep rungs simple - split complex logic into multiple rungs for clarity
  • Ladder Logic: Use descriptive tag names that indicate function (e.g., Motor_Forward_CMD not M001)
  • Ladder Logic: Place most restrictive conditions first (leftmost) for faster evaluation
  • Pump Control: Use PID with derivative on PV for pressure control
  • Pump Control: Implement soft start ramps even with VFD (200-500ms)
  • Pump Control: Add flow proving before considering pump operational
  • Debug with ctrlX WORKS / IndraWorks: Use ctrlX WORKS debugger breakpoints in ST code rather than print-styl
  • Safety: Dry run protection using flow or level monitoring
  • Use a compatible simulator or isolated test rig to test Pump Control logic before deployment

Common Pitfalls to Avoid

  • Ladder Logic: Using the same OTE coil in multiple rungs (causes unpredictable behavior)
  • Ladder Logic: Forgetting to include stop conditions in seal-in circuits
  • Ladder Logic: Not using one-shots for counter inputs, causing multiple counts per event
  • Bosch Rexroth common error: Data Layer path typos — paths are case-sensitive and silently return null when m
  • Pump Control: Preventing cavitation at low suction pressure
  • Pump Control: Managing minimum flow requirements
  • Neglecting to validate Pressure transmitters for discharge and suction pressure leads to control errors
  • Insufficient comments make Ladder Logic programs unmaintainable over time

Related Certifications

🏆Bosch Rexroth Certified Technical Specialist
🏆ctrlX AUTOMATION Developer

Applying Ladder Logic to Pump Control using Bosch Rexroth ctrlX WORKS / IndraWorks requires understanding the platform, the process, and the project's acceptance criteria. This guide has covered implementation structure, an illustrative code example, verification practices, and common pitfalls for a intermediate Pump Control exercise.

Use the practices outlined here to create a design that can be reviewed and tested. Define performance targets in the project requirements and confirm them with repeatable measurements.

Next Steps:

1. Check Sources: Read the current ctrlX WORKS / IndraWorks help, controller manual, release notes, and relevant standards
2. Practice Safely: Adapt the example in a simulator or isolated training setup
3. Review: Have the I/O map, state behavior, faults, and recovery steps reviewed
4. Test: Record normal, boundary, fault, restart, and communications test results

Ladder Logic Foundation:

Ladder Logic (LAD) is a graphical programming language that represents control circuits as rungs on a ladder. It was designed to mimic the appearance ...

Project duration depends on scope, reviews, hardware availability, software and firmware versions, testing, commissioning, and site constraints. Remember: Use PID with derivative on PV for pressure control

For further learning, explore related topics including Conveyor systems, Wastewater treatment, and Bosch Rexroth platform-specific features for Pump Control optimization.