Page 1 of 2 12 LastLast
  1. #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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Scanning gantry.JPG 
Views:	90 
Size:	147.7 KB 
ID:	19819  

  2. #2
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 21 Hours Ago Has been a member for 9-10 years. Has a total post count of 1,722. Received thanks 179 times, giving thanks to others 5 times.
    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.

  3. The Following User Says Thank You to m_c For This Useful Post:


  4. #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.?

  5. The Following User Says Thank You to JAZZCNC For This Useful Post:


  6. #4
    Quote Originally Posted by m_c View Post
    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.
    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!

  7. #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

  8. #6
    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).
    I don 't think you can run a machine directly off the live linuxcnc disk. But you can use it to look at the interface and get the feel for it.
    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

  9. #7
    Hi Dr Rob,

    Dr George here :D

    Which university you working in?
    www.emvioeng.com
    Machine tools and 3D printing supplies. Expanding constantly.

  10. #8
    Quote Originally Posted by dr_rob View Post
    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?
    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.

  11. #9
    Neale's Avatar
    Lives in Plymouth, United Kingdom. Last Activity: 6 Hours Ago Has been a member for 4-5 years. Has a total post count of 887. Received thanks 139 times, giving thanks to others 5 times.
    Click image for larger version. 

Name:	BOB stepper wiring diagram.jpg 
Views:	58 
Size:	18.5 KB 
ID:	19843

    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 10:19 PM.

  12. #10
    Quote Originally Posted by komatias View Post
    Hi Dr Rob,

    Dr George here :D

    Which university you working in?
    Hi Dr George,

    I work at the University of Bristol. Do you happen to be in my part of the world?!

    Rob

Page 1 of 2 12 LastLast

Similar Threads

  1. BUILD LOG: Ar last!!! Started my Gantry 3-Axis CNC Build
    By MikeyC38 in forum DIY Router Build Logs
    Replies: 59
    Last Post: 17-04-2017, 11:13 PM
  2. Fixed Gantry small precision begineer project advice
    By yasu in forum Gantry/Router Machines & Building
    Replies: 11
    Last Post: 17-10-2016, 06:14 PM
  3. Fixed z axis to gantry design
    By Lachlan in forum Gantry/Router Machines & Building
    Replies: 21
    Last Post: 20-10-2015, 08:50 PM
  4. Driving the gantry on Z axis?
    By Skipsoaring in forum Gantry/Router Machines & Building
    Replies: 15
    Last Post: 11-06-2015, 08:26 PM
  5. Gantry design advice please
    By D-man in forum Gantry/Router Machines & Building
    Replies: 10
    Last Post: 07-11-2012, 03:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •