![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585181.webp)
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
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...