vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.58k stars 533 forks source link

Add new parameters? #989

Open sfinexer opened 6 years ago

sfinexer commented 6 years ago

I remade GRBL as me in b-CNC to add new parameters $140 $141 $142?

sfinexer commented 6 years ago

GRBL has a shortcoming associated with homing_pulloff.

And if, on one of the axes, the maximum displacement is less than the necessary movement to disconnect the end sensor of the other axis. Then I can not use the homing cycle.

In other words, homing_pulloff or not enough to open the end sensor for one axis, or more than moving on the other axis. This is possible in the case of a long one axis, but too short the other axis of the machine. https://github.com/gnea/grbl/issues/523

sfinexer commented 6 years ago

What, nobody knows a code section that reads all 256 parameters from GRBL ???

MARIOBASZ commented 6 years ago

I'm sorry, I have not read you. It also hurts when I ask a question and I do not receive help, (sometimes, sometimes yes and thanks) even more when my intention in general is to load some new utility. In virtue up to now, I have been able to continue advancing using the contributions made by others. $ 140 to $ 142 did you upload it in grbl? If so, we must upload it to BCNC. I noticed then how and where I have loaded it for a development that I am doing (an automatic change of tools of reduced cost), if it is not provided by someone before the solution. By the way, two things: I saw that I had a problem when in a code the distances "i" and "j" were incorrect for a C2; I have not put with my CNC, the problem was that it did not leave the notice that the error is due to incorrect values ​​in C2 or C3? If so, you should ask Harvie if she can restore the warning notices that, by mistake, have been disabled (I mentioned it in another topic). In a previous copy, these notifications work correctly. The second is that I read you about what you wrote before. Maybe I need help to complete an optimization of the grinding process, using, (at least for now) two diameters of endmill for the emptying of copper for PCB. Do you have knowledge and it may interest you to help me? I spread the restlessness to the rest of the community.

sfinexer commented 6 years ago

@MARIOBASZ The bottom line is, $27 = homing_pulloff And it is the same for all axes. I am for OUR GOALS (I know the size of the part) so that when searching for the starting point, the machine automatically positioned at the beginning of the workpiece. In other words, I have introduced three new parameters in GRBL for my needs. settings.c line 60+

.homing_pulloff_new [X_AXIS] = DEFAULT_HOMING_PULLOFF,
.homing_pulloff_new [Y_AXIS] = DEFAULT_HOMING_PULLOFF,
.homing_pulloff_new [Z_AXIS] = DEFAULT_HOMING_PULLOFF};

I need this in order to immediately move the machine to the zero coordinate of the header when searching for the starting point.

Later, I will make a video explaining why this is necessary!

I will fix your scaling. b-CNC is my first Python experience. I have never programmed in Python before.

MARIOBASZ commented 6 years ago

I have corrected scale, you can choose several blocks. Upload the modifications as before (unless you tell me otherwise for possible conflicts in Guthub, I have asked this question about which path to follow)

sfinexer commented 6 years ago

In the video: The $H command immediately positions the tool to the desired starting position. http://cnc.tiven.ru/ssr-2018-10-06_08.51.44.mp4

sfinexer commented 6 years ago

Where in b-CNC code is responsible for reading and writing the configuration of the controller?

coilheaddesigns commented 4 years ago

where can i find this grbl version, would like to have independent pull-off per axis PLEASE