WorkRenishaw AMPD
A simulator so printer R&D did not need a printer.
On a placement in Additive Manufacturing Products I worked on the software for Renishaw’s metal 3D printers. The piece I still point at is a simulation of the RenAM 500Q that I built in C# and C++ and got to run at almost real time, so R&D could try a feature and show a build without running the printer.
Product photograph
A RenAM 500Q, the machine the simulator modelled. Product photograph, not the simulator.
Problem
A metal printer is an expensive way to find out a feature is wrong, and a mistake in R&D can damage the machine. The team still needed to try those features, and to show a build, before anyone started a print.
What I did
It was my second placement. The team wrote the software that controls Renishaw’s metal 3D printers. I worked on features and bugs in that software. The simulation was my suggestion, and it was the first project I built on my own. It stands in for the controller of the RenAM 500Q, the four-laser machine: the part that drives the lasers, the wiper and the elevator. It takes the commands the software would send to a real machine. Beside it I built a viewer that shows what the build chamber would look like. Together they let the team run a full build of a part without a physical print.
Additive Manufacturing Products, during the Renishaw software apprenticeship. I was one placement engineer on the division’s software, and I did not own the printer. The simulation was my own project. My line manager checked my findings, and a colleague pointed me at the threading problem.
Constraints
The printers and the software that controls them already existed, and the simulation had to live inside that software. The laser paths on screen had to be exactly the ones the machine prints, and the simulation had to keep pace with the real controller, or nobody would choose it over the machine. I was one placement engineer, not the owner of the machine. I have no measurement of the time or the prints it saved.
Decisions
- Stand in for the controller and answer the software’s commands at close to the pace of the real one, so trying a feature did not have to start with a physical build.
- Learn the machine from the machine. I changed the state of the printers in the team’s lab, tried the command that has to succeed before a build can start, and checked each finding with my line manager before building it in.
- Show the laser paths on screen as the build ran, so a build could be shown to someone without a machine in the room.
- Check it against the real thing. The product owner watched full builds on the simulator closely, to verify the laser paths were exactly what the machine prints.
Result
A simulation of the RenAM 500Q that ran a full build of a part at almost real time: about five minutes slow in every hour. The team could test the whole system by running a build file against it, and keep one test build as a baseline. Alongside it, the features and bug fixes from that placement.
Sources
- My account
The software is Renishaw’s and is not public, so this page is my own account of the placement. It follows the report I wrote for the degree in 2019, which is where the speed figure comes from, and my CV. The report is not public either.
- The machine
Renishaw’s public page for the RenAM 500Q, the four-laser machine the simulator modelled. It is not a picture of the simulator.
Reflection
The first version ran much slower than the machine. I had put too much work inside locked sections, so the threads waited on each other. Moving that work out got it to almost real time. I also built it without writing the tests first, and later had to go back to the machine to check behaviour my notes no longer explained. I would start with the tests.
Technical notes
C# and C++ on Windows, in Visual Studio. The desktop interface was WPF with the MVVM pattern. Team Foundation Server for source control and the backlog. The team worked in Kanban.
Skills
C#, C++, C++/CLI, WPF, MVVM, OpenCV, Multithreading
Related
- Renishaw SPDReplacing a factory calibration tool that was holding up the instrument.
- Renishaw CMMR&D software for a probe that could see inside a part.
- Renishaw CDSA plug-in manager for an application that had to serve more than one machine.
- Renishaw LCPDWindows tools for people writing laser-calibration firmware.
- Renishaw FrameworkA shared maths library, where a quiet bug would have travelled.
