gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.06k stars 1.61k forks source link

limit pin invert #520

Open sfinexer opened 6 years ago

sfinexer commented 6 years ago

When I put $5 = 1 limit switch vanish.

chamnit commented 6 years ago

@sfinexer : You'll have to be a little more specific. Do you mean that the limit switch doesn't appear in the status reports? If so, the status reports only show limits if they are detected as triggered.

swarfer commented 6 years ago

at https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration#5----limit-pins-invert-boolean it says that you may need to power cycle to make this change take effect. did you do that?

sfinexer commented 6 years ago

I have a beginning of axes in the left bottom corner. I put 23$ =7 I do search, but then I can't work because the position x/y more than 0 at $20 of =true doesn't work. Coordinates inversion 23$ =7, and zero in the left bottom corner,, and a working surface on the right and above. I can't move X/Y more than zero, I receive soft limit. screenshot_20180928_005010

sfinexer commented 6 years ago

that is it turns out what the machine position will always be from - *** to 0?

sfinexer commented 6 years ago

I don't align Z axis. //#define HOMING_CYCLE_0 (1<<Z_AXIS) // REQUIRED: First move Z to clear workspace.

define HOMING_CYCLE_0 ((1<<X_AXIS)|(1<<Y_AXIS)) // OPTIONAL: Then move X,Y at the same time.

But I receive an error of a soft limit of axis Z. It is necessary for me on axes Z and positive and negative coordinates. And I receive a mistake.

sfinexer commented 6 years ago

To receive positive and negative coordinates on axis Z I need to disconnect soft limits on this axis.

109JB commented 6 years ago

Just use work coordinates and you can have positive coordinates. Look up G54-G59 in any G-code reference.

sfinexer commented 6 years ago

@109JB Can make an opportunity to disconnect soft limits on separate axes? My axis Z itself is aligned automatically, it doesn't need coordinates. I give z100 I have z=20 then I do z80 I have z=0 then I do z-30 I receive z=-5 these are specifics of my machine. I need to disconnect soft limits on axis Z.

Axis Z operates with relative coordinates.