I am using the NI 7344 card for motion control. I have 2 rotary stages and 1 linear stage. I do not have the hardware home switch. On the linear stage, I have the forward and reverse limit switch and on the rotary stages I have a single switch for homing. Now, everytime I power on the controller, I want to set all the stages at a fixed position everytime for reference(i am thinking of moving the stages to the forward limit and setting it to 0) and call it 0. My problem is that how to move the motors so that it recognises that it has reached forward limit and then set it to 0. In my experiments, sometimes it stops at reverse switch also.
Can someone help me with this?? Is there any other easy way to do it? Any existing example
will of great help.
Thank You.