EasyManuals Logo

Siemens MCP 398C Function Manual

Siemens MCP 398C
2184 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #670 background imageLoading...
Page #670 background image
Detailed description
2.7 Program operation mode
Basic logic functions: Mode group, channel, program operation, reset response (K1)
112 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
2.7.10.4 A part program section between a start label and end label
Functionality
Via REPEAT in part program block N160, the part program processing branches to the part
program block N120 that is labeled START_1 with a start label. This part program block and
all the part program blocks up to and including the part program block marked with the end
label END_1 (N140) are repeated x number of times. If P is not specified, the part program
section (N120 - N140) is repeated exactly once. After the last repetition, the part program is
continued with the part program block N170 following the REPEATinstruction.
:
N100 ...
N120 START_1: ...
; Start label: START__1
N130 ...
N140 END_1 ...
; End label: END_1
N150 ...
N160 REPEAT START_1 END_1 P=n
; Repetition: START_1 until END_1
N170 ...
:
Note
Label search direction
The program section marked with the Start and End labels can come before or after the
REPEATinstruction. The search initially commences toward the start of the program. If the
Start label is not found, a search is made in the direction of the program end.
If the REPEAT instruction is between the Start and End label, only the part program section
from the Start label to the REPEAT instruction is repeated.
REPEAT instruction repeated.
Programming
Syntax:
REPEAT <Start_Label> <End_Label> [P=n]
Start_Labe
l
Start label to which the instruction: REPEAT branches.
Beginning of the part program section that is repeated.
Type: String
End_Label
End of the part program section that is repeated.
Type: String
P
Number of repetitions
-{}-n
Number of repetitions
Type: Integer

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals