Before I respond, I want you to know that I misread your original question. I thought you were trying to confine the router to the area of the work piece, not confine router to the work area of your machine.
I was just trying to set a maximum boundary that would/could not be exceeded incase I messed up in telling it to router a job beyond the boundaries
When you crash against your machine limits (and I’m saying “when” not “if”), your machine will make this awful, ugly, nasty sounds that you will swear is the pully grinding up the belt or some gears in the motor grinding against each other. I remember the first time I had this happen with my Burly, and I carefully inspected the belt for damage and just prayed I had not destroyed the steppers. According to folks in this forum that have far more engineering knowledge I do, that sound is totally non-destructive. It is the stepper failing to take a step, and on a further step, the stepper whipping around the opposite direction…essentially oscillating. Given how steppers work, nothing is being damaged inside the stepper and there is not enough force applied by the stepper to hurt things like the trucks or the belts.
The one exception concerning damage is the limit switches. It is possible to smash the limit switches and potentially damage them. You can mitigate this problem by making your home/origin as close to the end of the tube as possible. Your limits switches should click just before the truck hits the end of its travel. That way if/when you reach the end of the travel, the truck will bottom out before the limit switches are smashed.
Now that I understand a bit more of what you are trying to do, there is a way to make it happen. Note this is only theory on my part since I’ve not done these steps on my machine:
- Enable max software endstops. You need to uncomment this line in Configuration.h:
You need to set X_BED_SIZE and Y_BED_SIZE in Configuration.h to the size of your work area.
Re-flash the firmware after making these two changes.
You will need to add some command(s) to your g-code file that changes to a different work space before you start cutting. See the reference for G54-G59.3.
That is you cannot execute a G92 while in the machine workspace. You need to switch to another workspace before resetting the origin relative to the stock. By switching to a different workspace, your machine workspace remains intact and the soft limits can work. Depending on your software pipeline, you may just be able to add a G55 to your start g-code and optionally a G53 to your end g-code.