Injection molding

More
06 Nov 2025 06:06 #337939 by Ritterchen
Replied by Ritterchen on topic Injection molding
Hi there, 
I implemented an DIY Arduino a few weeks back into my automatic injection molding machine. So cool to see that topic popping up again!
For the background, I have two CNC machines running on LinuxCNC as well and I am familiar with some Arduino-Coding too.

In the beginning I evaluated the exact same question as you here and went with the Arduino based PLC-Route as it is easier to implement hardware and manage timers easily, which there are a lot of in injection molding as many events in a cycle are time-based.

A few lessons learned so far were:
  • The evaluation of "Readymade" ESP32/Arduino resulted that there is no real all in one provider like Beckhoff Ethercat modules. That drove me away from it as you still need additional "raw PCB boards" for e.g. temperature input. Then "real" PLCs like Ethercat are freaking expensive if you need anything but standard IOs. Could be an option if you base everything on second hand components!
  • These modules are really nice: sequentmicrosystems.com/products/eight-t...bj3cF5BPXDmnSfa68zMp
    They are a bit more expensive then a MAX31855 etc. but a very clean solution, easy to install and you can just stack it on top of a Raspberry PI. And are very well documented too + some Libraries exist. Not affiliated with them, just made a really good impression!
  • Having temps all in one controller is nice for process debugging
  • Used Breakout boards as Optocouplers, SSR Output boards (240V AC 1-2A), external SSRs (40A) and DC Relay boards (24V) and the Temp input board of Sequent Microsystems.
    To be honest I would next time spend a bit more with Sequent Microsystems - they seem to be fairly well priced and offer a lot more IOs and flexibility then the "All in one" Arduino based PLCs. But if money is a big constraint you can go with the single modules too.
  • I prefer SSRs just because they are silent, and basically free today and never had a cheap Asian branded fail
  • For the IO side Arduino is pretty nice and fast as it is easy to connect components and debug them. E.g. for installing a linear scale I did not need a Mesa card or other boards just connected it to an interrupt and fed it to an existing Library.
  • I used BlockNot to create parallel tasks, such as asking for sensor states at fixed intervals, have interrupts for linear encoders, run all the cycle timers... that is a very cool lib to work with!
  • Okay now the butttt...
    As soon as you want to build an GUI for it it becomes annoying. Maybe its my lack of experience for it or I am not aware of better solutions. Let me know if anyone is aware of a similar GUI solution to LinuxCNC (in flexibility) but for simple controllers?!
    I tried to use Nextion Displays - which are displays with their own IC. That is cool as they mostly run smooth without Display lags in comparison to other solutions and have a GUI editor. 
    The pain is that you need to manage the whole communication between the display IC and the IO-IC (e.g. Arduino) manually. Eg. read button pushes from the display and feed data back. That is not impossible but a ton of (unnecessary?) work. Additionally the GUI modules come with good limitations in all directions- e.g. you can only have 4 data inputs into a diagram display which is already limiting on e.g. temp tracking. The graph you get is also not really useful in manner of navigation as zoom/ set scale etc. There are many things that need to be build to get something usable.
So I got stuck and ran it from basically a serial console + manually edition code for changes. That kind of works for home/DIY but is not a "solution" I would say as I run this machine for work. Okay that is a bit funny, but its actually some kind of special setup that does not exist on the market.

So my position is that I have a working machine, but no real interface.
I consider now to mange all the IO's by Arduino as nothing is really time critical and the linear encoders in my app don't need to be updated to the GUI in real time. You can also mix both options and use a motion card like Mesa or a simple Breakout card for motor control and safety IOs and do the rest with an external "PLC". 

Some strong points for LinuxCNC in this application:
  • Easy to build GUIs
  • Real time IO's for motors+safety
  • ShowHAL+HalScope is priceless for real-time debugging of states, that would need to be programmed as special IO's otherwise
  • Settings can easily saved in files - I would miss-use a .nc file to save projects, temps and timings?
Weak points for LinuxCNC in this application:
  • Calculations and conditions are just painful as you need to do everything with components, which would be a simple calc sign otherwise :/
  • Not sure how to implement a nice cycles with timings? Could be several timers connected to each other! Would be cool to be able to activate/deactivate these in real time on GUI input to control auxiliary devices.
  • Is there an option to use e.g. the HalScope inside a GUI? Or have another graph implemented?
Let me know your thoughts and considerations, happy to exchange ideas here!

Please Log in or Create an account to join the conversation.

More
20 Nov 2025 10:11 #338784 by vre
Replied by vre on topic Injection molding
Do you have some Arduino code to share ?

Please Log in or Create an account to join the conversation.

More
21 Nov 2025 08:25 #338864 by Ritterchen
Replied by Ritterchen on topic Injection molding
Yes sure, here is the code attached. Most of it runs on the timers (Block-no) and Sensors.
The temperature is not implemented in this version jet.
Mainly to control the piston (plunger) and the closing mechanics. 

Here are the electronics to get an idea. Yes its messy/ unnecessary complex.
 
Attachments:
The following user(s) said Thank You: vre

Please Log in or Create an account to join the conversation.

More
23 Nov 2025 19:52 - 23 Nov 2025 19:54 #339085 by vre
Replied by vre on topic Injection molding
I think i will use something like you but with better mcu like esp32-s3 or an sbc like rpi5(only for the better user interface)
Last edit: 23 Nov 2025 19:54 by vre.

Please Log in or Create an account to join the conversation.

More
06 Aug 2026 09:24 #348487 by Haras_abdrt
Replied by Haras_abdrt on topic Injection molding
Hello, good afternoon. I came across your post and wanted to ask you for some advice because I’m dealing with a very similar situation.

At the company I work for, we have an old Arburg 220-75.250 injection molding machine from the late 1980s. The floppy disk drive is no longer working, and I have been asked to find a way to get the machine back into operation.

I’ve been researching the machine, its control system and possible solutions, and from what I’ve seen so far, I’m starting to think that instead of trying to repair the original control, the better option might be to replace the control system and modernize the machine, potentially using something like LinuxCNC or another modern industrial control platform.

However, I have quite a few questions about how to approach a project like this.

First of all, how would you approach the retrofit from a technical point of view? What information would you consider essential to identify before starting?

I’m particularly unsure about the electrical side. How do you determine what the existing connections and signals are supposed to do? Is there normally an electrical schematic or I/O documentation that can be used to map the original controller’s inputs and outputs? If the original documentation is missing, how would you go about identifying and tracing the signals?

Could the existing sensors and switches on the machine be reused with a modern controller, or would they normally need to be replaced? For example, can the original position sensors, pressure sensors, limit switches, temperature sensors, etc. be connected directly to a modern I/O system, or does it depend on their signal type and voltage?

I’m also wondering about the hydraulic system. Would the original hydraulic valves and proportional valves normally be controllable by a modern system, or would these components also have to be replaced? How would you determine what type of signals the original valves require?

The same question applies to the injection and screw-position control. How would you interface a modern controller with the existing servo motors, drives, encoders or position feedback systems, if the machine has them?

Another important point is safety. How would you normally integrate the existing safety circuits, emergency stops, door switches, safety relays, etc. into a modern control system? Would you keep the original safety architecture wherever possible, or would you recommend replacing the safety system as part of the retrofit?

I’d also like to understand how you determine the required I/O. Is there a standard procedure for creating an I/O list for an old injection molding machine before designing the new control system?

Finally, if you have done a similar retrofit, I’d really appreciate any advice about the practical side of the project: what components you would keep, what you would replace, what information you would try to obtain from Arburg, and what mistakes or problems you would specifically look out for before starting.

If you don’t mind, I’d also be very interested in seeing any wiring diagrams, I/O lists, documentation, examples or photos from a similar retrofit that you could share.

Thanks a lot for your time. Any advice would be greatly appreciated.

Please Log in or Create an account to join the conversation.

Time to create page: 0.274 seconds
Powered by Kunena Forum