Ladder Logic Basics for Roll Forming Machines (Start/Stop, Shear & Safety Logic)

Ladder logic remains the dominant PLC programming language in roll forming machines worldwide.

Ladder Logic Basics for Roll Forming Machines

Structured PLC Programming for Roofing & Structural Lines

Ladder logic remains the dominant PLC programming language in roll forming machines worldwide.

It is used to control:

  • Main drive start/stop

  • Hydraulic sequencing

  • Flying shear timing

  • Encoder length counting

  • Safety interlocks

  • Alarm handling

  • Stacker coordination

When ladder logic is poorly structured, the result is:

  • Unpredictable machine behavior

  • Unsafe restart conditions

  • Cut length variation

  • Hydraulic conflicts

  • Long troubleshooting times

When properly structured, ladder logic provides:

  • Clear logic flow

  • Easy fault diagnosis

  • Stable production

  • Safer operation

This guide explains ladder logic fundamentals specifically in the context of roll forming systems.

1) What Is Ladder Logic?

Ladder logic is a graphical PLC programming language that resembles electrical relay circuits.

It consists of:

  • Rungs

  • Contacts

  • Coils

  • Timers

  • Counters

  • Comparison blocks

Each rung executes from left to right, top to bottom.

In roll forming systems, ladder logic replaces traditional hardwired relay control.

2) Basic Structure of a Ladder Rung

Word-Based Example (Start Logic):

[ E-STOP OK ] — [ GUARD OK ] — [ START BUTTON ] — ( MAIN MOTOR RUN )

Contacts represent conditions.
Coil represents output command.

If all conditions are TRUE, coil energizes.

3) Start/Stop Latching Circuit

A standard roll forming main drive uses latching logic.

Word-Based Example:

  • [ E-STOP OK ] — [ STOP NC ] — [ START ] — ( MOTOR RUN )
  • |
  • [ MOTOR RUN ]

Explanation:

  • Press START → Motor Run coil energizes

  • Motor Run contact seals circuit

  • Press STOP → Breaks circuit

Latch ensures continuous running until stopped.

4) Safety Interlock Logic

Safety hardware (relay) removes power physically.

PLC logic must also prevent restart.

Word-Based:

[ SAFETY OK ] — [ NO FAULT ] — [ START ] — ( ENABLE DRIVE )

If safety input drops, drive enable drops immediately.

Restart requires deliberate start action.

5) Flying Shear Trigger Logic

Roofing lines depend on accurate shear timing.

Word-Based Logic:

[ Encoder_Count ≥ Target_Length ] — [ Shear Ready ] — ( Shear Trigger )

Shear trigger must:

  • Be fast

  • Be single pulse

  • Reset after actuation

High-speed counter handles pulse counting outside normal scan timing.

6) Using Timers in Roll Forming

Timers manage:

  • Hydraulic delays

  • Alarm delays

  • Stacker sequences

Example:

[ Shear Trigger ] — ( TON 200ms ) — ( Shear Reset )

Timer ensures hydraulic cylinder completes movement before next action.

7) Using Counters

Counters used for:

  • Piece counting

  • Batch control

  • Maintenance tracking

Word-Based:

[ Shear Complete ] — ( Counter +1 )

Counter resets when batch target reached.

8) State-Based Logic (Recommended)

Complex roll forming lines benefit from state-based programming.

Instead of many scattered rungs:

Define machine states:

  • STATE 0 – Idle
  • STATE 1 – Running
  • STATE 2 – Shear Active
  • STATE 3 – Fault

Then control outputs based on current state.

This prevents conflicting logic.

9) Fault Logic Structure

Fault rungs should be structured separately.

Word-Based Example:

[ Hydraulic Pressure NOT OK ] — ( Fault_Hydraulic )

Master Fault:

[ Fault_Hydraulic OR Fault_Servo OR Fault_Safety ] — ( General_Fault )

Clear fault grouping simplifies troubleshooting.

10) Shear Pulse Logic (Critical Detail)

Shear trigger must be momentary.

Incorrect logic:

Continuous TRUE output → Servo fault.

Correct logic:

