MusserAutomation
All posts
Andrew Musser

Generating a Beckhoff controls solution from a machine description

  • Beckhoff
  • TwinCAT
  • Controls design
  • PackML

I'm experimenting with a tool that takes a description of a machine, and systematically generates the BOM, schematics, layout, code, and 3D view for a Beckhoff-based controls solution. You can try it out here: architect.musserautomation.com.

How it works

Yes, I'm using AI to accept unstructured prompts from users, but the next step is a deterministic set of rules for creating the database, and setting up the connections between all the components.

Since every view is generated from that same database, you can select a sensor in the drawing, and see it in the 3D cabinet, on the machine frame, and in the code.

Example

For this example, I typed in a paragraph describing a case conveyor line, and about 7 seconds later I had a 107-line BOM, 40 schematic sheets, a wired 3D cabinet, and PackML code running the line in my browser. There are 10 slides below, and you can scroll sideways to see each view.

Slide 1 of 10, the prompt: a paragraph describing a case conveyor line, typed into the tool's landing page.Slide 2 of 10, system layout: the controller, I/O, drives, and motor drawn to scale, with the field devices listed under the terminals they're wired to.Slide 3 of 10, schematics for main power: the main disconnect, fuses, and wire sizes, with notes explaining how each one was sized.Slide 4 of 10, schematics for I/O: the sheet for an EL1809, with the knife station entry photoeye selected in green.Slide 5 of 10, BOM: 107 line items, each marked as settled, assumed, or still to be decided.Slide 6 of 10, 3D view of the cabinet: the back panel laid out to scale, with wires and cables routed through the wire duct.Slide 7 of 10, the photoeye's wire in the cabinet: highlighted in green from input 3 on the EL1809 to its terminal block, with wire label 50403.Slide 8 of 10, the photoeye on the machine: highlighted in green at the start of the knife station while the generated PLC code runs the line.Slide 9 of 10, the photoeye in the code: its input in the global variable list on channel 3 of the EL1809, reading TRUE while the code runs in the browser.Slide 10 of 10, the sequence logic: the knife station's Execute method in Structured Text.

Slides 4, 7, 8, and 9 follow a single photoeye through the drawing, the cabinet, the machine, and the code. Its wire is labeled 50403 on the I/O sheet and in the 3D cabinet, and it's on channel 3 of the EL1809 in both the drawing and the code.

Limitations

This is still an early version, and here's what to expect:

  • It handles servos, steppers, VFDs, standard I/O, TwinSAFE, and remote I/O, but not XTS, XPlanar, or CNC.
  • There's no pricing on the Beckhoff parts yet.
  • The AI also takes a first pass at each station's sequence logic. That code has to compile and run in simulation before it's shown, but it's still a first draft.
  • The drawings still need an engineer's review. Each BOM line is marked as settled, assumed, or still to be decided, so you can see where the tool made an assumption.

Try it out

You can try it out here: architect.musserautomation.com. You'll just need to enter a name and an email, and there are a few finished examples on the landing page if you'd like to click around first.

I'm still figuring out who this is most useful for, so please reach out if you have any feedback!