EasyManua.ls Logo

Bosch Rexroth OptiFeed-FS EcoDrive 03 FLP04VRS - RTS - Return from Subroutine

Bosch Rexroth OptiFeed-FS EcoDrive 03 FLP04VRS
490 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
Loading...
ECODRIVE03-FL*-04VRS Writing the User Program 6-53
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
RTS - Return from Subroutine
As described for the JSR command, a subroutine must be concluded
with an RTS return command.
If several subroutine levels have been accessed in one program cycle, a
return from a higher subroutine level leads first to the next lower
subroutine level rather than directly back to the main program.
Note: The last instruction in each subroutine must be an RTS
(Return From Subroutine) command. If this command is
invoked without first jumping to a subroutine, the control
generates the error message "F- 02 06 - St. overflow. RTS."
Example:
Rts_bef_AE.WMF
Fig. 6-24: Example of Return from Subroutine Levels
The program continues after the time period of one cycle.
RTS

Table of Contents

Related product manuals