Detailed description2.7 Program operation modeBasic logic functions: Mode group, channel, program operation, reset response (K1)Function Manual, 11/2006, 6FC5397-0BP10-2BA01132.7.10.5A part program section between a Start label and the key word: ENDLABELFunctionalityViaREPEATin part program block N150, the part program processing branches to the partprogram block N120 that is labeledSTART_1with a start label. This part program block andall the part program blocks up to and including the part program block marked with the keywordENDLABEL(N140) are repeated x number of times. If P is not specified, the partprogram section (N120 - N140) is repeated exactly once. After the last repetition, the partprogram is continued with the part program block N170 following theREPEATinstruction.:N100...N120START_1:...; Start label: START__1N130...N140ENDLABEL:...; End label: Keyword ENDLABELN150...N160REPEATSTART_1END_1P=n;Repetition: START_1 until END_1N170...:NoteLabel search directionThe program section marked with the Start and End labels can come before or after theREPEATinstruction. The search initially commences toward the start of the program. If theStart label is not found, a search is made in the direction of the program end.If no keywordENDLABELis located between the Start label and theREPEATinstruction, thepart program section from the Start label to theREPEATinstruction is repeated.ProgrammingSyntax:REPEAT LabelStart label to which the instruction:REPEATbranches.Beginning of the part program section that is repeated.Type: StringPNumber of repetitions-{}-nNumber of repetitionsType: Integer