Specifications

SIMATIC Instructions
9-149
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Subroutine, and Return from Subroutine Example
SM0.1
.
.
.
On the first scan:
Call SBR10 for initialization.
A conditional return (RET) from
Subroutine 10 may be used.
Each subroutine is automatically
terminated by STEP 7 Micro/WIN 32
3.0. This terminates Subroutine 10.
Network 1
LD SM0.1
CALL 10
.
Network 1
M14.3
Network 6
.
.
.
.
.
.
Start of Subroutine 10
RET
LAD STL
FBD
MAIN
SUBROUTINE 10
.
.
.
Network 6
LD M14.3
CRET
.
.
.
MAIN
SBR10
EN
SM0.1
SUBROUTINE 10
RET
M14.3
SBR10
EN
Figure 9-55 Example of Subroutine Instructions for LAD, FBD, and STL