586,100 active members*
2,627 visitors online*
Register for free
Login
Results 1 to 18 of 18
  1. #1
    Join Date
    Jun 2011
    Posts
    26

    Mach3 and parallel breakoutboard PINS

    Hello,

    Im trying to setup a breakout board with mach3.

    I have a breakout board and a stepper driver for higher voltages.

    The driver is an l298 and has input ENA IN1 IN2 IN3 IN4 ENB,
    output motor A(1,2) and motor B(1,2).

    When ENA and IN1 or IN2 is high the output A is VMS, same with ENB.

    I have setup a dir and step in mach and tried to wire them to driver inputs but motor only locks up or buzzes.

    This is my first breakout wiring, the motor is a 4 wire.

  2. #2
    Join Date
    Mar 2007
    Posts
    137
    Hi, pin setup can be a pain. Take a minuet and check your ramping time and rapid traverse. Outside chance you have it wired correctly, but maybe set up parameters are asking it to hit more than top RPM, in no seconds! Good luck

  3. #3
    Join Date
    Jun 2011
    Posts
    26
    Yes, ive come to think of if i where to connect the stepper straight to the lpt, does mach3 support that?

  4. #4
    Join Date
    Jun 2007
    Posts
    3757
    L298 is just a driver chip for the stepper, or linear brush motor.
    You need dirive circuitry to sequence the 4 inputs.

    This chip is normally driven from some sort of CPU, or another pre-driver chip.

    To drive it from Mach3 you need a L297 chip driving the L298

    Download application notes/data and study them. See page 8...

    http://www.learn-c.com/l298.pdf
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  5. #5
    Join Date
    Mar 2007
    Posts
    2083
    Hi ros2468 ,

    are you using a L297 IC to convert the Mach 3 step and direction signals
    to the 2 enable and 4 inputs for the L298 ???

    the circuit diagram for the board you have built will make it easier to help

    this step and direction tester circuit from Gecko drive com
    could help you to test your driver board :--


    John
    Attached Thumbnails Attached Thumbnails StepDirectionTester.jpg  

  6. #6
    Join Date
    Jun 2007
    Posts
    3757
    We both hit the same nail on the head at the same minute, half a world away!

  7. #7
    Join Date
    Mar 2007
    Posts
    2083
    we did

    I wonder how many times that happens ??

    John

  8. #8
    Join Date
    Jun 2011
    Posts
    26
    Hello again. Ive searched the google for a solution and come up with this schematic for a l298 & l297,
    If this works with mach3 ive have 2x l298 per l297,
    Here is a picture.

  9. #9
    Join Date
    Jun 2007
    Posts
    3757
    This is easier than L6203, but dissipates more heat, but is easy to add heatsink.
    Either will work with Mach3.
    Attached Thumbnails Attached Thumbnails L297-L298.jpg  
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  10. #10
    Join Date
    Jun 2011
    Posts
    26
    Thanks that is what i have looked for. would i be able to wire the l297 to a 4 wire outputs for a mach3?

  11. #11
    Join Date
    Jun 2007
    Posts
    3757
    Mach3 direction pin goes to CW/CCW (17 on L297)
    Mach3 step pin goes to CLOCK (18 on L297)

    You allocate the Mach3 pins in Mach3 ports and pins, etc.

    You need to terminate the other pins on L297 according to the L297 app notes.

    The circuit layout details are important as far as correct connection of the 0v and sense pins, for the circuit to function as designed.

    see page 16 for what needs to connected to each pin, and it's function.
    http://www.technologicalarts.com/myfiles/data/AN470.pdf

    Lots of more information, good, bad and suspect
    Do a google search for L297 and click on images.

    This is close to what you need. Only use as a guide.
    L297/298 Stepper Driver
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  12. #12
    Join Date
    May 2011
    Posts
    0

    Mach 3

    Hi Niel see you are in the same region as me ( New Zealand )

    Im looking for someone that has more experience with Mach 3 than me

    My Background is Mechanical and i undertook to build a large Router

    Wanting to chat to someone and help me iron out the last of the Issues

    Jerky movements
    Backlash compensation
    Homing limits

    Tim

  13. #13
    Join Date
    Jun 2007
    Posts
    3757
    Tim, PM sent. New thread maybe?
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  14. #14
    Join Date
    Mar 2007
    Posts
    2083
    Hi ros2468

    found this today

    version 1 stepper driver for the reprap 3D printer used the L297 and L298 IC's

    Download The RepRap Project from SourceForge.net

    the PDF files are for the circuit diagram , components and double sided printed circuit board

    John

  15. #15
    Join Date
    Jan 2012
    Posts
    0

    Text wrong direction

    Hey Guys.http://www.cnczone.com/forums/images/smilies/wavey.gif

    I carved out some names tonight and it looks right in Mach3 on the display screen but when it carves it out. It is carving it out backwards both the letters and the names. It is like it is inverting it and would be right if you could view it through the other side of the wood. Any ideas.

  16. #16
    Join Date
    Jun 2007
    Posts
    3757
    In ports and pins, change the direction of ONE axis.
    Probably X.
    :banana:
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  17. #17
    Join Date
    Jan 2012
    Posts
    0
    Thanks that did it.

  18. #18
    Join Date
    Mar 2007
    Posts
    137
    Hello

    I hope you got your machine running.

    If you are still having trouble with pin numbers, maybe this suggestion will help. There are a couple of “dos” programs, like Mach3, only very basic, and they are free, and very simple to set up. This will give that old PC of yours with windows 95 something to do, just tell it to boot up in “dos”. Try Yeager Automation “cnc pro”. I believe you can download it from a yahoo group, probably called “cnc pro”? Another is turbo cnc. They don’t support the pulse stream for a “charge pump” but they have maybe 3% of the set up things that mach3 has. In your case, you need to get motion going, after you see your machine run, then deal with Mach3.
    Yahoo! Groups: Search Results
    DAK Engineering - TurboCNC Download

    Good Luck, Bill

Similar Threads

  1. G201/Mach3, ports and pins setup
    By xander18 in forum Benchtop Machines
    Replies: 5
    Last Post: 05-15-2011, 07:41 PM
  2. Replies: 13
    Last Post: 02-14-2010, 12:50 PM
  3. Parallel port+ input pins for use with EMC
    By visky in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 10-26-2008, 10:18 PM
  4. parallel cable pins
    By nicanor76 in forum DIY CNC Router Table Machines
    Replies: 8
    Last Post: 05-15-2008, 12:01 AM
  5. Configuration Of Output Pins In Parallel Port FOR 4 AXIS
    By Khalid in forum Open Source Controller Boards
    Replies: 2
    Last Post: 05-20-2007, 07:55 AM

Posting Permissions

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