07.08.2013 Views

Turbo PMAC Users Manual Manual

Turbo PMAC Users Manual Manual

Turbo PMAC Users Manual Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12-12<br />

Delta Tau <strong>Turbo</strong> <strong>PMAC</strong> User <strong>Manual</strong><br />

Which Direction to Home?: The most common of these situations is the case in which you do not know<br />

on which side of the home trigger you are when you power-up. In this case, you must move into one of<br />

the limit switches to make sure you are at one end of travel (this can be done by homing into the limit,<br />

much as in the above example). Then you can do a homing move the other direction into the real home<br />

trigger. A sample motion program routine that does this is:<br />

CLOSE OPEN PROG 102 CLEAR<br />

I223=10 ; Home speed 10 cts/msec positive direction<br />

I224=$20000 ; Disable hardware limits<br />

I225=$78208 ; Servo IC 2 Channel 2 for flags<br />

I226=0 ; No home offset<br />

I7222=2 ; Capture on rising edge of a flag<br />

I7223=1 ; Use PLIM2 as flag (positive end limit)<br />

HOME2 ; Home into limit<br />

I223=-10 ; Home speed 10 cts/msec negative direction<br />

I224=$0 ; Re-enable hardware limits<br />

I7222=11 ; Capture on flag low and index channel high<br />

I7223=0 ; Use HOME2 (home flag) as trigger flag<br />

HOME2<br />

CLOSE<br />

; Do actual homing move<br />

A sample PLC Program routine that does this is:<br />

CLOSE<br />

M233->X:$130,13,1 ; #2 Desired-velocity-zero bit<br />

M245->Y:$140,10,1 ; #2 Home complete bit<br />

OPEN PLC 11 CLEAR<br />

I223=10 ; Home speed 10 cts/msec positive direction<br />

I224=$20000 ; Disable hardware limits<br />

I225=$78208 ; Servo IC 2 Channel 2 for flags<br />

I226=0 ; No home offset<br />

I7222=2 ; Capture on rising edge of a flag<br />

I7223=1 ; Use PLIM2 as flag (positive end limit)<br />

CMD"#2HM" ; Home into limit<br />

WHILE (M245=1) ; Waits for Home Search to start<br />

ENDWHILE<br />

WHILE (M233=0) ; Waits for Home motion to complete<br />

ENDWHILE<br />

I223=-10 ; Home speed 10 cts/msec negative direction<br />

I224=$0 ; Re-enable hardware limits<br />

I7222=11 ; Capture on flag low and index channel high<br />

I7223=0 ; Use HOME2 (home flag) as trigger flag<br />

CMD"#2HM" ; Do actual homing move<br />

WHILE (M245=1) ; Waits for Home Search to start<br />

ENDWHILE<br />

WHILE (M233=0) ; Waits for Home motion to complete<br />

ENDWHILE<br />

DIS PLC11 ; Disables PLC once Home is found<br />

CLOSE ; End of PLC<br />

Executing Individual Motor Moves

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!