Page 3 of 3
Re: Acorn Advanced Homing sequence to marker pulse
Posted: Wed Feb 27, 2019 5:40 pm
by jj80909
I would like to utilize the index pulse from the DYN4 servo drives, but back off index mark (change the state of the input) after it has been found so that I can use one input for all three drives.
If the following moves the X axis in the positive direction at 3 IPM until Input 2 closes: M106 /X P2 F3 , what is the proper sytax to have it move via M105 to change the state of input 3?
Is the prefered method? If not, what is?
Re: Acorn Advanced Homing sequence to marker pulse
Posted: Wed Feb 27, 2019 7:09 pm
by slodat
This is my homing file..
INPUT1 = x switch
INPUT2 = Y switch
INPUT3 = Z switch
INPUT6 = all three axis ZRI paralleled up
Code: Select all
; 2019-02-26 Homing file
; cncm.hom
;
N100 ;Check for open home switch
IF [#50001] THEN M225 #100 "X Axis Home Switch Tripped!!!\nPlease Clear Before Homing\nPress Cycle Cancel To End Homing"
IF [#50002] THEN M225 #100 "Y Axis Home Switch Tripped!!!\nPlease Clear Before Homing\nPress Cycle Cancel To End Homing"
IF [#50003] THEN M225 #100 "Z Axis Home Switch Tripped!!!\nPlease Clear Before Homing\nPress Cycle Cancel To End Homing"
IF [!#50006] THEN M225 #100 "ZRI Switch Tripped!!!\nPlease Clear Before Homing\nPress Cycle Cancel To End Homing"
IF !#[50000 + 6] THEN GOTO 100
M106 /Z P-3 F15 ;Move Z minus at 5in/m until input 1 opens
M106 /Z P6 F0.5 ;Move Z minus at 0.5in/m until input 6 closes
M26 /Z ;Set Z home here
M105 /Z P3 F25 ;Back Z off Switch
M105 /Y P-2 F50 ;Move Y minus at 50in/m until input 2(Y axis switch) opens
M105 /Y P6 F1 ;Move Y plus at 1in/m until input 6(ZRI+ input) closes
M26 /Y ;Set Y home here
M106 /Y P2 F25 ;Back Y off Switch
M105 /X P-1 F50 ;Move X minus at 50in/m until input 1(X axis switch) opens
M106 /X P6 F1 ;Move X plus at 1in/m until input 6(ZRI+ input) closes
M26 /X L1276 ;Set X home here
M106 /X P-6 F5 ;Back X off ZRI+ so next axis can use it
g1x0y0f200
Re: Acorn Advanced Homing sequence to marker pulse
Posted: Wed Feb 27, 2019 7:12 pm
by jj80909
I think I figured it out:
M92 /X L1 ; Move to +X limit switch and back off until it clears.
M105 /X P-2 F1 ; Move -X at 1 IPM until input 2 closes.
M106 /X P2 F0.5 ; Move +X at 0.5 IPM until input 2 opens.
M26 /X ; Set X home position.
I'll have to test it our later this evening.
Re: Acorn Advanced Homing sequence to marker pulse
Posted: Wed Feb 27, 2019 7:14 pm
by jj80909
slodat,
Thanks for the info...very helpful.