Designing a Maintainable PLC System