Comments (6)
Grbl defaults to G21 mm mode. This is the g-code standard default. To startup with G20 inches mode, Grbl has the $N startup-string commands to do this for you. To program it, send $N0=G20
to Grbl. You'll see it execute every time you power up and soft-reset. (It DOESN'T do it when unlocking from an alarm. There are reasons for this. Just be aware.)
from bcnc.
@Scott216 are you looking the correct configuration file? In windows user file is located in %userprofile% and it's named ".bCNC". It's not the bCNC.ini file in program directory.
from bcnc.
I was looking at the bCNC.ini file in program directory.
from bcnc.
@chamnit I've got the $N0 set for G20 already, actually it's G90G20G54G17
I don't think it's running at startup, or if it is, something is changing it back to G21.
Here's what I did:
With bCNC running I closed my com port. Next I unplugged the USB to gshield board for a few seconds. After I plugged USB back in I opened the com port. Then I tried to jog, but got bCNC error saying it was in Alarm lock. So then I sent $x to the gshield. Now I can jog, but it's in metric. If I issue a home command it will go into inches. From your post I understand $x will not run the $N0 commands. When I plugged the USB cable back into my computer and the gshield powered up, shouldn't $N0 commands run and the gshield go into inches mode?
from bcnc.
@chamnit BTW, I'm using grbl 0.9i, but I grabbed the github repo yesterday and uploaded using Arduino IDE. So it's the version with the homing changes and some other stuff, M0 and M30 I think.
from bcnc.
My shapeoko (gshield + GRBL v0.9i) is switching from inches to mm after a reset. Here's the scenario I just did.
Machine is in inches and I homed it. I went to G0 X3 Y3, and it moved fine. Then I did G0 X3 Y30. This gave me a soft limit error as it should. Then I clicked on Reset button then the Unlock button. Next I did G0 X3 Y3, but this time it went to x=3 mm and y=3mm. I understand from the above post that $N0 isn't run on reset, but where is it getting changed from inches to metric? My $N settings are:
$N0=G90G20G54G17
$N1=
from the .bCNC file in my user profile directory
[CNC]
units = 1
acceleration_x = 25.0
acceleration_y = 25.0
acceleration_z = 50.0
feedmax_x = 3000.0
feedmax_y = 3000.0
feedmax_z = 2000.0
travel_x = -287.0
travel_y = -325.0
travel_z = -70.0
Build date on bCNC is June 18, 2015
from bcnc.
Related Issues (20)
- GRBL1.py override code not functioning correctly HOT 1
- Manual Tool Change - "Restart Spindle" Alarm
- bCNC-0.9.15 translation problem HOT 1
- bCNC Pendant
- Offset utility problem HOT 1
- Font(?) issue on Fedora 38 and CentOS Stream 9 HOT 1
- abc Coord Values not shown in abcDRO labels (Wrong indentation on ControlPage.py)
- Drag knife solenoid delay. HOT 2
- TypeError: 'range' object doesn't support item deletion, triggered by Utils.py:533
- can not update HOT 4
- incompatible numpy version?
- Tabs created as progressive up/down moves. HOT 1
- undo modification in garc definition
- Fonts specified in px, not point.
- Exceptions when hacked
- UnboundLocalError: cannot access local variable 'ef' where it is not associated with a value
- Large files issue random straight lines HOT 3
- Customizable button. How to update variable value? HOT 1
- Issue due to"sudo python3 -m bCNC"
- Enable Private Vulnerability Reporting in GitHub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcnc.