Plc learning is not difficult, everyone will have different habits and characteristics in programming, and we can't insist on consistency. But some good habits should be followed by most people. Firstly, the logical relationship and time sequence relationship are straightened out, and the program block diagram is compiled; Second, the main program, subroutine and interrupt program should be allocated reasonably; The third is to allocate registers reasonably and compile register symbol table.