Welcome, Guest. Please login or register.
Did you miss your activation email?
December 20, 2014, 08:37:14 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Yet another steps per inch post - losing my marbles?
Pages: 1   Go Down
Print
Author Topic: Yet another steps per inch post - losing my marbles?  (Read 2583 times)
0 Members and 1 Guest are viewing this topic.
Zaaephod
Active Member

Offline Offline

Posts: 90


View Profile
« on: June 11, 2010, 07:23:24 PM »

Hey guys

Ok,
direct drive motors, so no gear reduction.
1.8 degree motors = 200 steps per rev.
10x microstepping = 2000 steps per rev.
8tpi 2 start screws (4tpi effective) = 8000 steps per rev.

This is the part I'm not sure of.

I want  to run metric programs and DRO's, so divide 8000 by 25.4 ?
=========
I set steps per in the mach motor screen to 314.96
EDIT: I also thought maybe it was the rounding, and set it to 314.96062 with the same result.

When I run from zero, to 700 mm, the measurement I get is approximately 1mm farther than it should be.

Am I missing something here?

Thanks Smiley


EDIT2:

Swiped from another post, but modified to fit my numbers:
4 TPI = 1/4 = 0.25 inch pitch 0.25 x 25.4 = 6.35mm pitch
so
200 steps per rev x 10 micro steps = 2000 steps per rev
1 rev = 6.35mm so 2000/6.35 = 314.96062 steps per mm.

It would appear my way of calculating it came up right too?
« Last Edit: June 11, 2010, 07:36:51 PM by Zaaephod » Logged
ger21
Global Moderator
*
Offline Offline

Posts: 4,100



View Profile WWW
« Reply #1 on: June 11, 2010, 07:39:23 PM »

700/701 * 314.96 = 314.511328

Screws have some error, and are rarely what they are supposed to be. Try this number and see if it's better.
Logged

Zaaephod
Active Member

Offline Offline

Posts: 90


View Profile
« Reply #2 on: June 11, 2010, 09:22:33 PM »

Thanks, I will give that a shot in the morning, I'm curious how you came up with that number though.
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 4,100



View Profile WWW
« Reply #3 on: June 12, 2010, 06:06:28 AM »

When you tell it to go 700mm, it goes 701. So you divide 700 by 701, and multiply it by the steps per unit, which should get you what you want.
Logged

Zaaephod
Active Member

Offline Offline

Posts: 90


View Profile
« Reply #4 on: June 12, 2010, 11:46:20 AM »

That worked perfectly. I'll need to test it over the entire distance of the table, but it's close enough for today's jobs.

One more question. I've modified my Cycle Start button warn the user of different things to check before the machine starts. It works, but the problem is, I'm using an OEMButton function to "push" cycle start after the code in the script. The downside is, it makes you have to push the button 3 times before it starts. Once to run the code, once to move the gantry to the starting position, and again to actually start the spindle and begin cutting.

I guess the question is, is there a vbscript function that can tell mach3 to do a cycle start, without calling the OEMButton function?

Thanks Smiley
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 4,100



View Profile WWW
« Reply #5 on: June 12, 2010, 12:24:47 PM »

I'd change it to use two buttons. Have the cycle start check the conditions, and if OK, run. If not OK, hit the other button to get ready to run.
Logged

Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!