380
Example:
For 2
→
I To 10
_
If I = 5
_
Then ”STOP” : Stop
_
IfEnd
_
Next
This program counts from 2 to 10. When the count reaches 5, however,
it terminates execution and displays the message “STOP.”
k
k
k
k
k
Jump Commands (JUMP)
Dsz
Function:
This command is a count jump that decrements the value of a control
variable by 1, and then jumps if the current value of the variable is zero.
Syntax:
Parameters:
Variable Name: A to Z,
r
,
θ
[Example] Dsz B : Decrements the value assigned to variable B by 1.
Description:
This command decrements the value of a control variable by 1, and then tests
(checks) it. If the current value is non-zero, execution continues with the next
statement. If the current value is zero, execution jumps to the statement following
the multi-statement command (:), display command (
^
), or carriage return (
_
).
Example:
10
→
A : 0
→
C :
Lbl 1 : ?
→
B : B+C
→
C :
Dsz A : Goto 1 : C
÷
10
This program prompts for input of 10 values, and then calculates the
average of the input values.
Goto~Lbl
Function:
This command performs an unconditional jump to a specified location.
Syntax:
Goto <value or variable> ~ Lbl <value or variable>
Parameters:
Value (from 0 to 9), variable (A to Z,
r
,
θ
)
Description:
1. This command consists of two parts: Goto
n
(where
n
is a value from 0 to 9)
and Lbl
n
(where
n
is the value specified for Goto). This command causes
program execution to jump to the Lbl-statement whose value matches that
specified by the Goto-statement.
20- 11
Command Reference
Variable Value
G
G
G
G
G
0
_
Dsz <variable name> : <statement>
:
<statement>
^
Variable Value = 0
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 ...