<p>Since 3D printers works with coodinates and the gcode generator requires the origin point and bed shape and bed size. knowing this your programs never will be out of the printing area.</p>

<p>My printer has a printing area of 16.5 x 16.5 cm, so I set this parameter to CURA, Slic3r and 3dsimplify and I can't generate the gcode if the part does not fit on the bed. So I print parts with 15cm maximum</p>

<p>Also the firmware has this limits to 16cm, the 0.5 cm is just for safety</p>

<p>Of course if I send a command with pronterface or any other gbrl controler I can go over the limits due the X0Y0 could be out of position (offset), but if you respect the origin point and don't try to go over the limits by yourself the machine will be ok.</p>

CC BY-SA 3.0
2017-11-07T18:02:05.527Z
2017-11-07T18:02:05.527Z
Fernando Baltazar
<p>I have a 3d printer that is homebuilt with salvaged parts. Occasionally there is some kind of error and when i start my code the minute it starts it max out on x and y axis and continues to do it until i kill the connection and reset everything. I have found that when i put G21 G90 into the first line of the file it doesnt do this anymore. But I'm wondering if i can "teach" my machine how far it can go before it stops? I am using "grbl controller" to send g-code to my arduino uno woth grbl loaded onto it.</p>

CC BY-SA 3.0
2017-11-07T13:51:05.267Z
Limit switches are dirt-cheap.  Install a set and save yourself a lot of pain.
Carl Witthoft
CC BY-SA 3.0
2017-11-07T14:17:23.827Z
The machine is tiny and it would be a pain. I was more wondering what was causing it to max out and after finally stopping coordinates displayed would be way farther than the work was supposed to be
Keith Bybee
CC BY-SA 3.0
2017-11-07T18:07:34.503Z
there are micro switches, also you can do a couple with cooper; it just need to have spring motion or gap 0.5mm
Fernando Baltazar
<diy-3d-printer><g-code>
How to tell machine how far travel limits without switches
Keith Bybee
# How to tell machine how far travel limits without switches

(Asked by: username_0 on 2017-11-06)

I have a 3d printer that is homebuilt with salvaged parts. Occasionally there is some kind of error and when i start my code the minute it starts it max out on x and y axis and continues to do it until i kill the connection and reset everything. I have found that when i put G21 G90 into the first line of the file it doesnt do this anymore. But I'm wondering if i can "teach" my machine how far it can go before it stops? I am using "grbl controller" to send g-code to my arduino uno woth grbl loaded onto it.

**Tags:** diy-3d-printer, g-code

> **Comments:**
> **username_1**: Limit switches are dirt-cheap.  Install a set and save yourself a lot of pain.  
> **username_0**: The machine is tiny and it would be a pain. I was more wondering what was causing it to max out and after finally stopping coordinates displayed would be way farther than the work was supposed to be  
> **username_2**: there are micro switches, also you can do a couple with cooper; it just need to have spring motion or gap 0.5mm  

---

## 1 answers

### Answer by username_2 on 2017-11-07. Score: 1

Since 3D printers works with coodinates and the gcode generator requires the origin point and bed shape and bed size. knowing this your programs never will be out of the printing area.

My printer has a printing area of 16.5 x 16.5 cm, so I set this parameter to CURA, Slic3r and 3dsimplify and I can't generate the gcode if the part does not fit on the bed. So I print parts with 15cm maximum

Also the firmware has this limits to 16cm, the 0.5 cm is just for safety

Of course if I send a command with pronterface or any other gbrl controler I can go over the limits due the X0Y0 could be out of position (offset), but if you respect the origin point and don't try to go over the limits by yourself the machine will be ok.


---

