EasyManua.ls Logo

Omron TJ2-MC64 - PROGRAMMING - Page 335

Omron TJ2-MC64 - PROGRAMMING
362 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Examples and tips
PROGRAMMING MANUAL 329
Revision 1.0
fig. 50
Example
start:
WAIT UNTIL IN(1)=ON
SPEED=10
FORWARD
WAIT UNTIL IN(2)=ON
prod_pos=MPOS
CANCEL
WAIT IDLE
PRINT "Product Position : "; prod_pos
SPEED=100
MOVEABS(0)
WAIT IDLE
GOTO start
5.2.5 Position on a grid
fig. 51
A square palette has sides 1m long. It is divided into a 5 x 5 grid, and each of
the positions on the grid contains a box which must be filled using the same
square pattern of 100mm by 100mm. A dispensing nozzle controlled by
digital output 8 must be turned on when filling the box and off at all other
times.
speed
Forward
Moveabs
IN(1)
IN(2)
t
CANCEL
WAIT IDLE
PRINT "Product position"
SPEED=100
MOVEABS(0)
WAIT IDLE
Start:
WAIT UNTIL IN(1)=ON
WAIT UNTIL IN(1)=ON
SPEED=10
FORWARD
WAIT UNTIL IN(2)=ON

Related product manuals