One of our early automated tools on the inkjet cartridge assembly line was controlled by a hp calculator that had an expansion slot. I think the app that opened and closed valves and actuators was written in BASIC. The workmanship of those things was at least as good as some modern PLCs.