I think this is the line in src/emc/motion/control.c where bad thing 
happens:

/* write to HAL pins */
....
        *(joint_data->index_enable) = joint->index_enable;

It writes to IO hal pin no matter what. I think it should check if 
joint->index_enable was changed and only then write / change HAL pin.


Lines from my hal file:

...
net x.index [HM2](BRD)encoder.00.index-enable  # axis.0.index-enable !!!
...
net x.index pid.x.index-enable
...
net bldc-init => bldc.0.init
net x.init-done bldc.0.init-done => and-all-inited.in-00

net x.index bldc.0.index-enable
...


On 04/30/2014 01:17 AM, andy pugh wrote:
> On 29 April 2014 21:43, Marius Alksnys <marius.alks...@gmail.com> wrote:
>
>> I checked the code and found that axis.n.index-enable IO pin is set at
>> every servo(?) period no matter it should be changed or not
>
> That's interesting. I can't see why that would be, as it would tend to
> mean that an encoder could never work for axis position...
>
> Can you show me the relevant bit of HAL?


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to