摘要 |
In a sequence controller which is capable of debugging a program including a plurality of sequence programs, a program head code is provided in the program to identify respective sequence programs. In executing the program, the number of sequence programs which are executed is counted by detecting the program head codes associated therewith. Thus, sequence processing can be effected for a predetermined number of sequence programs by stopping the processing of the sequence when the count of the detected program head codes becomes equal to the predetermined number. In addition, it is possible to count only those sequence programs which satisfy a certain condition, such as sequence programs which require a particular operation or relate to a particular control element. In this way, debugging of the program is facilitated.
|