Appendix 1: PLC application programming best practice