All BASIC commands
Section 4-2
229
/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 compo-
nent is found, an actuator pushes it off the belt. To prevent that the sen-
sor 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
ENCODER
SENSOR
GLUE APPLICATOR
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...