How to Program a PLC on a Roll Forming Machine: A Step-by-Step Illustrated Guide

understanding how PLC programming works can save downtime, improve productivity, and keep your line safe.

Posted on Monday, September 22, 2025

Modern roll forming machines rely on PLCs (Programmable Logic Controllers) to automate coil feeding, forming, cutting, and punching. If you’re an operator, engineer, or maintenance technician, understanding how PLC programming works can save downtime, improve productivity, and keep your line safe.

This guide walks through the basics — from whether you really need coding skills, to examples in the three most common PLC languages used in roll forming.

Step 1: Do You Really Need Coding Skills?

Not always. It depends on the type of change you’re making:

  • Simple adjustments (no coding needed):

    • Cut length

    • Punch spacing

    • Machine speed

    • Batch quantities

    👉 These are done on the HMI (touchscreen) and don’t require editing the PLC program.

  • Complex changes (coding required):

    • Adding a new punching head or forming station

    • Changing cut-to-length logic

    • Integrating servo drives or sensors

    • Modifying safety interlocks

    👉 These require reprogramming the PLC with vendor software (e.g., Siemens TIA Portal, Rockwell Studio 5000).

Step 2: Know the PLC Languages

PLCs don’t run on Python or Java. They use IEC 61131-3 industrial languages.

🪜 Ladder Logic (LD)

  • Looks like an electrical relay diagram.

  • Easiest for electricians and machine operators.

  • Common for safety and sequencing.

🔧 Function Block Diagram (FBD)

  • Uses blocks connected by wires.

  • Great for timers, counters, and encoders.

💻 Structured Text (ST)

  • Text-based, like Pascal or BASIC.

  • Best for math, servo control, and advanced cut optimization.

(There’s also Sequential Function Chart and Instruction List, but they’re less common in roll forming.)

Step 3: Example Roll Forming Cycle

Here’s a simplified cycle we’ll program three different ways:

  1. Press Start → machine runs.

  2. Motor feeds coil through rollers.

  3. Encoder measures length.

  4. When target length is reached → cutter fires.

  5. Cycle repeats until Stop/E-Stop is pressed.

🪜 Example in Ladder Logic

| Start PB Stop PB E-Stop Run Latch
|----||-------|/|-------|/|-----------------( M0.0 ) |

| Run Latch Roll Motor
|----||----------------------------------------( Q0.0 ) |

| Run Latch Length Reached Cutter
|----||---------||-----------------------------( Q0.1 ) |

| Cutter Reset Counter
|----||----------------------------------------( R C1 ) |

🔍 How to read it:

  • Start button energizes the “Run Latch.”

  • Run latch drives the motor.

  • When length is reached, cutter fires.

  • Counter resets for next cycle.

🔧 Example in Function Block Diagram (FBD)

[Start] --->(S) SR (R)<---[Stop/E-Stop]
 |
 v
 MachineRun ----> RollMotor (Q0.0)

MachineRun ----> AND ----> [LengthReached] ----> TON (CutterDelay)
 |
 v
 Cutter (Q0.1)

Cutter ----> CTU (BatchCounter)

🔍 How to read it:

  • SR latch holds the machine run signal.

  • AND block ensures cutter only fires when running and length is reached.

  • TON block delays the cutter output for smooth operation.

  • CTU counts cuts toward batch quantity.

💻 Example in Structured Text (ST)

// Machine Run Latch
IF Start AND NOT Stop AND NOT EStop THEN
 MachineRun := TRUE;
END_IF;

IF Stop OR EStop THEN
 MachineRun := FALSE;
END_IF;

// Motor Control
RollMotor := MachineRun;

// Cutter Control
IF MachineRun AND LengthReached THEN
 CutterTimer(IN := TRUE, PT := T#500MS);
ELSE
 CutterTimer(IN := FALSE);
END_IF;

Cutter := CutterTimer.Q;

// Batch Counting
IF Cutter THEN
 BatchCounter(CU := TRUE, PV := 100);
ELSE
 BatchCounter(CU := FALSE);
END_IF;

IF BatchCounter.Q THEN
 MachineRun := FALSE;
END_IF;

🔍 How to read it:

  • If Start is pressed, the machine runs until Stop/E-Stop is pressed.

  • Motor runs when MachineRun is true.

  • Cutter fires for 0.5s when length is reached.

  • Counter tracks parts cut, and stops the machine after the batch is complete.

Step 4: Practical Tips for PLC Work on Roll Formers

  • Back up before changes – always save the original program.

  • Don’t bypass safety – E-stops, guards, and interlocks must stay active.

  • Test step by step – check motor, cutter, and counter separately.

  • Use the right language for the job – Ladder for safety, FBD for timing, ST for advanced servo logic.

  • Document everything – update I/O maps and save final versions.

Step 5: Know When to Call an Expert

Simple changes like adjusting cut lengths can be done by operators via HMI. But logic changes, servo integration, or troubleshooting crashes should be left to trained PLC engineers. Mistakes in programming can cause coil waste, tooling damage, or safety risks.

Final Thoughts

Reprogramming a PLC on a roll forming machine doesn’t always mean “coding.” Sometimes it’s just entering new values on the touchscreen. But when it does involve programming, knowing how Ladder, FBD, and Structured Text work will help you understand what’s happening behind the scenes.

Whether you’re adjusting parameters or developing full automation logic, always prioritize safety, documentation, and testing.

Understanding Coil IDs, Mandrel Sizing, and Shear Pin Safety in Uncoilers

Understanding Coil IDs, Mandrel Sizing, and Shear Pin Safety in Uncoilers

Posted on Wednesday, October 1, 2025

Mismatched sizes can lead to machine damage, downtime, and safety hazards — often evidenced by a shear pin failure.

How Coil Tensile Strength Affects Roll Forming and How to Adjust Your Machine

How Coil Tensile Strength Affects Roll Forming and How to Adjust Your Machine

Posted on Wednesday, October 1, 2025

Changes in tensile strength can significantly affect the finished profile, causing misaligned bends, uneven edges, and out-of-spec parts.

Why Paint Cracks on an Embossing Line Running Pre-Painted Coil and How to Prevent It

Why Paint Cracks on an Embossing Line Running Pre-Painted Coil and How to Prevent It

Posted on Wednesday, October 1, 2025

This issue not only affects the visual quality of the product but can also lead to increased scrap rates and customer complaints.

The Most Popular Standing Seam Metal Roof Panels in the U.S. — A Comprehensive Guide

The Most Popular Standing Seam Metal Roof Panels in the U.S. — A Comprehensive Guide

Posted on Monday, September 29, 2025

In this post, we’ll explore what panel styles and sizes are most popular in the U.S