Now I have the motor tuning sorted out and here is my next problem... I am using hostmot2 and trying to use index and home switch. My setup is as follows: hm2 configuration: loadrt driver=hm2_pci config="firmware=hm2/5i20/SV12.BIT num_encoders=6 num_pwmgens=6 num_stepgens=0"
net xinex-en axis.0.index-enable hm2_[HOSTMOT2](BOARD).0.encoder.05.index-enable setp hm2_[HOSTMOT2](BOARD).0.encoder.05.counter-mode 0 setp hm2_[HOSTMOT2](BOARD).0.encoder.05.filter 1 setp hm2_[HOSTMOT2](BOARD).0.encoder.05.index-invert 0 setp hm2_[HOSTMOT2](BOARD).0.encoder.05.index-mask 0 setp hm2_[HOSTMOT2](BOARD).0.encoder.05.index-mask-invert 0 My axis homing settings are as follows: HOME = 230 HOME_OFFSET = 230 HOME_SEARCH_VEL = 30.000000 HOME_LATCH_VEL = -1.000 HOME_USE_INDEX = YES HOME_SEQUENCE = 0 note I am using millimeters. Watching GPIO 28 with halmeter I can see the index so the hardware is working correctly, going TRUE when the index is active. When I home, it appears to ignore the index completely. The machine hits the home switch, backs off then stops almost immediately when the switch breaks, ignoring the index. Watching axis.0.index-enable with halmeter I see it go TRUE for a moment when the switch releases then almost immedaitely FALSE again. Les ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users