Laser moves out of machine boundaries

Im trying to connect my rotary to the ray5 20w, having issues with it staying inside the machines workspace. Changed all the settings that the instructions said to do. I have the longer brand rotary as well. When i plug everything in it seems like it will work fine but then when i click on “go to orgin” it just b-lines it right on the x axis and rams into the right panel. It wont even let me frame anything it just guve the G-code motion target exceeds machine travel

Change to Current Position. And manually set the X axis where you want it to start.

I have tried all positions and it still either wont frame anything or goes outside the machine structure