![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454181.webp)
All BASIC commands
Section 4-2
170
4-2-127 GOTO
/i
4-2-128 HALT
/i
4-2-129 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
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...