![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243191.webp)
176
Command, function and parameter description
Section 6-3
See also:
AXIS, CLOSE_WIN, MARK, MARKB, OPEN_WIN, REG_POS, REG_POSB
Examples:
Example 1
BASE(0)
catch:
REGIST(2)
WAIT UNTIL MARK
PRINT "Registration input at:";REG_POS
Example 2
A paper cutting machine uses a CAM profile to quickly draw paper through
servo-driven rollers and then stop it while it is cut. The paper is printed with a
registration mark. This mark is detected and the length of the next sheet is
adjusted by scaling the CAM profile with the third argument (
table_multiplier)
of the CAM command:
‘Set window open and close
length = 200
OPEN_WIN = 10
CLOSE_WIN = length-10
GOSUB Initial
loop:
TICKS = 0
’Set servo cycle counter to 0
IF MARK THEN
offset = REG_POS
’Next line makes offset -ve if at end of sheet
IF ABS(offset-length) < offset THEN
offset=offset - length
ENDIF
PRINT "Mark seen at:"offset[5.1]
ELSE
offset = 0
PRINT "Mark not seen"
ENDIF
1
1
Captures absolute position on rising edge of Z-marker to REG_POS.
2
Captures absolute position on falling edge of Z-marker to REG_POS.
3
Captures absolute position on rising edge of input R0 to REG_POS.
4
Captures absolute position on falling edge of input R0 to REG_POS.
5
-
6
Captures absolute position on rising edge of input R0 to REG_POS
and on rising edge of Z-marker to REG_POSB.
7
Captures absolute position on rising edge of input R0 to REG_POS
and on falling edge of Z-marker to REG_POSB.
8
Captures absolute position on falling edge of input R0 to REG_POS
and on rising edge of Z-marker to REG_POSB.
9
Captures absolute position on falling edge of input R0 to REG_POS
and on falling edge of Z-marker to REG_POSB.
10
Captures absolute position on rising edge of input R0 to REG_POS
and on rising edge of input R1 to REG_POSB.
11
Captures absolute position on rising edge of input R0 to REG_POS
and on falling edge of input R1 to REG_POSB.
12
Captures absolute position on falling edge of input R0 to REG_POS
and on rising edge of input R1 to REG_POSB.
13
Captures absolute position on falling edge of input R0 to REG_POS
and on falling edge of input R1 to REG_POSB.
axis
mode
Description