# Distributed control

Control can live in one central controller with a lot of I/O, or be spread across many smaller devices that each run part of it. Where it lives decides how much each controller is responsible for, and how much coordination has to happen between them.

## Where control lives

Control can live in two places:

- **Central.** One controller with a lot of [I/O points](https://dev.nominal.io/learning/reference/glossary.md#io-point "One input or output on a DAQ, wired to one sensor or actuator.") runs every loop. Its I/O can sit in one rack, or be spread around a machine on a fieldbus such as [EtherCAT](https://dev.nominal.io/learning/guides/communications.md#industrial-ethernet-ethercat-and-opc-ua).
- **Distributed.** Many smaller devices, such as [PLCs](https://dev.nominal.io/learning/reference/glossary.md#plc "Short for programmable logic controller: a rugged industrial computer that reads inputs, runs control software in a fixed scan cycle, and drives outputs."), motor drives and embedded controllers, each run their own loops, and exchange values over a network.

The two can be mixed. At large physics facilities, control that needs a deterministic response runs in PLCs, FPGAs or front-end computers next to its I/O, and the network coordinates the parts. That way the fastest loops don’t depend on the network’s timing.[[1]](https://dev.nominal.io/learning/guides/distributed-control.md#nif-2001)[[2]](https://dev.nominal.io/learning/guides/distributed-control.md#ess-2023) In the European XFEL’s RF control system, loops split by timescale:[[3]](https://dev.nominal.io/learning/guides/distributed-control.md#xfel-llrf)

| Timescale | What the loop does | Where it runs |
| --- | --- | --- |
| Microseconds | Corrects within one cycle of the process | FPGA |
| Milliseconds | Adapts from one cycle to the next | CPU |
| Seconds | Compensates for long-term drift | External modules and slow feedback loops |

An e-axle [dyno](https://dev.nominal.io/learning/reference/glossary.md#dynamometer-dyno "A test stand that loads a motor or engine and records its speed and torque.") mixes them too. A motor drives the e-axle under test, and a load motor on each side brakes it. One program runs the sequence for all three motors, while each motor controller closes its own speed and current loops. The software sets speed setpoints 10 times a second, and the motor controllers hold the speed in between. See [Loop rates](https://dev.nominal.io/learning/guides/control.md#loop-rates).

## Responsibility and coordination

Each controller is responsible for some of the system’s loops and actuators. Anything that crosses from one controller to another has to be coordinated over a link. So for each part of a system, decide how much one controller should own:

- A controller that owns more needs less coordination, but has more to do in each cycle, and more I/O to reach in time.
- A controller that owns less is simpler, but more of what it does has to be coordinated with others.

Draw each controller’s boundary around the actuators that have to act together.

## Central control

A central controller runs one program that reads every input and writes every output in each [control cycle](https://dev.nominal.io/learning/reference/glossary.md#control-cycle "One pass of the loop that control software runs at a set rate: read the latest commands and measurements, decide, and write the results."). That makes coordination simple. Two actuators commanded in the same cycle act on the same view of the stand, and no other controller’s command competes with them. Closing several motors’ position loops in one controller makes it easier to synchronize them.[[4]](https://dev.nominal.io/learning/guides/distributed-control.md#ess-ecmc)

The cost is performance and timing. When one loop handles every device, a device that answers slowly delays all the others, and a computer that stalls stalls everything. [Network performance](https://dev.nominal.io/learning/guides/network-performance.md#example-when-the-dyno-s-computer-fell-behind) shows how that played out on the dyno.

One limit on a central loop is the delay between the controller and its I/O, compared with the loop’s period. On a network that reserved a queue for one loop’s traffic, a delay below 300 µs was negligible for a loop at 25 Hz.[[5]](https://dev.nominal.io/learning/guides/distributed-control.md#lhc-orbit) For a loop at 1 kHz, it’s almost a third of the period. ITER sized its real-time network for loops with a 500 µs cycle, assuming communication could use at most 10% of that time.[[6]](https://dev.nominal.io/learning/guides/distributed-control.md#iter-2011) Delays inside the front-end computers that read the sensors and drive the actuators were an order of magnitude larger than the network’s,[[5]](https://dev.nominal.io/learning/guides/distributed-control.md#lhc-orbit) so count them too. A deterministic fieldbus such as EtherCAT keeps the delay to the I/O short and predictable.[[2]](https://dev.nominal.io/learning/guides/distributed-control.md#ess-2023) It can synchronize its devices’ clocks to within 100 ns, with bus cycles under 50 µs.[[4]](https://dev.nominal.io/learning/guides/distributed-control.md#ess-ecmc)

## Distributed control

In a distributed system, many devices each run their own loops, and a supervisory layer coordinates them. Splitting a system into modules reduces the impact of a single fault on the whole.[[7]](https://dev.nominal.io/learning/guides/distributed-control.md#nist-ics) The National Ignition Facility chose a distributed architecture to reduce complexity and risk, and it also lowered cost.[[8]](https://dev.nominal.io/learning/guides/distributed-control.md#nif-2009)

The cost is coordination. When two devices have to act together, the link between them becomes part of the control system, and its [latency](https://dev.nominal.io/learning/reference/glossary.md#latency "The delay between something happening and its effect showing up, such as between a sensor reading and the value appearing on screen.") and [jitter](https://dev.nominal.io/learning/reference/glossary.md#jitter "The variation in latency from one message to the next.") limit how closely they can work. The software at each end can be the bottleneck as well as the network. At the SKA telescopes, running too many devices in one server process, with single-threaded event handling, delayed events severely.[[9]](https://dev.nominal.io/learning/guides/distributed-control.md#ska-2025)

When actuators have to act together, keep them on one controller, give their separate controllers a shared clock, or accept loose timing.

### Keep coupled actuators in one controller

Two motors on separate controllers are hard to move together. Started over the network, they don’t start at exactly the same time.[[10]](https://dev.nominal.io/learning/guides/distributed-control.md#maxiv-scans) Even on one controller, sending each motor its own command starts one slightly before the other.[[11]](https://dev.nominal.io/learning/guides/distributed-control.md#sardana-motor) Computing a shared path in software and sending each motor its part doesn’t keep them on the path while they move.[[10]](https://dev.nominal.io/learning/guides/distributed-control.md#maxiv-scans)

Instead, put the axes that have to move together on one controller, which computes or follows their path itself.[[12]](https://dev.nominal.io/learning/guides/distributed-control.md#diamond-motion)[[10]](https://dev.nominal.io/learning/guides/distributed-control.md#maxiv-scans) Multi-axis motion controllers are built for this. Galil’s controllers, for example, interpolate straight-line paths across up to 8 axes,[[13]](https://dev.nominal.io/learning/guides/distributed-control.md#galil) and one IcePAP system drives up to 128 axes.[[14]](https://dev.nominal.io/learning/guides/distributed-control.md#icepap)

Control software groups axes the same way. In the Sardana framework, one software controller handles several axes, and starts them all with one hardware command if the hardware supports it.[[11]](https://dev.nominal.io/learning/guides/distributed-control.md#sardana-motor) Synchronizing two separate controllers is harder. Sardana’s planned trajectory support leaves it out of scope.[[15]](https://dev.nominal.io/learning/guides/distributed-control.md#sardana-traj)

Axes wired to separate controllers can still move together closely if a dedicated real-time motion bus lets one controller run all of them.[[16]](https://dev.nominal.io/learning/guides/distributed-control.md#soleil)

### Share a clock

When separate devices have to act at the same instant, set each one up ahead of time, and let a shared timing signal say when. A central timing system broadcasts events, and a receiver in each device turns them into hardware triggers.[[17]](https://dev.nominal.io/learning/guides/distributed-control.md#mrf) One such system is designed to trigger 1,600 channels to 30 ps accuracy.[[1]](https://dev.nominal.io/learning/guides/distributed-control.md#nif-2001) A device can also preload every waveform it might need, and play the right one when its clock event arrives.[[18]](https://dev.nominal.io/learning/guides/distributed-control.md#acnet)

Over Ethernet, the Precision Time Protocol (PTP, IEEE 1588) synchronizes clocks to under a microsecond, and to under a nanosecond in a properly designed network.[[19]](https://dev.nominal.io/learning/guides/distributed-control.md#ptp) With clocks that close, a message sent early enough can tell a device to act at a given absolute time, as in the White Rabbit timing system.[[20]](https://dev.nominal.io/learning/guides/distributed-control.md#white-rabbit)

### Accept loose timing

Where the process tolerates it, the ordinary network is enough. Two devices started over a network don’t start at exactly the same time, but the difference can be well within what the process needs. A dedicated trigger cable is the fallback.[[10]](https://dev.nominal.io/learning/guides/distributed-control.md#maxiv-scans)

The dyno works this way. Its DUT and load motors have separate controllers on one CAN bus, and the software updates their setpoints 10 times a second. That’s close enough, because the sequence ramps slowly and waits for each test point to settle. See [Ramps, limits and settling](https://dev.nominal.io/learning/guides/control.md#ramps-limits-and-settling-the-dyno-s-sequence).

## Choosing where control lives

For each loop or action, compare its timing with the path it has to take:

| If you need | Put the control in | Coordinate with |
| --- | --- | --- |
| A loop whose period is less than about 10 times the network’s worst-case delay | The device, or a controller next to its I/O | Setpoints sent from above |
| Several axes on one path | One multi-axis controller | The controller’s coordinate system |
| Actions at the same instant on separate devices | Each device | A shared timing system |
| Parts that fail independently | Separate controllers | Supervision, with a [watchdog](https://dev.nominal.io/learning/reference/glossary.md#watchdog "A timer that puts a device in a safe state if the software controlling it stops checking in.") in each part |
| Steps in order, seconds apart | A [sequence](https://dev.nominal.io/learning/reference/glossary.md#sequence "A test's steps in order, from start up to shut down, each with what to do and what you should see.") or [test executive](https://dev.nominal.io/learning/reference/glossary.md#test-executive "Software that runs a test's steps in order, records each step's result, and decides whether the unit passed.") | The network, waiting for each step to finish |

Safety functions belong in a certified safety controller, not in ordinary control software. See [Safety controllers](https://dev.nominal.io/learning/guides/safety.md#safety-controllers). A safety signal that crosses a network uses a certified safety protocol, such as Safety over EtherCAT, which carries safety data on the same EtherCAT network as the standard data.[[21]](https://dev.nominal.io/learning/guides/distributed-control.md#fsoe)

## Further reading

- L. J. Lagin et al., [The Overview of the National Ignition Facility Distributed Computer Control System](https://arxiv.org/abs/cs/0111045), with its supervisory, front-end and timing layers.
- NIST, [SP 800-82r3, Guide to Operational Technology Security](https://doi.org/10.6028/NIST.SP.800-82r3), section 2.3, on DCS, SCADA and PLC-based systems.
- R. J. Steinhagen et al., [LHC Orbit Stabilisation Tests at the SPS](https://proceedings.jacow.org/p05/PAPERS/MPPP004.PDF), a central feedback loop over a network.
- T. Gahl et al., [ECMC, the Open Source Motion Control Package for EtherCAT Hardware at the ESS](https://proceedings.jacow.org/icalepcs2017/papers/mocpl05.pdf), on where to close position loops.
- H. Enquist et al., [Continuous Scans with Position Based Hardware Triggers](https://proceedings.jacow.org/icalepcs2021/papers/frbr04.pdf), on moving coupled motors along one path, and triggering detectors from motor positions in hardware.
- The [EPICS](https://docs.epics-controls.org/) and [Tango Controls](https://tango-controls.readthedocs.io/) documentation, two frameworks for distributed control at physics facilities.

## References

---

[1]
([1](https://dev.nominal.io/learning/guides/distributed-control.md#id1),[2](https://dev.nominal.io/learning/guides/distributed-control.md#id25))

L. J. Lagin et al., LLNL, [“The Overview of the National Ignition Facility Distributed Computer Control System”](https://arxiv.org/abs/cs/0111045), ICALEPCS 2001, TUAP001. Retrieved 2026-11-18.

[2]
([1](https://dev.nominal.io/learning/guides/distributed-control.md#id2),[2](https://dev.nominal.io/learning/guides/distributed-control.md#id8))

T. Korhonen, ESS, [“Status of the European Spallation Source Controls”](https://proceedings.jacow.org/icalepcs2023/papers/fr1bco01.pdf), ICALEPCS 2023, FR1BCO01. Retrieved 2026-11-18.

[[3](https://dev.nominal.io/learning/guides/distributed-control.md#id3)]

C. Schmidt et al., DESY, [“High Level Software Structure for the European XFEL LLRF System”](https://proceedings.jacow.org/ICALEPCS2015/papers/wepgf029.pdf), ICALEPCS 2015, WEPGF029. Retrieved 2026-11-18.

[4]
([1](https://dev.nominal.io/learning/guides/distributed-control.md#id4),[2](https://dev.nominal.io/learning/guides/distributed-control.md#id9))

T. Gahl et al., ESS, [“ECMC, the Open Source Motion Control Package for EtherCAT Hardware at the ESS”](https://proceedings.jacow.org/icalepcs2017/papers/mocpl05.pdf), ICALEPCS 2017, MOCPL05. Retrieved 2026-11-18.

[5]
([1](https://dev.nominal.io/learning/guides/distributed-control.md#id5),[2](https://dev.nominal.io/learning/guides/distributed-control.md#id7))

R. J. Steinhagen et al., CERN, [“LHC Orbit Stabilisation Tests at the SPS”](https://proceedings.jacow.org/p05/PAPERS/MPPP004.PDF), PAC 2005, MPPP004. Retrieved 2026-11-18.

[[6](https://dev.nominal.io/learning/guides/distributed-control.md#id6)]

A. Wallander et al., ITER, [“News from ITER Controls – A Status Report”](https://proceedings.jacow.org/ICALEPCS2011/papers/mobaust01.pdf), ICALEPCS 2011, MOBAUST01. Retrieved 2026-11-18.

[[7](https://dev.nominal.io/learning/guides/distributed-control.md#id11)]

K. Stouffer et al., NIST, [“Guide to Operational Technology (OT) Security”](https://doi.org/10.6028/NIST.SP.800-82r3), SP 800-82r3, section 2.3, September 2023. Retrieved 2026-11-18.

[[8](https://dev.nominal.io/learning/guides/distributed-control.md#id12)]

P. Van Arsdall et al., LLNL, [“National Ignition Facility Project Completion and Control System Status”](https://epaper.kek.jp/icalepcs2009/papers/tup078.pdf), ICALEPCS 2009, TUP078. Retrieved 2026-11-18.

[[9](https://dev.nominal.io/learning/guides/distributed-control.md#id13)]

S. Vrcic et al., SKAO, [“SKA Control System in 2025”](https://proceedings.jacow.org/icalepcs2025/pdf/WEMG002.pdf), ICALEPCS 2025, WEMG002. Retrieved 2026-11-18.

[10]
([1](https://dev.nominal.io/learning/guides/distributed-control.md#id14),[2](https://dev.nominal.io/learning/guides/distributed-control.md#id16),[3](https://dev.nominal.io/learning/guides/distributed-control.md#id18),[4](https://dev.nominal.io/learning/guides/distributed-control.md#id29))

H. Enquist et al., MAX IV, [“Continuous Scans with Position Based Hardware Triggers”](https://proceedings.jacow.org/icalepcs2021/papers/frbr04.pdf), ICALEPCS 2021, FRBR04. Retrieved 2026-11-18.

[11]
([1](https://dev.nominal.io/learning/guides/distributed-control.md#id15),[2](https://dev.nominal.io/learning/guides/distributed-control.md#id21))

Sardana, [“How to write a motor controller”](https://sardana-controls.org/how-to/controllers/motor.html), section “Multiple motion synchronization”, Sardana 3.8.0 documentation. Retrieved 2026-11-19.

[[12](https://dev.nominal.io/learning/guides/distributed-control.md#id17)]

B. Nutter et al., Diamond Light Source, [“Recent Developments in Synchronised Motion Control at Diamond Light Source”](https://proceedings.jacow.org/icalepcs2011/papers/wepmn013.pdf), ICALEPCS 2011, WEPMN013. Retrieved 2026-11-18.

[[13](https://dev.nominal.io/learning/guides/distributed-control.md#id19)]

Galil Motion Control, [“Modes of Motion: Vector and Linear Interpolation”](https://www.galil.com/resources/application-notes/modes-of-motion-vector-and-linear-interpolation), Application Note #2519, 2026-05-21. Retrieved 2026-11-18.

[[14](https://dev.nominal.io/learning/guides/distributed-control.md#id20)]

ESRF, [“IcePAP”](https://esrf.fr/Instrumentation/DetectorsAndElectronics/icepap). Retrieved 2026-11-18.

[[15](https://dev.nominal.io/learning/guides/distributed-control.md#id22)]

R. Homs Puron et al., ALBA Synchrotron, [“Sardana Trajectories: Preliminary Core Design for Synchronized Motion and Acquisition”](https://indico.tango-controls.org/event/737/contributions/1025/attachments/680/969/Sardana_trajectories.pdf), presented by J. Aguilar at the 40th Tango Community meeting, 2026-06-11, slide 5. Retrieved 2026-11-18.

[[16](https://dev.nominal.io/learning/guides/distributed-control.md#id23)]

Y. M. Abiven et al., SOLEIL and Symetrie, [“SOLEIL and Symetrie Company Collaborate to Build Tango Ready In-Vacuum Diffractometer”](https://proceedings.jacow.org/ICALEPCS2017/papers/tupha007.pdf), ICALEPCS 2017, TUPHA007. Retrieved 2026-11-18.

[[17](https://dev.nominal.io/learning/guides/distributed-control.md#id24)]

Micro-Research Finland, [“The MRF Timing System”](https://mrftiming.readthedocs.io/en/stable/hardware/event-system-intro.html). Retrieved 2026-11-18.

[[18](https://dev.nominal.io/learning/guides/distributed-control.md#id26)]

J. Patrick, Fermilab, [“The Fermilab Accelerator Control System”](https://epaper.kek.jp/icap06/PAPERS/WEA2IS03.PDF), ICAP 2006, WEA2IS03. Retrieved 2026-11-18.

[[19](https://dev.nominal.io/learning/guides/distributed-control.md#id27)]

IEEE, [“IEEE 1588-2019: Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems”](https://standards.ieee.org/ieee/1588/6825/), 2020. Retrieved 2026-11-18.

[[20](https://dev.nominal.io/learning/guides/distributed-control.md#id28)]

M. Kreider et al., GSI and CERN, [“WhiteRabbit – A Novel, High Precision Timing System”](https://proceedings.jacow.org/pcapac2010/papers/frcoma01.pdf), PCaPAC 2010, FRCOMA01. Retrieved 2026-11-18.

[[21](https://dev.nominal.io/learning/guides/distributed-control.md#id30)]

EtherCAT Technology Group, [“Safety over EtherCAT”](https://www.ethercat.org/en/safety.html). Retrieved 2026-11-19.
