Build Your First Robot Cell — Part 5

Controls Architecture

Getting everything to talk to each other. Function lists, I/O schedules, and deciding who is actually in charge of your cell — before a single wire is pulled.

In this series
1. Cell Layout 2. ISO 12100 Risk Assessment 3. Safety Design & PLd 4. SISTEMA 5. Controls Architecture 6. Robot Communications 7. Robot Programming 8. Testing & FAT 9. Commissioning 10. CE Marking
View the full series →

The part everyone finds intimidating

This is the stage where most in-house robot cell projects stall. The mechanical layout made sense. The risk assessment was hard work but methodical. Then someone asks how the conveyor is going to tell the robot a product has arrived, and how the robot is going to tell the wrapper the pallet is full, and the room goes quiet.

Here is the thing we want you to take from this part more than anything else: the controls architecture is not designed in a PLC programming environment. It is designed on paper, in plain English, before anyone opens any software. If you can describe how you want your cell to behave, you can produce the two documents that define the entire controls design — the function list and the I/O schedule. Everything downstream, including work you might pay someone else to do, gets dramatically cheaper and faster once those two documents exist.

What the controls architecture actually is

Strip away the jargon and a robot cell control system is a small number of layers, each with one job:

Notice the safety system is listed first and then set aside. The safety circuit from Part 3 is hardwired or runs on safety-rated hardware, it was validated in SISTEMA in Part 4, and nothing in this part is allowed to compromise it. The control system asks the safety system for permission; it never grants itself any.

Critical point

Standard control I/O and safety I/O are not interchangeable. An e-stop, a guard interlock, a safety scanner — these live on the safety system, designed to the Performance Level your risk assessment demanded. A photocell that detects a box on a conveyor is standard I/O. Never run a safety function through standard I/O because it happened to be convenient. If you are unsure which side a signal belongs on, your risk assessment from Part 2 answers it.

Start with a function list, not a wiring diagram

For every machine or device in the cell, write down in plain English what it needs to do. Not how — what. This is the single most valuable hour of the whole controls design, and it needs no software and no programming knowledge at all.

For a palletising cell, the infeed conveyor's function list might read:

Do this for every element: the robot, each conveyor, the pallet dispenser if you have one, the stack light, the exit station. When you read the lists back you will find you have described the entire behaviour of the cell without writing a line of code. You will also find the gaps — the questions you cannot answer yet, like what should happen when the pallet is full but the next empty pallet has not arrived. Better to find those questions now, on paper, than during commissioning with production waiting.

The I/O schedule falls straight out of it

Look at the function list again. Every line implies signals. "Stop when a product reaches the pick position" implies a sensor — one digital input. "Run when the robot is ready" implies a signal from the robot — one input to the conveyor logic, one output from the robot. Work through every line of every function list and write down the signal it implies, and you have your I/O schedule.

Signal Type From / To Derived from
Product at pick position Digital input Photocell → PLC "Stop when a product reaches the pick position"
Infeed conveyor run Digital output PLC → conveyor contactor / drive "Run when the cell is in automatic"
Robot ready for product Digital signal Robot → PLC "Run when the robot is ready for product"
Start robot cycle Digital signal PLC → Robot "Signal that a product is present and in position"
Pallet complete Digital signal Robot → PLC "Signal downstream when the pallet is full"
Jam fault — infeed Internal / HMI PLC logic → HMI + stack light "Detect a jam and raise a fault"

Give every signal a tag, note whether it is hardwired or over a network, and record which device it physically lands on. That document drives the electrical design, the panel layout, the PLC program and the robot configuration. When something does not work during commissioning — and something will not — the I/O schedule is the document you will be holding.

Rule of thumb

Add at least 20% spare I/O capacity on every card or node, and physically wire spare cores in every multicore cable run. The cost at build time is pennies. The cost of discovering mid-commissioning that you need one more input and the card is full is a lost day — or a compromise you will regret.

Who is the master?

Every cell needs exactly one device in charge of the sequence. In almost every integrator-built cell, that is a PLC, and for good reason: it is the natural home for the cell sequence, the HMI, fault handling, and communication with the rest of the plant. The robot then behaves like any other device — it waits to be told to run, reports what it is doing, and hands back status.

But here is the honest version you will not hear from an integrator: a simple, self-contained palletising cell does not always need a PLC at all. Modern robot controllers have spare I/O, and the robot program itself can manage a simple sequence — wait for the product-present sensor, run the cycle, set an output when the pallet is complete. If your cell is one robot, one infeed conveyor, and a pallet position, robot-as-master with a handful of hardwired signals is a legitimate architecture that removes an entire device, an entire programming environment, and a chunk of cost from the project.

The honest boundaries of that approach:

Whichever way you go, the signals between PLC and robot stay deliberately dumb: run, ready, busy, done, fault. Simple handshakes are debuggable at 6am with production waiting. Clever ones are not. If you are palletising, the robot side of that handshake is covered in detail in Part 7 of this series (coming soon) — a generated palletising program expects exactly this kind of simple start/complete signal exchange, which is one of the reasons we keep recommending you keep it simple.

The control panel

The panel is where the architecture becomes physical, and a handful of decisions made here determine whether commissioning is smooth or miserable:

Design for plug-and-play installation

Here is a decision made at this stage that pays for itself twice — once during testing and again on installation day: design the electrical architecture so the cell comes apart and goes back together with connectors, not terminals. Pre-terminated cables with plugs at both ends. Junction boxes local to each device group, fed by a single multicore or a bus coupler back to the panel. Sensors on connectorised leads, not flying wires into glands.

The reason is the installation itself. When you build in-house, you will almost certainly test the cell on a workshop floor and then move it to its production position — and the difference between those being a good week and a bad one is how much wiring has to be disconnected, moved and re-terminated. Every joint that is unplug-and-replug is a joint that cannot be re-wired wrongly during the move, cannot introduce a new fault, and does not need re-testing core by core. Every joint that is stripped out of terminals and re-terminated on site is a fresh opportunity for a transposed pair and a lost afternoon. We design our cells so that installation is close to zero wiring: panels, cable looms and device groups made and proven in the workshop, then unplugged, moved, and plugged back in. It costs a little more in connectors and pre-made cables, and it buys you a commissioning that starts from a known-good electrical state.

Decide this now, while the I/O schedule is being turned into an electrical design — it changes how the drawings are done, how cables are specified, and where junction boxes sit. Retro-fitting plug-and-play onto a hardwired design after testing is exactly the re-termination exercise it exists to avoid.

Talking to the machines either side

Very few cells live in isolation. A palletiser takes product from an upstream machine and probably hands pallets to a wrapper or a forklift pickup zone. The interface to those machines should be the simplest thing that works, and it is usually two or three hardwired signals each way: I am ready to receive. I have a fault, stop feeding me. The pallet is complete, come and get it.

Resist the temptation to deeply integrate with a machine you do not own the controls design for — especially older equipment. A volt-free contact from the other machine's panel is robust, testable with a multimeter, and does not care whose PLC is on the other end. Define these interface signals early and get them into the I/O schedule, because the other machine may need modifying to provide them, and that has lead time.

If you cannot program a PLC

This might be the point where you pay for help — and that is fine. It is still a fraction of an integrator's price for the whole cell, because you are buying programming labour, not project management, design margin and risk premium. Alternatively, send one of your own engineers on the vendor's training course; a competent electrician or maintenance engineer can learn enough to sequence a cell like this, and then the knowledge stays in the building.

Either way, the function lists and the I/O schedule transform the transaction. Hand a programmer a written description of exactly how every device should behave and a complete signal list, and you have removed the most expensive part of their job — working out what you actually want. You will get a faster quote, a shorter programme, and a program that does what you expected first time. Walk in with nothing written down and you are paying their day rate to interview you.

From experience

Choose a mainstream PLC platform for your region and industry — the one your local maintenance sparkies already know and your local suppliers stock spares for. An exotic controller that saved a few hundred pounds on day one becomes very expensive on the night it fails and nobody within fifty miles has ever seen one.

Common mistakes

I/O schedule template — done for you

A pre-formatted function list and I/O schedule template with a complete worked example for a robot palletising cell — every signal tagged, typed and traced back to its function — is coming soon as a free download.

View all resources
Next in the series
Robot Communications