CalWest ManufacturingRobotics Fontana, CA

Call or text (818) 397-4809

Allen-Bradley PLC programming for robot cells and machines

We write Studio 5000 programs for CompactLogix, ControlLogix and GuardLogix controllers and run them against the real panel and robot in our Fontana, CA shop before the cell ships.

Controllers
CompactLogix, ControlLogix, GuardLogix
Software
Studio 5000 Logix Designer
Robot link
EtherNet/IP to FANUC R-30iB
Servo
Kinetix drives on CompactLogix
Tested
On our floor, before the cell ships
Open control cabinet with an Allen-Bradley CompactLogix 5380 controller and a row of I/O modules at lower left, red safety relay modules beside them, an Ethernet switch with yellow cables above, and labeled blue wiring in white duct
Fig. 1A cell panel we built and wired in Fontana. The Allen-Bradley CompactLogix 5380 and its I/O modules sit at lower left, with red safety relay modules beside them and the Ethernet switch on the rail above.
Controllers
CompactLogix, ControlLogix, GuardLogix
Software
Studio 5000 Logix Designer
Robot link
EtherNet/IP to FANUC R-30iB
Servo
Kinetix drives on CompactLogix
Tested
On our floor, before the cell ships

The PLC runs everything in a robot cell that the robot doesn’t: conveyors, feeders, clamps, the guard circuit, the operator screen and the handshake that tells the FANUC robot when to go. Our Allen-Bradley PLC programming is done in Studio 5000 Logix Designer, on CompactLogix, ControlLogix and GuardLogix controllers, by the same team that builds the panel and writes the robot program.

In short

We program Allen-Bradley CompactLogix, ControlLogix and GuardLogix controllers in Studio 5000 Logix Designer, along with Kinetix servo drives and the EtherNet/IP link to FANUC robots. The logic is written in our Fontana, CA shop by the team that builds the panel and programs the robot, and it runs against the real I/O and the real robot during the run-off, before the cell ships.

The general picture of what a PLC does in a cell is on our PLC programming page. This page is the Allen-Bradley detail: which controller to use, how the program is laid out, how it talks to the robot, and what you should get at handover.

Which Allen-Bradley controller does the job need?

All three families below are programmed in the same software, Studio 5000 Logix Designer, which Rockwell describes as one environment for configuring, programming and maintaining control system devices. The choice comes down to size, motion and safety.

Controller Where it usually fits Worth knowing
CompactLogix 5380 Most single robot cells and standalone machines Integrated servo motion only on catalog numbers with an M or P in them
ControlLogix 5580 Large lines with many I/O racks, or where redundancy is required Chassis-based: the controller and modules slide into a 1756 rack
GuardLogix 5580 and Compact GuardLogix 5380 Cells where the safety functions run in the PLC A safety task runs beside the standard tasks in one project; Rockwell rates them as scalable up to SIL 3 / PLe

If your plant already standardizes on one of these, the cell should match it, down to the I/O modules your maintenance crew keeps on the shelf.

How a Studio 5000 program is laid out

A Logix project is organized as tasks, programs and routines, and its tags are named in the controller rather than stored at fixed file addresses. A layout that gives each station its own program pays off later: a tech looking for the clamp logic on station 2 finds it under station 2 instead of halfway down one long main routine.

Studio 5000 offers four languages: ladder diagram, function block diagram, structured text and sequential function chart. A good rule is to pick by who will read the code later:

  • Ladder for sequences, interlocks and anything maintenance will troubleshoot with the cell stopped. It shows which contact is open.
  • Structured text for math, recipe handling and data that goes to the operator screen or a log.
  • Function block where a signal flow reads more naturally, such as analog scaling and PID loops.

UDTs and Add-On Instructions

Devices that repeat get a user-defined data type and, where it earns its keep, an Add-On Instruction (AOI). Rockwell’s manual calls AOIs custom instructions that you design and create. An AOI for a cylinder with two position sensors, for example, carries the extend and retract commands, the timeouts and the fault bits, and every cylinder in the cell uses the same one. Fix a problem once and it is fixed for every cylinder.

AOIs and routines can be source-protected, which hides the logic from anyone without the key. That makes sense for a vendor’s library. On a machine you own, it leaves your maintenance team unable to see why a step faulted, so say in the purchase order that you want no source-protected logic.

Talking to a FANUC robot over EtherNet/IP

On an Allen-Bradley cell, the PLC and the FANUC R-30iB controller usually talk over EtherNet/IP, the industrial Ethernet network maintained by ODVA. FANUC’s EtherNet/IP option lets the robot controller act as an adapter on the PLC’s network, or as a scanner that runs its own I/O blocks, vision devices or tooling.

The robot goes into the PLC’s I/O configuration with input and output sizes that match the setup on the robot side. Two kinds of signals cross that connection:

  • The robot’s operator panel signals (UOP). Enable, hold, start, fault reset and program select going to the robot; command enabled, program running and fault coming back. These let the PLC run the robot in automatic without anyone at the teach pendant.
  • The cell handshake. Part present, gripper closed, robot clear of the fixture, cycle complete, and a fault number the PLC turns into plain text on the operator screen.

Guard doors and E-stops need dual-channel safety signals. Those are hardwired into the robot’s safety inputs, or carried over EtherNet/IP Safety, FANUC’s option built on CIP Safety, to a GuardLogix. The safety PLC programming page covers that side. We also write the robot program (FANUC robot programming), so both ends of the handshake come from one team and are tested together.

Online edits while the line runs

