gerritv / Grbl-Panel

A control panel for Grbl
MIT License
180 stars 103 forks source link

Jogging Metric mode #6

Closed pommen closed 10 years ago

pommen commented 10 years ago

Hi! First off: What a great concept! I will be following this closly!

While jogging the machine manually and metric box checked, the distances traveled does corelate with chosen distance. Each step gives me 5 mm (.01=0.5mm, 1=5mm and so on.)

gerritv commented 10 years ago

Thank you!!! Can you post what the Gcode is that was sent? It will be the G90 G01 line at bottom of Gcode view. What is your $13 set to? This affects the reported motion

And: have you calculated the steps per mm on your machine, and set $ params in Grbl to those settings?

pommen commented 10 years ago

Hello again, MY $13=0 (mm) check all the checkboxes i could find with the word "metric" in it.

Did some trials: Code sent: G21 G01 Y-1 F500 moves the machine 5 mm in Y- direction. Its reporting 5 mm on the display aswell.

edit

Would be good to be able to copy the text from teh gcode window*

gerritv commented 10 years ago

Then your Steps/mm is wrong, those need to be set so that a command to move 1mm actually moves 1mm. What are your settings for $100/101/102? How many steps per 1mm of movement? Do the calculation and change your settings accordingly.

but this doesn't explain the 5mm on the display. I can't reproduce that part, if I say to move 1mm it says so on the display as well. So, if you move 1mm a second time, does the display then add 5mm? or 1mm to where it was before. Maybe zero the display for that axis before doing any moves.

Copy to clipboard seems not to be easy to implement, have to think about that :-(

pommen commented 10 years ago

Strange indeed. It works fine with other SW (just checked it against 2 other)

The display adds another 5 mm as well. Its quite strange really. Running that same gcode in UGS give me 1mm.

Settings for $100/101/102 is 40/40/320 (shapeoko2 defaults)

Uploaded a small vid (shacky telecamera and all) showing perhaps a bit better what I mean.

http://youtu.be/kC0pIuT5d7I

gerritv commented 10 years ago

The video reveals the issue, the jog repeat is sending multiple commands out instead of 1. Very helpful to see the video, thanks.

What OS are you using? I am guessing Windows 7.

And can you try after clicking the Refresh button in the Settings/jog panel?

pommen commented 10 years ago

I see,

Im running a swedish vversion of windows7 home premium. Same result after pressing reset, acutally. i'vve tried all checkboxes and combos I can see now. same result.

gerritv commented 10 years ago

Mm, I can't reproduce on my Windows 7 running in Hyper V. I will dig up a Windows 7 machine, there seem to be no issues with Windows 8.1.

would just 'blipping' the mouse button help, or using keyboard keys instead? Just looking to get you going before I figure out what the problem is This has something to do with the Time() events used to time the Jog repeat. Using keyboard keys will bypass that, that doesn't use Timer().

pommen commented 10 years ago

I can test it out a windows 8.12 version in the morning for some comparison. Thanks for all the nice feedback =)

gerritv commented 10 years ago

It is my program that is causing you problems :-) Thank you for the clear info on the symptoms.

Gerrit

gerritv commented 10 years ago

Did you get a chance to test this out on a different PC?

pommen commented 10 years ago

Hi, yeah, tested it this weekend for another PC and with the old one re-formatted. Jogging with keys works nicely, its clicking it that send the 5x inputs. I couldent run a whole program due to unrecogized command filtering kept stopping the run. Looked good up thoes commands though.

2014-10-27 16:47 GMT+01:00 Gerrit notifications@github.com:

Did you get a chance to test this out on a different PC?

— Reply to this email directly or view it on GitHub https://github.com/gerritv/Grbl-Panel/issues/6#issuecomment-60615398.