Git Product home page Git Product logo

Comments (4)

nullsub avatar nullsub commented on May 28, 2024

I dont know anything about your particular problem. but this fork seems to be dead. Look at the fork at github.com/chamnit for a more recent version. The probability that someone will help you is higher;)

from grbl.

chamnit avatar chamnit commented on May 28, 2024

To do active low, all you need to do is set the stepper mask in the EEPROM settings. To do this, flash grbl to your Arduino, connect to it through a terminal interface. '$' shows the EEPROM settings. The mask correlates to the config.h pins: so pins 1/2 are serial rx/tx and are ignored, 3/4/5 is the stepper XYZ pulse active high/low mask, and 6/7/8 is the stepper XYZ direction mask. Just set the mask with the integer number of the binary mask.

from grbl.

jpitz31 avatar jpitz31 commented on May 28, 2024

So if I am understanding you correctly, Since pins 0,1 are tx,rx, and I want XYZ step set to active low (000) and XYZ direction either set to 000 or 111. That would create a mask of 11100000 or 00000000. Would that be correct?

My servo controller is calling for pins for step, direction, stepper enable and of course gnd. By setting the mask to either of the above two masks and not being able to have a pin for each enable axis. When I send a jog (pulse) on the X asis my motor turns on and does not stop until I send a jog (pulse) in the opposite direction. I cannot get the servo to operate off of a single pulse, I am sending the following gcode: "G91\nG20\nG00 X" + speed + " Y0.000 Z0.000\n

Thanks

Joe

Is my mask correct and do you know why my servo motors turn on and do not turn off unless I send an opposite jog (pulse)

from grbl.

chamnit avatar chamnit commented on May 28, 2024

You're correct about how to set the mask, but the mask is there to set the correct orientation of your machine coordinate system. Traditionally the positive directions are X-right, Y-away, Z-up. If this is flipped, you use the mask to flip them. Also, I think there is a misunderstanding what the G00 command does. It move to a position not a speed. If you use G00 X10, it'll move 10mm (unless in inch mode) to the right. If it's G00 X-10, it'll move 20mm to the left to the X-10 position. To set speed, use the G01 with the F command, which will set feed rate. So move back to the origin from X-10 at a feedrate of 100mm/min, you would type G01 X0 F100. Hope that helps.

from grbl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.