Hybrid View
-
25-06-2016 #1Whilst running a small program with G20 in the first line the program executes moves that are wildly incorrect. A move of Z0.100" makes the Z axis move continually in the + direction until physically stopped by operating cycle stop. After lots of messing about a G21 was inserted in the second line of the program. It worked perfectly and accurately in Imperial moves. Absolutely no idea why!!!..Clive
The more you know, The better you know, How little you know
-
The Following User Says Thank You to Clive S For This Useful Post:
-
25-06-2016 #2
It doesn't matter if you use inch or mm for setting up your motor steps per, if you've done it right the machine will run imperial or metric code accurately.
.
The body of each feature in the code is simply in numeric units and G20 or G21 in the header tells Mach 3 if those units will be interpreted as (G21) mm or (G20) inches.
.
G20 specifies imperial, G21 specifies metric so if you are getting accurate Inch moves with G21 then you have configured your system incorrectly and your steps per out by a factor of exactly 25.4 and your initial commanded moves in inches with G20 will have been simply huge!
- NickLast edited by magicniner; 25-06-2016 at 06:54 PM.
You think that's too expensive? You're not a Model Engineer are you? :D
-
The Following User Says Thank You to magicniner For This Useful Post:
-
25-06-2016 #3
.
Not exactly correct as explained above.!! . . . It will scale the moves but not the feedrate.
Try it load road runner and put G20 on first line or type G20 in MDI before running.
The Feedrate in Gcode will be in inches minute but motors tuning is relative to MM/min. This is why you have to retune the motors if you change from metric to imperial units.Last edited by JAZZCNC; 25-06-2016 at 07:44 PM.
-
The Following User Says Thank You to JAZZCNC For This Useful Post:
-
25-06-2016 #4
Thanks for that Jazz, that's interesting.
Given the simplicity of the conversion I'm shocked that they didn't make motor tuning/feed rate automatic for changes in G Code units, I had assumed this was the case but only ever work in Metric,
Regards,
NickYou think that's too expensive? You're not a Model Engineer are you? :D
-
The Following User Says Thank You to magicniner For This Useful Post:
-
25-06-2016 #5
Many thanks for your replies. The mill is having mechanical parts modified at the moment and as soon as it is reassembled I will do some investigation and get back to you all. Once again thanks.
-
The Following User Says Thank You to ECCO For This Useful Post:
-
29-06-2016 #6
Right the mech parts are now modified ok, back to the problems. could you please check over the following calculations for steps per.
By the way this is a fully licenced version of Mach3. Have re-installed Mach3 and chosen inch base units.
Motor Steps= 1.8deg =200 steps per 1 motor rev.
Motor Micro steps =10 therefor 200x10 = 2000 micro steps per 1 motor rev
Pitch of ball screws = 5mm = 0.19685 inches per 1 motor rev
No of motor revs to move 1 inch = 1/0.19685 = 5.08 revs
No of micro steps per 1 inch move = 2000 x 5.08 =10160 micro steps per inch
Z axis is a 2:1 reduction ratio so 10160 x 2 = 20320 micro steps per inch
Many thanks ( More to follow )
-
The Following User Says Thank You to ECCO For This Useful Post:
-
29-06-2016 #7
Yes that's correct go to top of the Class.
-
The Following User Says Thank You to JAZZCNC For This Useful Post:
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
cnc 3040 and mach3 problems
By hoggy in forum Machine DiscussionReplies: 18Last Post: 11-10-2014, 10:58 PM -
tree problems!
By kingcreaky in forum Woodwork DiscussionReplies: 8Last Post: 02-06-2014, 12:35 PM -
Mach3 PC problems, help please....
By Davek0974 in forum Plasma Table MachinesReplies: 13Last Post: 30-01-2014, 07:05 PM -
NEW MEMBER: MDF Problems
By MrWiz73 in forum New Member IntroductionsReplies: 4Last Post: 31-12-2011, 12:39 AM -
homing problems in mach3
By johngoodrich in forum Artsoft Mach (3 & 4)Replies: 2Last Post: 17-09-2011, 08:28 PM
Bookmarks