I just wanted to put a place holder here to cover a potential gap in the documentation that has taken me a while to figure out.
Z table will not jog up or down, other axis also locked. Remove the z end stops by # the line in the config and everything works fine. Homing Z will not work, it tries but crashes into the end stops.
I may have the stepper wired wrong but I could not get this working till the jog movement was up when entering negative values. So go from 0 to -1 the table should move up.
Everything fell right into place when I made this change and I tried every combination of things outside of this prior…for several hours.
I changed gamma_dir_pin 0.020! to 0.020 this changes the direction of the stepper on the z axis.
I ended up on a totally different forum looking up smoothy issues to find this little nugget.
I wired mechanical stops to normally closed (normally open will lock all axis when the end stops are enabled), I put the top switch in the z min connection on the board. If you set the switch to normally open which is what I expected as default the board thinks something is hitting the sensor and this locks everything out.
Changed the gamma_steps_per_mm to 3169 (this is going to need a slight adjustment as a step is not 1mm but its close), gamma_homing_direction to home_to_min, gamma_min to 0, and gamma_max to the travel distance displayed when jogging from the top to bottom stops meaning the total distance. I have not started working in lightburn yet so I am not sure if this translates to a working system.
Other observations on my K40.
I needed to extend the x and y stepper cables
Had to modify the back rail so the z stepper could fit in snug and still be in range of the y end stop
Needed to ben the end stop so it could contact the carriage before the laser head hit the z table
Needed to use a washer to lift the front of the z table so it sat level
Needed to remove the front top bezel covering the stepper to get the z table in without removing the gantry
I had an AC leak to the frame of the K40, this went away with soldering the connection on the ground cable coming off the laser tube or by replacing the board
Cloudray mirror set required me to lift the laser tube and create a new mount for the laser head. The Air assist nozzle needs to point to the right so that the x axis end stop can still function
Lastly the cohesion 3d add on screen is worth it so you can easily test everything
I hope this saves others some time,