Omron TJ2-MC64 - PROGRAMMING Programming Manual page 180

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

BASIC commands
/i
Example
Components are placed on a flighted belt. The flights are 120 mm apart. The
components are on the belt 30 mm from the flights. When a component is
found, an actuator pushes it off the belt. To prevent that the sensor finds a
flight instead of a component, registration with windowing is used.
REP_DIST=120 'sets repeat distance to pitch of belt flights
REP_OPTION=ON
OPEN_WIN=30 ' sets window open position
CLOSE_WIN=90 ' sets window close position
REGIST(4+256) ' R input registration with windowing
FORWARD ' start the belt
box_seen=0
REPEAT
WAIT UNTIL MPOS<60 ' wait for centre point between flights
WAIT UNTIL MPOS>60 ' so that actuator is fired between flights
IF box_seen=1 THEN ' was a box seen on the previous cycle?
OP(8,ON) ' fire actuator
WA(100)
OP(8,OFF) ' retract actuator
box_seen=0
ENDIF
IF MARK THEN box_seen=1 ' set "box seen" flag
REGIST(4+256)
UNTIL IN(2)=OFF
CANCEL ' stop the belt
WAIT IDLE
PROGRAMMING MANUAL
fig. 58
SENSOR BEAM
SENSOR
RAM
174

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents