This here was my attempt at it from a slightly less software involved side. I made no changes to the software but you would need to be aware of your endstop limits doing it this way when doing your cam.