The application provides a method for assisting ladder diagram
programming, comprising the following steps: S10, setting an auxiliary
numbering area which can be displayed in a ladder diagram
programming interface, wherein the auxiliary
numbering area comprises a function switch for starting or stopping the
numbering function; S20, when a user creates a
program segment, if the user starts the numbering function, automatically adding a
step number to the created
program segment according to the logical sequence position of the created
program segment, if there is a program segment with the numbering function started after the created program segment, simultaneously modifying the
step number of the program segment with the numbering function started after the created program segment, so that the step numbers of the program segments with the numbering function started are continuously increased according to the logical sequence position; S30, when the user deletes a program segment with the numbering function started or stops the numbering function of a program segment, modifying the
step number of the program segment with the numbering function started after the program segment deleted or with the numbering function stopped, so that the step numbers of the program segments with the numbering function started are continuously increased according to the logical sequence position; and S40, replacing the step number with an actual logical sequence number during compiling. The method for assisting ladder diagram
programming can automatically add or adjust the step number during the ladder diagram programming, and improves the work efficiency.