I'm going to add to the crowd recommending Codesys on an RPi. Probably with at least 2 memory cards. Having one "normal" RPi environment lets him play around with all kinds of things, but having another card with the Codesys runtime lets him get a good intro to PLCs. Would I trust an RPi to run a machine? Probably not, but it sure makes a great simulator/trainer.