Rts - Return From Subroutine - Bosch Rexroth OptiFeed-FS EcoDrive 03 FLP04VRS Functional Description

With integrated nc control
Table of Contents

Advertisement

ECODRIVE03-FL*-04VRS

RTS - Return from Subroutine

DOK-ECODR3-FL*-04VRS**-FK01-EN-P
RTS
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:
Fig. 6-24: Example of Return from Subroutine Levels
The program continues after the time period of one cycle.
Writing the User Program
Rts_bef_AE.WMF
6-53

Advertisement

Table of Contents
loading

Table of Contents