Jmp - Jump Unconditional; Jsr - Jump To Subroutine - Bosch Rexroth OptiFeed-FS EcoDrive 03 FLP04VRS Functional Description

With integrated nc control
Table of Contents

Advertisement

ECODRIVE03-FL*-04VRS

JMP - Jump Unconditional

JMP V601
JMP 0123

JSR - Jump to Subroutine

JSR V601
JSR 0123
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
or
Target Instruction
When it reaches this user command, the program jumps to the specified
target location.
This allows the programmer to jump directly to another part of the
program. This enables the main program to be divided up into fixed
program blocks, which can be of great help when making changes or
additions.
An unconditional jump from the end of the program to the beginning
produces an endless loop. Such a program continues to run without
interruption.
A valid command must be present, otherwise the error message "F- 03
02 - NC-Block Nr. illegal" erfolgt.
The program proceeds to the target location following the time period of
one cycle.
or
Start instruction of the subroutine
In programs containing several identical functions, the programming can
be simplified by entering repeat functions into a subroutine.
A program structure is thus clearer and shorter.
The return from a subroutine is always automatically to the instruction with
the next sequential number following the instruction which initiated the
jump to the subroutine.
A maximum of 16 subroutine levels are possible. For more than 16 levels,
the error message "F- 02 05 - St. overflow. JSR" is issued.
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."
The program proceeds to the start instruction following the time period of
one cycle.
Writing the User Program
6-39

Advertisement

Table of Contents
loading

Table of Contents