When my brother was doing his last year of high-school in electromechanics, he
came up with the idea of doing his final project using a homebuilt PLC instead
of the usual Siemens stuff. I built the electronics and came up with a
framework so he could easily implement his GRAFCET state machine for his part
sorting robot for the PICMICRO in the JAL programming language.
This was long before Arduino, long before 'all the cool kids were doing it',
and JAL was a free compiler for the affordable PIC microcontrollers. The
Arduino of its days.