Hello Guest it is April 18, 2024, 10:20:03 PM

Author Topic: Basic Problems  (Read 4836 times)

0 Members and 1 Guest are viewing this topic.

Basic Problems
« on: September 21, 2010, 09: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
Re: Basic Problems
« Reply #1 on: September 21, 2010, 10: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
Re: Basic Problems
« Reply #2 on: September 21, 2010, 11: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
Re: Basic Problems
« Reply #3 on: September 21, 2010, 11: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

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: Basic Problems
« Reply #4 on: September 21, 2010, 12:38:17 PM »
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. 
PEACE
Re: Basic Problems
« Reply #5 on: September 22, 2010, 01: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 :)

Talk soon

Offline Tweakie.CNC

*
  • *
  •  9,198 9,198
  • Super Kitty
    • View Profile
Re: Basic Problems
« Reply #6 on: September 23, 2010, 02: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. 
PEACE
Re: Basic Problems
« Reply #7 on: September 23, 2010, 02: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