ECODRIVE03-FL*-04VRS
Writing the User Program
6-39
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
JMP - Jump Unconditional
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.
JSR - Jump to Subroutine
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.
JMP V601
JMP 0123
JSR V601
JSR 0123
Содержание Rexroth OptiFeed-FS EcoDrive 03 FLP04VRS
Страница 18: ...XVI Table of Contents ECODRIVE03 FL 04VRS DOK ECODR3 FL 04VRS FK01 EN P ...
Страница 58: ...4 20 General Instructions for Start Up ECODRIVE03 FL 04VRS DOK ECODR3 FL 04VRS FK01 EN P Notes ...
Страница 187: ...ECODRIVE03 FL 04VRS Functions 8 41 DOK ECODR3 FL 04VRS FK01 EN P fp5007fj_AE WMF Fig 8 22 Control Loop ...
Страница 241: ...ECODRIVE03 FL 04VRS Parameters 9 29 DOK ECODR3 FL 04VRS FK01 EN P SIC_2_AE WMF Fig 9 12 Signal Control ...
Страница 348: ...11 18 Command Communications ECODRIVE03 FL 04VRS DOK ECODR3 FL 04VRS FK01 EN P Notes ...
Страница 418: ...13 4 Connectors ECODRIVE03 FL 04VRS DOK ECODR3 FL 04VRS FK01 EN P Notes ...
Страница 469: ...ECODRIVE03 FL 04VRS IDS Accessories 16 3 DOK ECODR3 FL 04VRS FK01 EN P IDS_mas_AE WMF Fig 16 5 IDS Dimensions ...
Страница 470: ...16 4 IDS Accessories ECODRIVE03 FL 04VRS DOK ECODR3 FL 04VRS FK01 EN P Notes ...
Страница 489: ......