379
Command Reference
20- 11
Main Routine
Subroutines
D
C
E
I
J
Prog ”E”
Prog ”I”
Prog ”J”
A
Prog ”D”
Prog ”C”
Level 1 Level 2 Level 3 Level 4
4. Calling up a subroutine causes it to be executed from the beginning. After
execution of the subroutine is complete, execution returns to the main routine,
continuing from the statement following the Prog command.
5. A Goto~Lbl command inside of a subroutine is valid inside of that subroutine
only. It cannot be used to jump to a label outside of the subroutine.
6. If a subroutine with the file name specified by the Prog command does not
exist, an error occurs.
7. In the
RUN Mode
, inputting the Prog command and pressing
w
launches the
program specified by the command.
Return
Function:
This command returns from a subroutine.
Syntax:
Return
_
Description:
Execution of the Return command inside a main routine causes execution of the
program to stop.
Example:
Prog ”A”
Prog ”B”
1
→
A
_
For A
→
B To 10
_
Prog ”B”
_
B + 1
→
C
_
C
^
Next
_
Return
Executing the program in File A displays the result of the operation
(11).
Stop
Function:
This command terminates execution of a program.
Syntax:
Stop
_
Description:
1. This command terminates program execution.
2. Execution of this command inside of a loop terminates program execution
without an error being generated.
Summary of Contents for CFX-9850G PLUS
Page 23: ... fx 9750G PLUS CFX 9850G PLUS CFX 9850GB PLUS CFX 9850GC PLUS CFX 9950GB PLUS ...
Page 28: ...xxvi Contents ...
Page 100: ...72 ...
Page 126: ...98 ...
Page 170: ...142 ...
Page 180: ...152 ...
Page 208: ...180 ...
Page 220: ...192 ...
Page 232: ...204 ...
Page 348: ...98 ...
Page 438: ...410 ...
Page 449: ...421 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 450: ...422 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Page 451: ...423 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 452: ...424 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Page 455: ...427 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...
Page 484: ...456 ...