home switch setup on gantry mill

More
16 Feb 2025 00:12 - 16 Feb 2025 00:19 #321672 by ashford
home switch setup on gantry mill was created by ashford
preamble:
i am converting an mr1 to linux cnc via 7i96s. the y axis is parallel stepper motors.  y2 and z home switches are nc type and in series. the box i am making is all new drivers/power supplies only thing i will be reusing out of the factory box is the vfd for the spindle. i want this to be a plug and play so i can swap back to stock box if needed. dealing with code is not completely forign to me but the last time i did anything serious was in msbasic, and a little dabbing into megasquirt engine control.

im not sure the best way to set up the homeing switches. i tried
1. assigning net home-y2     <=  hm2_7i96s.0.inm.00.input-03-not and
    net home-z     <=  hm2_7i96s.0.inm.00.input-03-not
   did not work gave errors

2.checking home is shared on y2 and z and only asigning an input to z.  did not work either

3. tied 2 inputs together and asigned them each as y2 and z
  worked but don't seem right to me

4. in z axis joint3 i put
net home-y2    =>  joint.3.home-sw-in and home is shared

that works but does not seem right.

what is the best way to do this, or is there another way
Last edit: 16 Feb 2025 00:19 by ashford.

Please Log in or Create an account to join the conversation.

More
16 Feb 2025 00:42 #321673 by PCW
Replied by PCW on topic home switch setup on gantry mill
Just in terms of naming, something like seem a bit more readable

net home_y2_z hm2_7i96s.0.inm.00.input-03-not
net home_y2_z joint.2.home-sw-in  # assuming joint 2 is Y2
net home_y2_z joint.3.home-sw-in

also of course Z should home first (and I assume there is a Y switch as well so you can use gantry homing)

 

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum