How-to’s
Section 5-1
301
The figure shows the possible scenarios for absolute origin search plus limit
switches. These scenarios depend on the position of the moving part when the
power comes on.
The program example that does this origin search sequence is given below.
'Absolute origin switch: IN0
'Left limit switch: IN1
'Right limit switch: IN2
BASE(0)
DATUM_IN=0
FWD_IN=2
REV_IN=1
SERVO=ON
WDOG=ON
DATUM(4)
WA(1)
WAIT UNTIL MTYPE=0 OR IN(1)=OFF
IF IN(1)=ON
FORWARD
WAIT UNTIL IN(0)=ON
WAIT UNTIL IN(0)=OFF
CANCEL
DATUM(4)
WA(1)
WAIT IDLE
ENDIF
FORWARD
REVERSE
min limit switch
origin limit switch
max limit switch
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...