To solve the problems in PLC programming in current engineering,this article introduces a modular method for PLC programming,elaborates on the working principle of the program,programming rules,common equipment control,and the writing of functional blocks,in order to provide reference for relevant personnel.