Beginner: Axes, Engraving and Scaling
07 Oct 2015 17:45 #63534
by Micromet
Beginner: Axes, Engraving and Scaling was created by Micromet
Several general questions - first 2 relating to Marcus Bowman's excellent book "CNC Milling in the workshop"
1)Axes - Marcus has the X axis in his description of a gantry type cnc mill as being perpendicular to the gantry and the Y-axis as being parallel to the gantry. However, my desktop cnc router/mill/engraver machine requested me to setup the machine with the X-axis parallel to the moving gantry and the Y-axis perpendicular. Is there an accepted convention on this matter or do you just choose your machine axes for the proportions of the work and CAD diagram to fit (i.e. if your CAD diagram has an X dimension greater than the Y dimension - then you setup the machine according to Marcus's instruction - or vice-versa - you set up the machine X-Y differently or rotate the CAD diagram).
2) Engraving - Marcus on page 119 in calculating either the width of the cut engraved ine or the depth of the cut engraved line employs "width of tip" as a parameter. To my mind the "width of tip" is totally variable and equal to "width of the cut line" and varies between 0 at the "sharp" end of the engraving cutter to the maximum where the cutting edge becomes the cutter shaft.
The Calculation: "Width of cut line = tip width +2 x depth x TanA (half-angle of cutter)" should just be Width of cut line = 2 x depth x TanA. Has Marcus got this wrong or have I?
Now - nothing to do with Marcus. Is there a relationship between "Motor steps per revolution" and CAD diagrams that can be optimised. In setting up my machine I noticed that changing the "Motor steps per revolution" altered the size of the axes test lines produced - there was a definite one-to-one relationship. Doubling the Motor steps halved the line length - nothing revolutionary there. But 2 things struck me. Motor steps per revolution appears to be a stepper motor variable - is this possible and is there an upper or lower limit to the number of steps?
And if this is a variable - is there an optimum relationship between motor steps and CAD diagram size i.e. you could make a CAD diagram "Big" because its easiest to get the details right and then you use the "Motor Steps per revolution" to "Scale" the diagram down to output size - or if you want to make a "Big" object - just take a normal CAD diagram and use the "Motor Steps per revolution" to make the object bigger. Also I'm guessing that the Motor Steps per revolution is the main arbiter on the precision of the created object - analogous to pixel numbers for screen displays.
1)Axes - Marcus has the X axis in his description of a gantry type cnc mill as being perpendicular to the gantry and the Y-axis as being parallel to the gantry. However, my desktop cnc router/mill/engraver machine requested me to setup the machine with the X-axis parallel to the moving gantry and the Y-axis perpendicular. Is there an accepted convention on this matter or do you just choose your machine axes for the proportions of the work and CAD diagram to fit (i.e. if your CAD diagram has an X dimension greater than the Y dimension - then you setup the machine according to Marcus's instruction - or vice-versa - you set up the machine X-Y differently or rotate the CAD diagram).
2) Engraving - Marcus on page 119 in calculating either the width of the cut engraved ine or the depth of the cut engraved line employs "width of tip" as a parameter. To my mind the "width of tip" is totally variable and equal to "width of the cut line" and varies between 0 at the "sharp" end of the engraving cutter to the maximum where the cutting edge becomes the cutter shaft.
The Calculation: "Width of cut line = tip width +2 x depth x TanA (half-angle of cutter)" should just be Width of cut line = 2 x depth x TanA. Has Marcus got this wrong or have I?
Now - nothing to do with Marcus. Is there a relationship between "Motor steps per revolution" and CAD diagrams that can be optimised. In setting up my machine I noticed that changing the "Motor steps per revolution" altered the size of the axes test lines produced - there was a definite one-to-one relationship. Doubling the Motor steps halved the line length - nothing revolutionary there. But 2 things struck me. Motor steps per revolution appears to be a stepper motor variable - is this possible and is there an upper or lower limit to the number of steps?
And if this is a variable - is there an optimum relationship between motor steps and CAD diagram size i.e. you could make a CAD diagram "Big" because its easiest to get the details right and then you use the "Motor Steps per revolution" to "Scale" the diagram down to output size - or if you want to make a "Big" object - just take a normal CAD diagram and use the "Motor Steps per revolution" to make the object bigger. Also I'm guessing that the Motor Steps per revolution is the main arbiter on the precision of the created object - analogous to pixel numbers for screen displays.
Please Log in or Create an account to join the conversation.
07 Oct 2015 18:49 #63536
by andypugh
If you get this wrong you will end up with mirror parts.
Stepper motors have 50 poles, and run a 4-step 2-phase pattern so have 200 steps per revolution. You then have the option of microstepping in the drives, and then you can have a gear ratio to the machine axes, and a variable pitch of the leadscrew. The calculations in Stepconf end up as a single number in the INI file which says how many steps LinuxCNC needs to send to the drivers to make the machine move one engineering unit.
(Note that you can use metric G-code on an imperial machine and vice-versa by using G20 / G21 and also most CAM software is happy to swap units between the model and the G-code too.
In fact the native units in AutoDesk Inventor are centimeters, if you look at the raw data)
Replied by andypugh on topic Beginner: Axes, Engraving and Scaling
On a typical milling machine the X is longer than the Y. But you can configure any way you want. Just be aware that if you stand with X left-to-right then X should increase as the tool moves right (or the table moves left), Y should increase as the tool moves away (or the table moves forward) and Z should increase as the tool moves up (or as the table moves down).Is there an accepted convention on this matter or do you just choose your machine axes for the proportions of the work and CAD diagram to fit
If you get this wrong you will end up with mirror parts.
Engraving cutters do not come to a perfect point, (otherwise they would not cut). They have an angled-flat at the end.Has Marcus got this wrong or have I?
No, not in the way that you describe. You should set up the machine to move exactly one engineering unit per commanded engineering move. So it should move 1 inch for a G0 X1 on an imperial machine, or exactly 25.4mm for a G0 X 25.4 on a metric machine. You then scale the CAD to make the actual part size you want.Now - nothing to do with Marcus. Is there a relationship between "Motor steps per revolution" and CAD diagrams that can be optimised.
Stepper motors have 50 poles, and run a 4-step 2-phase pattern so have 200 steps per revolution. You then have the option of microstepping in the drives, and then you can have a gear ratio to the machine axes, and a variable pitch of the leadscrew. The calculations in Stepconf end up as a single number in the INI file which says how many steps LinuxCNC needs to send to the drivers to make the machine move one engineering unit.
(Note that you can use metric G-code on an imperial machine and vice-versa by using G20 / G21 and also most CAM software is happy to swap units between the model and the G-code too.
In fact the native units in AutoDesk Inventor are centimeters, if you look at the raw data)
The following user(s) said Thank You: Micromet
Please Log in or Create an account to join the conversation.
08 Oct 2015 08:08 #63559
by Micromet
Replied by Micromet on topic Beginner: Axes, Engraving and Scaling
Hi Andy - thanks for the detailed answers. Regarding the stepper motor revolutions question: The Mach3 setup that I had to walk through to setup and test my cnc machine requested an input of 400 steps on each of the X,Y,Z motors. When I imported the Mach3.xml file into linuxcnc stepconf - these figures somehow had been translated as 200 steps - why? And the reason I asked about the scaling was that even with the Stepconf "X,Y,Z steps per revolution reset to 400, a test cutting of the linuxcnc example arcspiral.ngc was still half the stated size of the image in the linuxcnc 3D view. So if 400 steps is the preferred number of steps, then are you saying I need to change the Leadscrew pitch value - in my case halve the number of revolutions to achieve the correct size of the cut example. I think I need to go back to the Mach3 setup to see exactly what default values were in that setup for Driver microstepping and leadscrew pitch (or their equivalents in Mach3). In my naive appreciation, as I was only asked to input certain values to get the machine to work, I was unaware of the other variables that may have needed modification. Am I also right in assuming that once I get the correct values into Stepconf for my machine - I don't really have to worry again.
Please Log in or Create an account to join the conversation.
08 Oct 2015 18:27 #63565
by BigJohnT
Replied by BigJohnT on topic Beginner: Axes, Engraving and Scaling
Can you zip up the mach xml file and the generated stepconf file and attach them?
JT
JT
The following user(s) said Thank You: Micromet
Please Log in or Create an account to join the conversation.
09 Oct 2015 00:17 #63582
by Micromet
Replied by Micromet on topic Beginner: Axes, Engraving and Scaling
HI JT - very good of you to offer to help me. The attached zip file contains:
Mach3Mill.xml - which is the Mach3 config that I created following the 3020T machine setup instructions.
Mach3Millv2.stepconf - is the linuxcnc conversion from the Mach3 file above (I may have altered the Steps/rev when I found that the scaling was wrong, and I had to add the Estop parport pin link.
ChangeXY.stepconf - is a modification to Mach3Millv2.stepconf that takes into account the replies I have got from this thread - given by andypugh - i.e. the conventional X-Y plane setup and the information regarding no. of stepper motor steps and micro-stepping.
Thanks again for any help you can give.
Mach3Mill.xml - which is the Mach3 config that I created following the 3020T machine setup instructions.
Mach3Millv2.stepconf - is the linuxcnc conversion from the Mach3 file above (I may have altered the Steps/rev when I found that the scaling was wrong, and I had to add the Estop parport pin link.
ChangeXY.stepconf - is a modification to Mach3Millv2.stepconf that takes into account the replies I have got from this thread - given by andypugh - i.e. the conventional X-Y plane setup and the information regarding no. of stepper motor steps and micro-stepping.
Thanks again for any help you can give.
Please Log in or Create an account to join the conversation.
Time to create page: 0.182 seconds