NCBOX Linuxcnc 2.6 Spindle Orientation Question
11 Nov 2013 20:57 #40736
by tkamsker
NCBOX Linuxcnc 2.6 Spindle Orientation Question was created by tkamsker
Hi,
i spent now several Days to get Spindle Orientation running on an NCBox with Andys image (linuxcnc 8.04)
i compiled an 2.6pre and everything is normal but N19 doesn't work.
So i read all the stuff i could find and the configs simply did not start the motor
Question 1 ) is it the case that i need an Encoder on the spindle with A,B and Index ???
I only (see picture ) have one Hall sensor which works.
So i then found mr haberler style and used his ngc files as starting point.
Then i tried to REMAP M19 so it gave me an unknown m code ,..
i moved then to M419 and it used the file ,..
And i finally got an Version working using Remap on an NGC file and use of several M66 E xx functions Video is like
So i could be happy and proceed with Toolchanger on the carousel but my question
How to do it right ? Are there several Paths to it ?
like orient module
motion pins and the ngc style ?
So if anyone has an hint please
i also ad the fotos to see my test situation
enjoy
thomas
There you see my test environment with
NCBOX Triple Beast my enclosure the cabling the PCB i build driving the NPN Switch
This is the inside of the head where you can see the Metal part for index and the switch (which is from an Bridgeport 412 -
i spent now several Days to get Spindle Orientation running on an NCBox with Andys image (linuxcnc 8.04)
i compiled an 2.6pre and everything is normal but N19 doesn't work.
So i read all the stuff i could find and the configs simply did not start the motor
Question 1 ) is it the case that i need an Encoder on the spindle with A,B and Index ???
I only (see picture ) have one Hall sensor which works.
So i then found mr haberler style and used his ngc files as starting point.
Then i tried to REMAP M19 so it gave me an unknown m code ,..
i moved then to M419 and it used the file ,..
And i finally got an Version working using Remap on an NGC file and use of several M66 E xx functions Video is like
So i could be happy and proceed with Toolchanger on the carousel but my question
How to do it right ? Are there several Paths to it ?
like orient module
motion pins and the ngc style ?
So if anyone has an hint please
i also ad the fotos to see my test situation
enjoy
thomas
There you see my test environment with
NCBOX Triple Beast my enclosure the cabling the PCB i build driving the NPN Switch
This is the inside of the head where you can see the Metal part for index and the switch (which is from an Bridgeport 412 -
Please Log in or Create an account to join the conversation.
11 Nov 2013 21:39 #40739
by andypugh
M19 is a working M-code in 2.6. You shouldn't need to remap it.
www.linuxcnc.org/docs/devel/html/gcode/m-code.html#sec:M19
All that it does is output an orient request and angle on HAL pins, and wait for a "complete" status.
You would need to use these HAL pins to make your spindle rotate. I think that you can probably do this fairly simply with a "mux2" hal component and an and2.
The and2 is set up so that it is true if motion.spindle-orient is true and the position switch is false. Then that output switches the mux2 between passing the spindle speed request to the spindle drive or a fixed value that is just enough to rotate the spindle slowly.
I could write some HAL code, but I have no way to test it, and there may be quirks I have missed.
There is a dedicated spindle-orient HAL function, but I don't think it is much help to you. www.linuxcnc.org/docs/devel/html/man/man9/orient.9.html
Replied by andypugh on topic NCBOX Linuxcnc 2.6 Spindle Orientation Question
Then i tried to REMAP M19 so it gave me an unknown m code
M19 is a working M-code in 2.6. You shouldn't need to remap it.
www.linuxcnc.org/docs/devel/html/gcode/m-code.html#sec:M19
All that it does is output an orient request and angle on HAL pins, and wait for a "complete" status.
You would need to use these HAL pins to make your spindle rotate. I think that you can probably do this fairly simply with a "mux2" hal component and an and2.
The and2 is set up so that it is true if motion.spindle-orient is true and the position switch is false. Then that output switches the mux2 between passing the spindle speed request to the spindle drive or a fixed value that is just enough to rotate the spindle slowly.
I could write some HAL code, but I have no way to test it, and there may be quirks I have missed.
There is a dedicated spindle-orient HAL function, but I don't think it is much help to you. www.linuxcnc.org/docs/devel/html/man/man9/orient.9.html
The following user(s) said Thank You: tkamsker
Please Log in or Create an account to join the conversation.
12 Nov 2013 01:13 #40745
by tkamsker
Replied by tkamsker on topic NCBOX Linuxcnc 2.6 Spindle Orientation Question
Thank you for the fast answer that is so cool
i can develop but i have never used mux2 and and2 i ´ll read that up and give it a try
if it works i am happy to write down an how to
Do you have in your files some example i can use as an start
(i thought the reason of my M error is because M19 is already known - )
I used an S100 M3 to rotate that worked verry accurate (because of the heavy spindle)
and the bridgeport 412 has a brake as well so
thx
thomas
i can develop but i have never used mux2 and and2 i ´ll read that up and give it a try
if it works i am happy to write down an how to
Do you have in your files some example i can use as an start
(i thought the reason of my M error is because M19 is already known - )
I used an S100 M3 to rotate that worked verry accurate (because of the heavy spindle)
and the bridgeport 412 has a brake as well so
thx
thomas
Please Log in or Create an account to join the conversation.
12 Nov 2013 01:20 #40746
by BigJohnT
Replied by BigJohnT on topic NCBOX Linuxcnc 2.6 Spindle Orientation Question
Please Log in or Create an account to join the conversation.
Time to create page: 0.090 seconds