All BASIC commands
Section 4-2
162
4-2-114 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
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...