392
2. Since the condition comes after the While-statement, the condition is tested
(checked) before the commands inside the loop are executed.
Example:
10
$
A
_
While A > 0
_
A – 1
$
A
_
”GOOD”
_
WhileEnd
k
k
k
k
k
Program Control Commands (CTL)
Break
Function:
This command breaks execution of a loop and continues from the next
command following the loop.
Syntax:
Break
_
Description:
1. This command breaks execution of a loop and continues from the next
command following the loop.
2. This command can be used to break execution of a For-statement, Do-
statement, and While-statement.
Example:
While A>0
_
If A > 2
_
Then Break
_
IfEnd
_
WhileEnd
_
A
^
()))))
Executed after Break
Prog
Function:
This command specifies execution of another program as a subroutine.
In the RUN Mode, this command executes a new program.
Syntax:
Prog ”file name”
_
Example:
Prog ”ABC”
_
Description:
1. Even when this command is located inside of a loop, its execution immediately
breaks the loop and launches the subroutine.
2. This command can be used as many times as necessary inside of a main
routine to call up independent subroutines to perform specific tasks.
3. A subroutine can be used in multiple locations in the same main routine, or it
can be called up by any number of main routines.
21- 11
Command Reference
Содержание CFX-9970G
Страница 22: ... CFX 9970G ...
Страница 62: ...Manual Calculations 2 1 Basic Calculations 2 2 Special Functions 2 3 Function Calculations Chapter 2 ...
Страница 452: ...435 1 2 3 4 5 Program for Circle and Tangents No 4 Step Key Operation Display ...
Страница 453: ...436 Program for Circle and Tangents No 4 Step Key Operation Display 6 7 8 9 10 ...
Страница 454: ...437 11 12 13 14 15 Program for Circle and Tangents No 4 Step Key Operation Display ...
Страница 455: ...438 16 17 18 Program for Circle and Tangents No 4 Step Key Operation Display ...
Страница 458: ...441 1 2 3 4 5 Program for Rotating a Figure No 5 Step Key Operation Display ...