![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454174.webp)
All BASIC commands
Section 4-2
163
4-2-116 FORWARD
/i
Example
FOR opnum = 8 TO 13
OP(opnum,ON)
NEXT opnum
This loop turns on outputs 8 to 13.
Example
loop:
FOR dist = 5 TO -5 STEP -0.25
MOVEABS(dist)
GOSUB pick_up
NEXT dist
The
STEP
increment can be positive or negative.
Example
loop1:
FOR l1 = 1 TO 8
loop2:
FOR l2 = 1 TO 6
MOVEABS(l1*100,l2*100)
GOSUB 1000
NEXT l2
NEXT l1
FOR..TO..STEP..NEXT
statements can be nested (up to 8 levels deep)
provided the inner
FOR
and
NEXT
commands are both within the outer
FOR..TO..STEP..NEXT
loop.
See also
REPEAT..UNTIL
,
WHILE..WEND
.
Type
Axis command
Syntax
FORWARD
FO
Description
The
FORWARD
command moves an axis continuously forward at the
speed set in the
SPEED
axis parameter. The acceleration rate is
defined by the
ACCEL
axis parameter.
FORWARD
works on the default basis axis (set with
BASE
) unless
AXIS
is used to specify a temporary base axis.
Note: The forward motion can be stopped by executing the
CANCEL
or
RAPIDSTOP
command, or by reaching the forward limit. If stopped by
execution of the
CANCEL
or
RAPIDSTOP
command, the axis deceler-
ates to a stop at the programmed DECEL rate.
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...