I’m on a 3018 machine and I know my bounds are 260x158
I have set my machine home position to the top right so that the camera can the work space when in the home position.
I set the Scale to 65 which should effectively laser the test pattern in a 130x130 square. But for some reason I keep hitting my limit switch when it goes to laser the #2 test pattern.
Ok this is starting to make more sense. If I go to origin, it doesn’t go all the way to 0, 0. So it’s almost offset. Could this be a machine setup issue? Here are my current grbl settings:
The problem I’m having is in order to see my bed fully in the camera I have to invert my home to the top right hand corner. Setting the origin to the top right hand corner means everything in my work area is negative. So to go to the normal home position in the bottom left hand side I can execute G0 X-260 Y-158 and I will be in the bottom left hand normal “home” position. This seems to be an issue when working with the camera alignment as it seems to want to use absolute coordinates.
It requires absolute coordinates. The camera system works by being able to send the laser to an exact, known location. After homing, use G10 L2 P1 X-260 Y-158 and make sure $10=0. That will set your origin to the front left. We go over all of this here: Common GRBL/GCode Setups - LightBurn Software Documentation
I’m wanting to write a macro that I can execute with CNCjs to make Laser setup easier in the future, but want to understand how to reverse the offset for when I go back to my home being in the bottom left with positive workspace coordinates.
I assumed to be able to have the work area visible by the camera, I would have to invert my workspace so that when homed the work area would be under the camera and not under the z-axis gantry. Being that my y-axis moves and not the z-axis gantry, this is the only way I could figure out how to properly align the camera to the work surface.
I didn’t realize your whole Y axis moved. You are in uncharted territory there - the camera system assumes a fixed X/Y bed with a Z table. Other configurations can be made to work, but I have nothing here to replicate this setup.
My main goal for the camera is simply alignment. Once I have the camera dialed in, I plan to only use the camera to align my design on my work piece then generate g-code to send to the machine. I assume having the machine homed in the same way each time with the bed closer to the camera as in the picture above, I can achieve this. I’ll report back when I have had time to do some tests.