Use one-shot rising edge detection.

Word-Based:

[ Length_Reached Rising Edge ] — ( Shear_Pulse )

Pulse duration controlled by timer if required.

11) Hydraulic Sequencing Logic

Hydraulic extend and retract must not energize simultaneously.

Word-Based:

[ Shear Trigger ] — ( Extend Valve )
[ Extend Complete ] — ( Retract Valve )

Interlocks prevent both valves active at same time.

12) Avoiding Common Ladder Logic Mistakes

  1. Mixing safety and process logic

  2. No separation between state logic and fault logic

  3. Continuous shear output instead of pulse

  4. No interlock between hydraulic outputs

  5. Overusing global bits without naming discipline

  6. No structured alarm mapping

  7. No comments in program

Clarity is essential for long-term serviceability.

13) Scan Cycle Awareness

PLC executes ladder logic cyclically:

  1. Read inputs

  2. Execute logic

  3. Update outputs

Scan time affects:

  • Output timing

  • Shear accuracy

  • Sensor detection

High-speed roofing lines must:

  • Use high-speed counter for encoder

  • Avoid scan-based pulse counting

14) Word-Based Simple Roofing Line Program Flow

  • Rung 1: Safety Check
  • Rung 2: Start/Stop Latch
  • Rung 3: Encoder Counting
  • Rung 4: Length Compare
  • Rung 5: Shear Pulse
  • Rung 6: Hydraulic Reset
  • Rung 7: Piece Counter
  • Rung 8: Fault Monitoring

Organized layout improves maintenance.

15) Commenting & Documentation

Every rung should include:

  • Description

  • Device reference

  • Function explanation

Example:

Rung Comment: “Main drive enable – requires safety OK and no active faults.”

Uncommented programs increase downtime during service.

16) Roofing vs Structural Logic Differences

Roofing lines:

  • Continuous running

  • High-speed shear

  • Encoder-critical

Structural lines:

  • Punch coordination

  • Multiple operations per cycle

  • Longer cycle time

Ladder logic complexity increases with added functions.

17) Commissioning Checklist for Ladder Logic

Before production:

  • Verify start/stop logic

  • Test safety interruption

  • Confirm shear single pulse

  • Test hydraulic sequencing

  • Check batch counter reset

  • Simulate fault conditions

Never assume correct logic without simulation testing.

18) Buyer Strategy (30%)

Before purchasing a roll forming machine, ask:

  1. Is ladder logic structured by section?

  2. Are safety and process logic separated?

  3. Is shear pulse implemented correctly?

  4. Is high-speed counter used for encoder?

  5. Are faults categorized clearly?

  6. Is program commented properly?

  7. Is backup copy provided?

  8. Is logic easy for local technicians to understand?

Red flag:

“Program works — documentation not needed.”

Professional systems include structured logic and comments.

6 Frequently Asked Questions

1) Why use ladder logic in roll forming?

It mirrors relay logic and is easy for electricians to understand.

2) Can ladder logic affect cut accuracy?

Yes, especially if shear trigger timing is poorly programmed.

3) Should encoder counting use standard inputs?

No. Use high-speed counter.

4) Is state-based programming better?

Yes, for complex systems.

5) Should faults be grouped?

Yes. Structured fault logic simplifies troubleshooting.

6) What is biggest ladder logic mistake?

Continuous shear output instead of single pulse trigger.

Final Engineering Summary

Ladder logic in roll forming machines must provide:

  • Clear start/stop control

  • Reliable safety interlocks

  • Accurate shear timing

  • Controlled hydraulic sequencing

  • Structured fault logic

  • Documented and maintainable code

Well-structured ladder logic ensures:

  • Predictable operation

  • Accurate cut length

  • Safe restart conditions

  • Faster troubleshooting

  • Reduced downtime

In roll forming production, programming clarity is as important as electrical wiring discipline.

Quick Quote

Please enter your full name.

Please enter your location.

Please enter your email address.

Please enter your phone number.

Please enter the machine type.

Please enter the material type.

Please enter the material gauge.

Please upload your profile drawing.

Please enter any additional information.