@fcauwe, I'm trying to do the same: To control a PLC using a RPi from scratch, but I'm having troubles. I'd like to contact you. Please reply.