Hey john thanks thats the perfect idea I needed an outside opinion thanks manI don't have a 6040 router but looking at the photos on line
but my first thoughts are to use the existing screws
a right angled bracket on the top of the cable support can hold a microswitch just to the left of the stepper motor
another right angled or "dog legged" bracket to the left of the spindle motor can be used to trip the micro switch
when the Z axis is at the top of its travel
Attachment 394580
John