Set a custom size for the usable area #16
-
Is there any way that we would be able to input a custom size for the area? 20210411_162858.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Is there any way that we would be able to input a custom size for the area?You can set the rectangular bounds of the sand table's size in the The reason I ask this is that I have a non-square shape. You can see from my attached video, the gantry will home at the bottom left, which will be the reference 0,0 point. Is there any way that I can home, and then set the 0,0 to a custom location?Yep! Take a look at the end of setTimeout(() => {
// Start gcode
backwards = false;
index = 0;
file = [
"G90",
"G28",
"M220 S100",
"M204 P4000 T4000",
"M205 J0.0001",
`G0 X${Process_Theta_Rho.X_SIZE / 2} Y${Process_Theta_Rho.Y_SIZE / 2}`, // center of table
];
sendNextCmd(true); // Run start gcode
console.log("GCode Controller Initialized");
}, 5000); This is the "start gcode" that runs when the table is first powered up. As you can see, it first homes, sets some speed/jerk parameters, and then navigates to the center of the table. Right after the "G0 X[The X offset from the current position to the desired (0,0)] Y[The Y offset from the current position to the desired (0,0)]",
"G92 X0 Y0", The first line will navigate to where you want the new origin to be, and the second will set that position as the new (0,0). Keep in mind that your bounds (max X, max Y in Also, is there any way to make a custom shape with gcode, as you can see in the video, my usable area is an irregular shape.Not sure what you mean here...you could potentially use Inkscape to draw the shape you want as an Let me know if this answers your question...and good luck with your sand table (It's looking great so far)! |
Beta Was this translation helpful? Give feedback.
-
Just an additional question on using a custom size table. I am just getting together parts for a table and am wondering if there is a formula on how long to make the V channels ? And as far as placement of the v-channel is there a specific distance from the sides of the table ? |
Beta Was this translation helpful? Give feedback.
Is there any way that we would be able to input a custom size for the area?
You can set the rectangular bounds of the sand table's size in the
.env
file (as well as in the Marlin firmware, you must do both). However, I assume what you want here is for the website to "crop" the uploaded track to fit in the confines of your usable area. Currently, I'm cropping to a rectangular shape using a series ofif
statements; but it seems that your case would require something more complicated. You'd have to editprocess_theta_rho.js
, specifically thescale()
function, to work with a more complex shape, perhaps a polyline defined by a series of points that roughly matches the usable area. Take a look at