All BASIC commands
Section 4-2
169
4-2-125 GOTO
/i
4-2-126 HALT
/i
4-2-127 HEX
/i
Example
main:
GOSUB routine
GOTO main
routine:
PRINT "Measured position=";MPOS;CHR(13);
RETURN
See also
GOTO
Type
Program control command
Syntax
GOTO label
Description
The
GOTO
structure enables a jump of program execution.
GOTO
jumps program execution to the line of the program containing the label.
Arguments
•
label
A valid label that occurs in the program. An invalid label will give a
compilation error before execution.
Labels can be character strings of any length, but only the first 15
characters are significant. Alternatively line numbers may be used
as labels.
Example
loop:
PRINT "Measured position = ";MPOS;CHR(13);
WA(1000)
GOTO loop
See also
GOSUB..RETURN
Type
System command
Syntax
HALT
Description
The
HALT
command stops execution of all program tasks currently run-
ning. The command can be used both on Command Line Terminal as in
programs. The
STOP
command can be used to stop a single program
task.
Note:
HALT
doesn’t stop any motion. Currently executing, or buffered
moves will continue unless they are terminated with a CANCEL or RAP-
IDSTOP command.
Arguments
N/A
Example
No example.
See also
PROCESS
,
STOP
.
Type
I/O command
Syntax
HEX
Description
This command is used in a print statement to output a number in hexa-
decimal format.
Arguments
N/A
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...