All BASIC commands
Section 4-2
230
/i
Example
A machine adds glue to the top of a box. To do this, it must switch output
8. It must detect the rising edge (appearance) and the falling edge (end)
of a box. Also, the MPOS must be set to zero when the Z position is
detected.
reg=6 'select registration mode 6 (rising edge R, rising edge Z)
REGIST(reg)
FORWARD
WHILE IN(2)=OFF
IF MARKB THEN 'on a Z mark mpos is reset to zero
OFFPOS=-REG_POSB
REGIST(reg)
ELSEIF MARK THEN 'on R input output 8 is toggled
IF reg=6 THEN
'select registration mode 8 (falling edge R, rising edge Z)
reg=8
OP(8,ON)
ELSE
reg=6
OP(8,OFF)
ENDIF
REGIST(reg)
ENDIF
WEND
CANCEL
See also
AXIS
,
MARK
,
MARKB
,
REG_POS
,
REG_POSB
,
OPEN_WIN
,
CLOSE_WIN
.
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...