![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243158.webp)
143
Command, function and parameter description
Section 6-3
superimposed on the RS-232C programming port 0 when using Motion Per-
fect.
Arguments:
n
The specified input device. When this argument is omitted, the port as speci-
fied by INDEVICE will be used.
variable
The name of the variable to receive the ASCII code.
Precautions:
Channel 0 is reserved for the connection to Motion Perfect and/or the com-
mand line interface. Please be aware that this channel may give problems for
this function.
See also:
INDEVICE, INPUT, KEY, LINPUT
Example:
The following line can be used to store the ASCII character received on the
Motion Perfect port channel 5 in k.
GET#5, k
6-3-87
GOSUB RETURN
Type:
Structural Command
Syntax:
GOSUB
label
...
RETURN
Description:
The GOSUB structure enables a subroutine jump. GOSUB stores the position
of the line after the GOSUB command and then jumps to the specified label.
Upon reaching the RETURN statement, program execution is returned to the
stored position. Labels can be character strings of any length, but only the first
15 characters are significant.
Precautions:
Subroutines on each task can be nested up to 8 levels deep.
Arguments:
label
A valid label that occurs in the program. An invalid label will give a compilation
error before execution.
See also:
GOTO
Example:
main:
GOSUB routine
GOTO main
routine:
PRINT "Measured position=";MPOS;CHR(13);
RETURN
6-3-88
GOTO
Type:
Structural Command
Syntax:
GOTO
label
Description:
The GOTO structure enables a jump of program execution. GOTO jumps pro-
gram execution to the line of the program containing the label. Labels can be
character strings of any length, but only the first 15 characters are significant.
0
RS-232C programming port 0
1
RS-232C serial port 1
2
RS-422A/485 serial port 2
5
Motion Perfect port 0 user channel 5
6
Motion Perfect port 0 user channel 6
7
Motion Perfect port 0 user channel 7