6-32 Writing the User Program ECODRIVE03-FL*-04VRS
DOK-ECODR3-FL*-04VRS**-FK01-EN-P
CST - Clear Subroutine Stack
0 = Clear the subroutine stack
1 = Correct the subroutine stack by 1 level
2 = Correct the subroutine stack by 2 levels
and so on until
9 = Correct the subroutine stack by 9 levels
0 = Task 1 and Task 2
1 = Task 1
2 = Task 2
This command can be used to correct the subroutine stack.
If several subroutines are accessed within one program cycle, a direct
return across several levels is not possible with the RTS command. If the
subroutine stack has been corrected using the ’CST’ command, a
subsequent ’RTS’ command will execute a direct return across several
levels.
Note: If all the subroutine stacks are cleared, no ’RTS’ command
may follow the ’CST’ command, or the error message "F- 02
06 - St. underflow RTS" is displayed.
Example:
Cst_bef_AE.WMF
Fig. 6-13: Example Overview of Subroutine Stack Levels
CST 1 1