Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to energize motors? #166

Closed
tomauga opened this issue Jun 9, 2017 · 21 comments
Closed

How to energize motors? #166

tomauga opened this issue Jun 9, 2017 · 21 comments
Labels
Milestone

Comments

@tomauga
Copy link

tomauga commented Jun 9, 2017

I need to be able to run multiple files on the same work piece at the same coordinates and change tools between. (Using F-Engrave)

I haven't found a way to energize/lock motors so this can be done without accidentally changing an axis. Is there UI for this?

I haven't tried tool changes in a gcode file yet. Is this supported? If so are motors locked? How to resume etc.

@dirtdiver9
Copy link

dirtdiver9 commented Jun 9, 2017 via email

@tomauga
Copy link
Author

tomauga commented Jun 9, 2017

Thanks Patrick. How are you setting the home position? And which controller are you using?

In ChiliPeppr there is a button to energize the motors so you dont accidentally change the x/y.

-Tom

@dirtdiver9
Copy link

dirtdiver9 commented Jun 9, 2017 via email

@tomauga
Copy link
Author

tomauga commented Jun 9, 2017

Which grbl controller are you using?

@dirtdiver9
Copy link

dirtdiver9 commented Jun 9, 2017 via email

@neilferreri
Copy link
Member

I leave my steppers enabled all the time when connected using grbl. That said, if I change tools, I think it's good practice to home the machine afterwards. Are all of your cuts starting at 0,0 or do you have them already arranged in your workspace?

@tomauga
Copy link
Author

tomauga commented Jun 9, 2017

My cuts all start at 0,0. I was just hoping Cheton could add a button that would energize the steppers. I can always use the $md/$me commands for TinyG. Just not very friendly.

Another problem (which I reported) is not all the software brings the spindle back to 0,0 when the file is finished and cncjs hasnt been working for me to set workspace 0,0.

@cheton
Copy link
Collaborator

cheton commented Jun 10, 2017

Sure! I will add Motor Enable ($me) and Motor Disable ($md) buttons in the next release.

@cheton cheton added this to the 1.9 milestone Jun 10, 2017
@rgallus
Copy link

rgallus commented Jun 13, 2017

Thanks cheton, I was going to make this same request.

@cheton
Copy link
Collaborator

cheton commented Jun 18, 2017

@tomauga @rgallus

May I confirm if you're able to use {me:0} and {md:0} commands from your side as well as sending $me and $md commands? I'd like to send commands in JSON format, just want to make sure if can work for TinyG firmware v0.97.

@rgallus
Copy link

rgallus commented Jun 18, 2017 via email

@tomauga
Copy link
Author

tomauga commented Jun 19, 2017

@cheton Yes, I have access to both json and $ versions of the command. Please note that they are only active for the timeout period. ChiliPeppr gets around this by continually sending me until you press the un-energize button at which point he sends md.

@cheton
Copy link
Collaborator

cheton commented Jun 20, 2017

@tomauga
Thank you for reminding me. I will follow the same way for energizing motors:
https://github.com/chilipeppr/widget-tinyg/blob/master/widget.js#L674

@rgallus
Copy link

rgallus commented Jun 20, 2017 via email

@cheton
Copy link
Collaborator

cheton commented Jun 20, 2017

@rgallus
Could you type $sys command to show your settings? You can try setting {ej:1}to enforce JSON mode.

@rgallus
Copy link

rgallus commented Jun 20, 2017 via email

@cheton
Copy link
Collaborator

cheton commented Jun 21, 2017

Added in the commit a48de34. You can see a preview below. I will publish a new release in the next few days if no issues found.

image

@rgallus
Copy link

rgallus commented Jun 21, 2017 via email

@tomauga
Copy link
Author

tomauga commented Jun 21, 2017

Great job, thanks Cheton!

@cheton
Copy link
Collaborator

cheton commented Jul 1, 2017

Added in 1.9.6

@cheton cheton closed this as completed Jul 1, 2017
@rgallus
Copy link

rgallus commented Jul 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants