-
05-12-2016 #1
Hello everyone,
I have been reading posts on this forum for the last few months, but have gotten to the point where I need some help.
I have put together a 4 axis gantry (picture attached) which I would like to control from my PC. I have 4 motors (NEMA 34, NEMA 23XL, NEMA 23 and a NEMA 17) which come with inbuilt encoders, but for now I will not be using the encoders. But may wish to in the future. The gantry is going to be used to drive a microphone around near a speaker.
My current problem is that I am a little stuck on how to actually control the system. I have 2 power supplies (to run 2 motors each) and 4 microstep drivers (3 MSD752, and 1 MSD880 from Motion Control). I think I have powered each of the micro-controllers up, and the motors. But where I am getting rather lost is what data to send to the drivers.
I have a parallel port which is connected to a RoutOut CNC break out board.
From many of the videos and blogs I have seen people have been using MACH software to send data to the BoB (their BoB's look to be a lot fancier than mine however!) and then onto the drivers. My issue is that I can't install MACH3 software (which most people look to use, I can install MACH 4 however) and am not too sure how to send data to the drivers without it.
I was wondering if anyone out there has any simple advice on how I could control the motors using the BoB I have.
Sorry for this being such a stupid questions but I've gotten myself into that stage where I am reading about stuff which might well be way too detailed for what I am trying to do!
Any advice would be very much appreciated.
Rob
-
06-12-2016 #2
What version of windows are you trying to install Mach on?
To use the parallel port driver, it must be a 32bit version up to Windows 7. Any 64bit version, or Windows 8 onwards, the parallel port driver will not work.
Mach3/4 itself should install and run fine on any version of windows, it's just the parallel port driver that has the version restrictions.Avoiding the rubbish customer service from AluminiumWarehouse since July '13.
-
The Following User Says Thank You to m_c For This Useful Post:
-
06-12-2016 #3
Hi Rob,
First don't get too hung up on the Bob cheap or Expensive they all do the same Job which is providing an easy way to connect to the Pulse device. They don't actually do much more than pass signals thru and thou not recommended you don't actually need one at all.
You could connect directly to the parallel port cable but it doesn't provide any isolation to the PC so not recommended as could damage the PC if anything goes wrong.
The Pulse device in your case would be the PC parallel port which needs Motion control software like Mach3/4 which provide Parallel port Driver which interfaces with the PC.
So put simply you need Motion control software like Mach3/4 or LinxCNC.
In your Case I suggest using LinxCNC as it's free and can be run directly from Boot CD ( I think.? I'm not into linx others will correct me if wrong).
To run Machine the process goes.
Control software >>>Pulse Device(parallelport)>>>BOB (optional) >>>Motor Drive>>>Motor.
Why can't you install Mach3.? is it because using 64Bit PC.?
-
The Following User Says Thank You to JAZZCNC For This Useful Post:
-
06-12-2016 #4
Hi m_c,
Thanks for the info. I appreciate that a lot. Having read through some of the forums it looks like the issue might be that my work runs all sorts of virus software in the background which can interfere with the Mach3 installation. I am going to try and get that resolved by hopefully persuading them to let me wipe the HD and have a machine totally dedicated to the scanning unit.
Thanks again!
-
06-12-2016 #5
Hi Jazz,
Thank you for the detailed reply. I really appreciate it.
I did wonder why the BoB was so bare. When I turned it over to look at the pins a lot of them were not connected to anything. My only concern was that the BoB I have does not have any protection (from what I can see) for the PC. I think all it does it makes connection easier. And some of them look to need a 5V power supply which threw me off!
My problem with the software is probably due to my work running all sorts of virus/network software which causes conflicts often. But hopefully I will have a dedicated Win 7 machine running all the software for the gantry. But I will look into Linux as it might be easier to integrate with some of our other software.
My other question was with the stepper driver device. I have powered it from the main power supply and then connected the motor. Remaining on the controller was Pul +, Pul -, Dir +, Dir -, and En +, En -. Do you happen to have a good source of info I could look at regarding how to wire this end of the system up? This evening I have ended up reading all about the input signals for a stepper motor but I fear I might be going into more detail that I need. And then you end up feeling lost!
Again, thank you for the help, it's really nice of you.
Rob
-
I suggest using LinxCNC as it's free and can be run directly from Boot CD ( I think.? I'm not into linx others will correct me if wrong).
http://www.linuxcnc.org/linuxcnc-2.7-wheezy.iso Mach3 might be better to play with and the demo version will let you use it for a max of 500 lines of code...Clive
The more you know, The better you know, How little you know
-
06-12-2016 #7
Hi Dr Rob,
Dr George here :D
Which university you working in?https://emvioeng.com
Machine tools and 3D printing supplies. Expanding constantly.
-
06-12-2016 #8
Can't give source where to look but I can explain it easy enough.
The Motion control device provides OUTPUTS which it sends out signals and pulses required to tell the drives which direction and how far to move. These OUTPUTS basicly fall into two types MOTOR OUTPUTS for each Axis and General OUTPUTS which provide 5Vdc Signal.
Each OUTPUT as Positive Negative connection.
So DIR connection is MOTOR OUTPUT and controls the Direction to travel. This is done by sending 0V or 5v depending on direction.
PUL Connection is the PULSE MOTOR OUTPUT which gives stream of pulses relating to how far to move.
The En is Signal to the drive to ENABLE/DISABLE. Often this isn't used and left unconnected.
If used this would be connected to General OUTPUT or could be controlled by external device like relay by sending 5Vdc.
So in your case there will be Pins on the BOB which are MOTOR OUTPUTS and Some which are General OUTPUTS. If using the parallel port they tend to stick to standard arrangement. ie: Pin2 =XDir Pin3=Xpul etc.
There will also be pins for INPUTS.
Hope this helps.
-
06-12-2016 #9
If it helps, here's a rough wiring diagram that would suit a lot of break-out boards and stepper drivers. As JazzCNC says, the Enable signal is sometimes considered optional; if you leave it disconnected then the stepper driver defaults to "Enabled" anyway. The "Pulse" connection is sometimes marked "Step"; again, previous post explains why.
I've just had a quick look at the "manual" for your BOB; not very helpful, is it? However, you should be able to identify step and dir signals for each axis (=stepper driver). Doesn't appear to be an Enable output anyway but I might have misread it. All ground connections (- connections on stepper driver) go to a single common ground terminal on the BOB. The manual then tells you what pin numbers in Mach3 you should configure for each signal (Mach3>Config>Ports and Pins). However, there is still this question about whether you are running on a 32-bit Windows; the parallel port driver will not work on any 64-bit Windows version.Last edited by Neale; 06-12-2016 at 11:19 PM.
-
07-12-2016 #10
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
BUILD LOG: Ar last!!! Started my Gantry 3-Axis CNC Build
By MikeyC38 in forum DIY Router Build LogsReplies: 74Last Post: 16-06-2018, 11:29 PM -
Fixed Gantry small precision begineer project advice
By yasu in forum Gantry/Router Machines & BuildingReplies: 11Last Post: 17-10-2016, 07:14 PM -
Fixed z axis to gantry design
By Lachlan in forum Gantry/Router Machines & BuildingReplies: 21Last Post: 20-10-2015, 09:50 PM -
Driving the gantry on Z axis?
By Skipsoaring in forum Gantry/Router Machines & BuildingReplies: 15Last Post: 11-06-2015, 09:26 PM -
Gantry design advice please
By D-man in forum Gantry/Router Machines & BuildingReplies: 10Last Post: 07-11-2012, 04:17 PM
Bookmarks