PLC underlying software structure