Welcome to Our Community

Some features disabled for guests. Register Today.

CNC xPRO Driver

Discussion in 'Other Builds' started by Spark Concepts, May 25, 2014.

  1. Justin Dewoody

    Builder

    Joined:
    May 23, 2015
    Messages:
    49
    Likes Received:
    0
    I have tried the G92 command. My machine still does the same thing. Maybe there's something wrong in my program. I have attached the program I am using to test the machine. It cuts a rounded square pocket. Maybe the program is telling the machine to do what I'm complaining about. I just don't know how to read the program well enough to know. If you guys could take a look and maybe tell me what the problem is, I would really appreciate it. Thanks!
     

    Attached Files:

  2. Macchp

    Macchp New
    Builder

    Joined:
    Mar 14, 2014
    Messages:
    42
    Likes Received:
    5
    I think the guilty is the G28 command. Try to cut it out and to me it will work ok.
    In addition, keep note that the last command in your file (M30) reset the machine and you will loose the current zero getting back to the machine zero (home position-loose of the current offset). If you want you can cut out also that command so that if you launch a command "G0 X0 Y0" it will bring the tool back to your zero position and not to the homing position..


    For your reference, you can go to this pages. You'll find lot of interesting specs on the G-code commands.
    http://www.linuxcnc.org/docs/2.5/html/gcode/gcode.html
    http://www.linuxcnc.org/docs/2.5/html/gcode/m-code.html
    http://www.linuxcnc.org/docs/2.5/html/gcode/other-code.html
     
    GrayUK likes this.
  3. Justin Dewoody

    Builder

    Joined:
    May 23, 2015
    Messages:
    49
    Likes Received:
    0
    That fixed it! Thanks again Macchp! You da man!!!!

    Justin
     
  4. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    hi! after not succeed using the cnc xpro with my linux pc, i get a windows pc. i installed the driver and tried to do some movements using universal gsender. I m happy that finally got some signals that motors and controller work, but i think i have to change some settings because the motors moved only a very little the first movement but the next i hear only a sound but no movement. i havent changed anything yet on the controller and i try this without belts on. I hope i do something wrong and not any issue with the controller.
    Could you please suggest me something to do? Thank you
     
  5. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    I tried some settings but still i cant get proper movements.. Only a bit of turn (all motors). Only every first time jogging ( clicking) but after that absolute nothing. Do you think this is a problem from settings i use or a problem with board? Im very frustrated with that thing. I have read all the posts here but nothing seems to help my situation.
    Thank you in advance.
     
  6. Ryan Lock

    Ryan Lock Veteran
    Builder

    Joined:
    Oct 12, 2014
    Messages:
    530
    Likes Received:
    293
    Heres my settings you can compare with:

    $0=10 (step pulse, usec)
    $1=255 (step idle delay, msec)
    $2=0 (step port invert mask:00000000)
    $3=6 (dir port invert mask:00000110)
    $4=0 (step enable invert, bool)
    $5=0 (limit pins invert, bool)
    $6=0 (probe pin invert, bool)
    $10=3 (status report mask:00000011)
    $11=0.020 (junction deviation, mm)
    $12=0.002 (arc tolerance, mm)
    $13=0 (report inches, bool)
    $20=0 (soft limits, bool)
    $21=0 (hard limits, bool)
    $22=0 (homing cycle, bool)
    $23=1 (homing dir invert mask:00000001)
    $24=25.000 (homing feed, mm/min)
    $25=500.000 (homing seek, mm/min)
    $26=250 (homing debounce, msec)
    $27=1.000 (homing pull-off, mm)
    $100=26.67 (x, step/mm)
    $101=26.67 (y, step/mm)
    $102=200 (z, step/mm)
    $110=5000 (x max rate, mm/min) (Go upto 7500)
    $111=5000 (y max rate, mm/min) (Go upto 7500)
    $112=1000 (z max rate, mm/min) (Go upto 1500)
    $120=150.000 (x accel, mm/sec^2)
    $121=150.000 (y accel, mm/sec^2)
    $122=150.000 (z accel, mm/sec^2)
    $130=320.000 (x max travel, mm)
    $131=525.000 (y max travel, mm)
    $132=68.000 (z max travel, mm)

    Just to check one thing, do you have endstops installed?
     
  7. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Thank you Ryan i will try them asap. No i havent installed the endstops yet.
     
  8. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    I put these setting but still the motors moved only the first time i click. I wait a little between clicking to move but still no move after the very first time each time i open the controller.
     
  9. DiggerJ

    DiggerJ Journeyman
    Builder

    Joined:
    Sep 2, 2014
    Messages:
    412
    Likes Received:
    109
    Plug in your endstops
     
  10. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Thank you for your answer. I will plug them and try again. I read that i should put them at the max point of my machines axes. Is this right? Some people do this but i see other put them on the 0,0,0. Also what cables i have to use? Currently i can use only some cables from the inside of lan cables. Should i use them or better get something else like the cables from pc fans? I suppose that i have to connect the NC point so when hit its open. Right?
     
  11. DiggerJ

    DiggerJ Journeyman
    Builder

    Joined:
    Sep 2, 2014
    Messages:
    412
    Likes Received:
    109
    Right now, all you want to do is hook them up. You can route them later. My Ramps board acted just like your board is acting until I hooked up the end stops. motion both directions after. Just do it as a test. From there, you have decisions to make regarding how and where you mount them permanently. Doesn't sound like you are there yet. And yes, neatness counts. Try to NOT run your end stop wires along side your motor wires. Shielded wires will help you keep some of the noise down, but I confess that I have just used pairs from an Ethernet cable before.
     
  12. Macchp

    Macchp New
    Builder

    Joined:
    Mar 14, 2014
    Messages:
    42
    Likes Received:
    5
  13. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Thank you. I tried but nothing changed. Should i reset the board and try again?
    My confusion is whether this is some wrong from my side or some problem from hardware itself.
    I send an email to spark company and wait to see what can i do :( .
    Currently im searching for some other controller solutions because i need to run the machine and do some work as soon as possible.
     
    #313 solarground, Jul 8, 2015
    Last edited: Jul 8, 2015
  14. Macchp

    Macchp New
    Builder

    Joined:
    Mar 14, 2014
    Messages:
    42
    Likes Received:
    5
    @JustinTime : There is the command to enable the movement even without homing the machine. But that's a good point.
    @solarground: do you enable the machine before joging? (machine control / $X)
     
  15. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Yes i have tried $X doesnt seem to enable any movement. I havent put the belts on yet im trying just to move the motors. Also I cant do home because i havent mount permantly the endstops yet. Do you think its maybe from wrong grbl installation on the controller?
     
  16. Joe Santarsiero

    Joe Santarsiero OB addict
    Staff Member Moderator Builder

    Joined:
    Oct 30, 2014
    Messages:
    902
    Likes Received:
    196
    Double check your motor connections and
    post your settings.
     
  17. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    $0 10 (step pulse, usec)
    $1 255 (step idle delay, msec)
    $2 0 (step port invert mask:00000000)
    $3 6 (dir port invert mask:00000110)
    $4 0 (step enable invert, bool)
    $5 0 (limit pins invert, bool)
    $6 0 (probe pin invert, bool)
    $10 3 (status report mask:00000011)
    $11 0.020 (junction deviation, mm)
    $12 0.002 (arc tolerance, mm)
    $13 0 (report inches, bool)
    $20 0 (soft limits, bool)
    $21 0 (hard limits, bool)
    $22 0 (homing cycle, bool)
    $23 1 (homing dir invert mask:00000001)
    $24 25.000 (homing feed, mm/min)
    $25 500.000 (homing seek, mm/min)
    $26 250 (homing debounce, msec)
    $27 1.000 (homing pull-off, mm)
    $100 26.670 (x, step/mm)
    $101 26.670 (y, step/mm)
    $102 200.000 (z, step/mm)
    $110 5000.000 (x max rate, mm/min)
    $111 5000.000 (y max rate, mm/min)
    $112 1000.000 (z max rate, mm/min)
    $120 150.000 (x accel, mm/sec^2)
    $121 150.000 (y accel, mm/sec^2)
    $122 150.000 (z accel, mm/sec^2)
    $130 570.000 (x max travel, mm)
    $131 775.000 (y max travel, mm)
    $132 68.000 (z max travel, mm)
     
  18. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    This is how i have connected the cables. Should i change anything? Sorry im total new to this i dont know what exactly to do
     

    Attached Files:

  19. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    MAAAN!! Thank you! I changed the cables and the magic happened!!! Thank you im so happy so thankfull!
     
    GrayUK likes this.
  20. Macchp

    Macchp New
    Builder

    Joined:
    Mar 14, 2014
    Messages:
    42
    Likes Received:
    5
    It seems your electrical connection are wrong.
    From OB motor datasheet, I see RED/GREEN and BLU/YELLOW to be connected respectively to A1-A2 and B1-B2 while you mixed up the connections having BLU/RED and YELLOW/GREEN.


    In addition, the motor connected to the Y must rotate in opposite direction than axes A, so in one of them you have to invert the RED with the GREEN wire connection.

    EDIT: posted just before seeing your last message!
    Glad you fixed it , but pay attention to Y and A axes as I said here above.
     
    GrayUK likes this.
  21. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Thank you Macchp i will change that now! For the Z axis when i click Z+ it moves down, to change that i have to invert the cables also?

    EDIT: I managed that, everything seems to work perfect now! Thank you again!
     
    #321 solarground, Jul 8, 2015
    Last edited: Jul 8, 2015
  22. Joe Santarsiero

    Joe Santarsiero OB addict
    Staff Member Moderator Builder

    Joined:
    Oct 30, 2014
    Messages:
    902
    Likes Received:
    196
    Enjoy
     
    GrayUK and Mark Carew like this.
  23. Ryan Lock

    Ryan Lock Veteran
    Builder

    Joined:
    Oct 12, 2014
    Messages:
    530
    Likes Received:
    293
    My apologies for your troubles you had, i gave you an incorrect wire order on other build thread. Realised now I was looking at the openbuilds NEMA17 datasheet :banghead:
     
    solarground likes this.
  24. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Hi again.. Just now i open the controller and i hear a sound like click and something smell.. At look i see that y driver has some strange thing i think its exploded!!! What happened! I havent changed anything from yesterday that all look to work perfect!! :banghead::blackeye:

    EDIT: Here is a picture how it is now! I hope i can repair that!
     

    Attached Files:

    #324 solarground, Jul 9, 2015
    Last edited: Jul 9, 2015
  25. Joe Santarsiero

    Joe Santarsiero OB addict
    Staff Member Moderator Builder

    Joined:
    Oct 30, 2014
    Messages:
    902
    Likes Received:
    196
    Driver is cooked. Contact spark.
     
  26. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Im curious why happened this thing?
     
  27. Joe Santarsiero

    Joe Santarsiero OB addict
    Staff Member Moderator Builder

    Joined:
    Oct 30, 2014
    Messages:
    902
    Likes Received:
    196
    I'm not sure. Some questions to ask would be: Were you using the proper power supply...Were the y and a slaved correctly.....did you tune the current pots....was there anything else happening at the time? Sorry buddy.
     
  28. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    Yeah i think the psu is proper 24V/15A. I dont know if it slaved correctly i think it was because yesterday motor worked fine! The pots was at the same position as i get the controller, only yesterday i uped them no more than 75% worked fine, but i set them back to 50% because the motors build some heat. Since then i have played with movements (only x and z axis i havent put belt on y axis yet) and everythink seems nice. Today i opened the controller and instantly happened that sound and smell! :(
     
  29. Joe Santarsiero

    Joe Santarsiero OB addict
    Staff Member Moderator Builder

    Joined:
    Oct 30, 2014
    Messages:
    902
    Likes Received:
    196
    Yeah. contact spark and see if they can work with you. Maybe they can flow a new driver or find you a replacement. It could have been a faulty driver, but recheck everything on your end so you don't have to go through this again.
    Don't let it bother you too much.

    Joe
     
    solarground likes this.
  30. solarground

    Builder

    Joined:
    May 27, 2015
    Messages:
    61
    Likes Received:
    9
    I have ordered a DRV8825 and i will try to change the cooked one. Sometimes bad things happens, no big deal when they can fixed at reasonable cost. I will check the voltage of the psu before conecting with the controller, add heatsinks and maybe i will put some kind of fuse to protect. This is caused maybe from short circuit but i dont understand why because havent changed any connection. I see this, is any short circuit there?
     

    Attached Files:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice