Next Generation Automation for the Smart Factory…Moving PLC Control to the Edge