Logix controllers accept edits online. Rungs go in as pending edits, are tested, and are then assembled into the running program without a download. That makes small fixes possible on a running line, and it is also how a careless edit stops one. A few habits keep it safe:

  • Save a copy of the project before the first edit, and save again afterward so the file on the laptop matches the controller.
  • Edit with the machine idle, or with the affected station stopped, where you can.
  • Note what changed and when in the rung comment.

The safety program is stricter on purpose. Logix Designer won’t let anyone modify safety routines or safety tags while the controller is safety-locked or carries a safety signature, so changing safety logic means removing the lock, editing the logic and testing it again.

When a customer allows it, cells we install can be reached over a secure VPN connection, so a program change or a look at a fault doesn’t always need a trip.

What to expect from a Rockwell PLC integrator at handover

Whoever writes your program, the files that come with the cell decide how easily your own people can support it. Studio 5000 keeps the project in an .ACD file, and the project or single routines can also be exported as L5X files. The Logix Designer major version has to match the controller’s firmware major revision, so both belong in the handover notes.

Ask for these with an Allen-Bradley cell

  1. The .ACD project file, matching what is running in the controller
  2. The controller firmware revision and the Logix Designer version it needs
  3. Add-On Instructions and routines with no source protection
  4. EDS files or add-on profiles for any third-party devices on the network
  5. The I/O list, electrical drawings and network addresses
  6. Robot backups and the HMI project, next to the PLC files

Older Allen-Bradley PLCs

Plenty of good machines still run on an SLC 500 or a PLC-5. Rockwell’s export tool brings the ladder across into a Studio 5000 project, but the I/O has to be mapped by hand and some instructions rewritten. Our controls retrofit page walks through that migration.

Kinetix servo motion in the same project

We have written CompactLogix programs that run Kinetix servo motion alongside the machine sequence. With integrated motion on EtherNet/IP, the axes are configured and commanded in the same Studio 5000 project as the rest of the cell, so maintenance has one project to open when something stops. Sizing, homing and tuning are covered on servo motion control.

Tested in Fontana, installed anywhere in the US

The panel is built and wired here (see control panels), and the program runs against the real I/O and the real robot during the run-off in our shop. Then the cell ships and is commissioned on your floor, anywhere in the United States. Every robot cell we build goes through those steps, and the rest of our controls work is on robot cell controls and software. To talk through an Allen-Bradley job, call or text (818) 397-4809, or email sales@calwestmfg.com.

Common questions

Do we need Studio 5000 to make changes later?
Yes. Editing the program or going online with a Logix controller takes Studio 5000 Logix Designer, and Rockwell's ordering guide notes that the edition you buy decides which controllers it supports. The software's major version also has to match the controller's firmware major revision. Ask your integrator to write both into the handover notes, and keep one maintenance laptop with that version installed.
Can you work on an Allen-Bradley program someone else wrote?
Send the .ACD project file, the controller catalog number and firmware revision, and a short video of a normal cycle and the problem. If nobody has the file, back up the controller before anything else changes. We have replaced the controls on legacy machines that other companies built, and we will tell you plainly whether your job is a fit for us.
Can the PLC and the FANUC robot share safety signals over the network?
Yes, with the right options. FANUC offers EtherNet/IP Safety for its robot controllers, built on CIP Safety, so a GuardLogix can exchange safety signals with the robot over the same Ethernet network as the standard I/O. The other way is hardwired dual-channel circuits into the robot's safety inputs. The number of safety functions, and what your maintenance team is used to troubleshooting, usually decide it.
Should we let the integrator lock the code?
On a machine you own, generally no. Source protection hides routines and Add-On Instructions from anyone without the key, so your maintenance team can't see why a step faulted. Put no source-protected logic in the purchase order. Safety logic is different: the GuardLogix safety lock and signature protect validated safety code, and you want that, with the lock password held by someone in your plant.
Can you change the program remotely?
On cells we install, yes, when the customer allows it. They can be reached over a secure VPN connection for program changes and troubleshooting, so a small change doesn't always wait for a site visit. Your IT group decides whether and how that connection is set up, and any change to safety logic still needs to be tested with someone at the machine.

Sources

  1. Rockwell Automation: Studio 5000 Logix Designer
  2. Rockwell Automation: Studio 5000 Logix Designer documentation (language editors)
  3. Rockwell Automation: Studio 5000 ordering guide, 9324-QR001
  4. Rockwell Automation: Logix 5000 Controllers Add-On Instructions, 1756-PM010
  5. Rockwell Automation: Logix 5000 Controllers Import/Export (L5X), 1756-RM014
  6. Rockwell Automation: CompactLogix 5380 controllers
  7. Rockwell Automation: CompactLogix 5380 and Compact GuardLogix 5380 specifications, 5069-TD002
  8. Rockwell Automation: ControlLogix 5580 controllers
  9. Rockwell Automation: Safety controllers (GuardLogix 5580, Compact GuardLogix 5380)
  10. Rockwell Automation: View safety status and signature
  11. FANUC America: EtherNet/IP and EtherNet/IP Safety for FANUC robot controllers
  12. ODVA: EtherNet/IP

Start a project

Bring us the process. We'll bring the cell.

Send a phone video of the manual process, or a part drawing, by text or email. We come back with a cell concept and a plan: robot, tooling, controls and code.

Call or text
Call or text
(818) 397-4809
Email
sales@calwestmfg.com
Shop
13815 Arrow Rte, Fontana, CA 92335
Hours
Mon–Fri 7:00am – 3:45pm

FANUC Authorized System Integrator (ASI). Part of CalWest Manufacturing, founded 2012: AS9100D and ISO 9001 certified, ITAR registered.