Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 10:55:20 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Basic Problems
Pages: 1   Go Down
Print
Author Topic: Basic Problems  (Read 520 times)
0 Members and 1 Guest are viewing this topic.
Franklin
Active Member

Offline Offline

Posts: 4


View Profile
« on: September 21, 2010, 08:58:34 AM »

Hey Guys,

I am new to this Forum and wanted to say that this is very cool!

I already have a question:

I just got a 5 axis control board.

Now i dont want to use this for a CNC Machine but for my Robot.

So i want to creat a new Software specific for my robot.

What i need to know is what kind of command does MACH3 use to move the motors 1 step?!

Or how can i realize that?

Thanks for your help

-- Franklin
Logged
Overloaded
Global Moderator
*
Offline Offline

Posts: 3,072



View Profile
« Reply #1 on: September 21, 2010, 09:07:55 AM »

You could set your "steps per" in motor tuning to 1, then command any move you want in increments of 1.
MDI or G Code X1 would move the X axis 1 step.
If I'm on the right track........
Russ
Logged

"I haven't failed. I've just found 10,000 ways that won't work."         Edison

"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Franklin
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #2 on: September 21, 2010, 10:03:30 AM »

Well if i understand you correct with your method i will still use MACH3.

What i want to do is have a button in my VB Script that tells the X axis to move 200 steps and the Y axis 100 steps for example!!

i have never programmed a parallel port before.

How can i do that?

thanks

Franklin
Logged
Overloaded
Global Moderator
*
Offline Offline

Posts: 3,072



View Profile
« Reply #3 on: September 21, 2010, 10:19:43 AM »

Not sure I understand you completely. You dont want to use Mach at all then.
"button in my VB Script" ? ? or, Script in a button ?

Code "G0 X200 Y100"    in a button might do what you want.

I better leave this to the pros.
Russ
Logged

"I haven't failed. I've just found 10,000 ways that won't work."         Edison

"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,258


Super Kitty.


View Profile WWW
« Reply #4 on: September 21, 2010, 11:38:17 AM »

Franklin,

Mach outputs step and direction signals using two parallel port output pins for each motor.
The direction signal is held HIGH for one direction of rotation and LOW for the other direction of rotation.
The step signal is a pulse (usually active low) with one pulse for each step (or microstep) of the motor.

Hope this helps.

Tweakie. 
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Franklin
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #5 on: September 22, 2010, 12:40:42 PM »

yeah thats exactly what i wanted to know.
So it is just an impulse really that is sent by the Parallel Port to the control board, then the motor makes 1 step to the left or right depending on the other pin (high or low)!!!

So what i could do is in my own program that i have for my robot program a button that sends 200 impulses (1 every 5 microseconds) and the motor will make 200 steps!

is that correct?!?

thanks a lot Smiley

Talk soon
Logged
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,258


Super Kitty.


View Profile WWW
« Reply #6 on: September 23, 2010, 01:19:25 AM »

Franklin,

You may need to experiment a bit with the pulse width (depending on your stepper motor driver board) but yes that's all you need to do.

Tweakie. 
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Franklin
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #7 on: September 23, 2010, 01:09:04 PM »

Awesome!
Yeah I guess it needs to be around 2 micro sec long!
But i guess I just have to write a small program to test it!
Thanks a lot for the fast answers!
If I have more problems I'll write again!
Talk soon
Franklin
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!