![background image](http://html1.mh-extra.com/html/omron/smartslice-grt1-ml2/smartslice-grt1-ml2_programming-manual_742305346.webp)
Examples and tips
PROGRAMMING MANUAL
340
R
e
vi
si
o
n
1
.0
The difference between the expected position and the actual position is
measured with a photocell. This is the correction factor.
Every time a correction is made, the origin position is updated accordingly.
Example
fig. 59
conveyor=0
labeller=1
virtual=15
SERVO AXIS(conveyor)=1
SERVO AXIS(labeller)=1
WDOG=1
BASE(labeller)
CONNECT(1,conveyor)
ADDAX(virtual)
FORWARD AXIS(conveyor)
REGIST(1)
WAIT UNTIL MARK=0
loop:
WAIT UNTIL MARK
correction=expected_pos
MOVE(correction) AXIS(virtual)
WAIT IDLE AXIS(virtual)
OFFPOS=-labelcorrection
REGIST(1)
WAIT UNTIL MARK=0
GOTO loop
t
speed
0
0
0
OFFPOS
correction
labeller
conveyor