Omron trajexia CJ1W-MCH72 Operation Manual page 174

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-116 FORWARD
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.
/i
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
Section 4-2
163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents