Omron SYSMAC CJ Operation Manual page 181

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

All BASIC commands
4-2-125 GOTO
4-2-126 HALT
4-2-127 HEX
Example
main:
GOSUB routine
GOTO main
routine:
PRINT "Measured position=";MPOS;CHR(13);
RETURN
See also
GOTO
/i
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
/i
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.
/i
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
Section 4-2
169

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents