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?
Acorn Advanced Homing sequence to marker pulse
Moderator: cnckeith
-
- Posts: 19
- Joined: Sun Feb 11, 2018 1:39 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Acorn Advanced Homing sequence to marker pulse
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 793
- Joined: Thu Apr 12, 2018 11:16 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Acorn Advanced Homing sequence to marker pulse
This is my homing file..
INPUT1 = x switch
INPUT2 = Y switch
INPUT3 = Z switch
INPUT6 = all three axis ZRI paralleled up
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
Acorn powered CNC router
Tree Journeyman 425 mill - Acorn & DMM
Hardinge Accuslide Gang Tool Lathe Acorn Conversion
Tree Journeyman 425 mill - Acorn & DMM
Hardinge Accuslide Gang Tool Lathe Acorn Conversion
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 19
- Joined: Sun Feb 11, 2018 1:39 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Acorn Advanced Homing sequence to marker pulse
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.
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.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 19
- Joined: Sun Feb 11, 2018 1:39 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: No
- CPU10 or CPU7: No
Re: Acorn Advanced Homing sequence to marker pulse
slodat,
Thanks for the info...very helpful.
Thanks for the info...very helpful.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)