![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243119.webp)
104
Command Reference List
Section 6-2
6-2-3
Loop and Conditional Structures
The table below outlines the loop and conditional structure commands. Refer
to the specified pages for details.
6-2-4
Program Commands and Functions
The table below outlines commands used for general programming purposes.
Refer to the specified pages for details.
INPUT
INPUT waits for a string to be received and assigns the
numerical value to variable.
152
KEY
KEY returns TRUE or FALSE depending on if character is
received.
153
LINPUT
LINPUT waits for a string and puts it in VR variables.
154
OP
OP sets one or more outputs or returns the state of the first 24
outputs.
166
OUTDEVICE
OUTDEVICE defines the default output device.
168
PRINT outputs a series of characters to a serial port.
170
PSWITCH
PSWITCH turns ON an output when a predefined position is
reached, and turns OFF the output when a second position is
reached.
172
REGIST
REGIST captures an axis position when a registration input or
the Z mark on the encoder is detected.
174
SETCOM
SETCOM sets the serial communications.
185
Name
Description
Page
Name
Description
Page
FOR TO STEP
NEXT
FOR ... NEXT loop allows a program segment to be repeated
with increasing/decreasing variable.
140
GOSUB RETURN
GOSUB jumps to a subroutine at the line just after
label. The
program execution returns to the next instruction after a
RETURN is given.
143
GOTO
GOTO jumps to the line containing the
label.
143
IF THEN ELSE
ENDIF
IF controls the flow of the program base on the results of the
condition.
150
ON GOSUB or
GOTO
ON GOSUB or ON GOTO enables a conditional jump to one
of several labels.
166
REPEAT UNTIL
REPEAT ... UNTIL loop allows the program segment to be
repeated until the condition becomes TRUE.
178
WHILE WEND
WHILE ... WEND loop allows the program segment to be
repeated until the condition becomes FALSE.
195
Name
Description
Page
Statement separator:
“ : “
The statement separator enables more statements on one
line.
114
Comment field: “ ‘ “
The single quote enables a line not to be executed.
114
AUTORUN
AUTORUN starts all the programs that have been set to run at
start-up.
120
COMPILE
COMPILE compiles the current program.
127
COPY
COPY copies an existing program in memory to a new pro-
gram.
128
DEL
DEL deletes a program from memory.
131
DIR
DIR displays a list of the programs held in memory, their size
and their RUNTYPE.
132
EDIT
EDIT allows a program to be modified using a VT100 Termi-
nal.
135