Re: [Emc-users] Encoder reset on homing to index

2020-04-26 Thread David Berndt
; > > On Sat, 25 Apr 2020 23:44:46 -0400, Peter C. Wallace > wrote: > >> On Sat, 25 Apr 2020, David Berndt wrote: >> >>> Date: Sat, 25 Apr 2020 23:13:59 -0400 >>> From: David Berndt >>> To: Peter C. Wallace >>> Cc: "Enhanced Mach

Re: [Emc-users] Encoder reset on homing to index

2020-04-26 Thread David Berndt
gt;>> direction it should. >>> >>> Please see screenshots, any thoughts are appreciated. >>> >>> -Dave >>> >> >> The runaway almost suggests you have one PID loop with negative >> feedback and one with positive feedback. Have yo

[Emc-users] Encoder reset on homing to index

2020-04-26 Thread Roland Jollivet
at, 25 Apr 2020 23:44:46 -0400, Peter C. Wallace > > wrote: > > > >> On Sat, 25 Apr 2020, David Berndt wrote: > >> > >>> Date: Sat, 25 Apr 2020 23:13:59 -0400 > >>> From: David Berndt > >>> To: Peter C. Wallace > >>> C

Re: [Emc-users] Encoder reset on homing to index

2020-04-26 Thread dave engvall
2020 23:13:59 -0400 From: David Berndt To: Peter C. Wallace Cc: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Encoder reset on homing to index Resent-Date: Sat, 25 Apr 2020 23:39:11 -0400 Resent-From: "David Berndt" Resent-To: "emc-users@lists.sourceforge.

Re: [Emc-users] Encoder reset on homing to index

2020-04-26 Thread Peter C. Wallace
On Sun, 26 Apr 2020, David Berndt wrote: Date: Sun, 26 Apr 2020 01:56:05 -0400 From: David Berndt To: Peter C. Wallace Cc: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Encoder reset on homing to index The rotary loop works fine by itself. The linear loop, as it's

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread David Berndt
wrote: On Sat, 25 Apr 2020, David Berndt wrote: Date: Sat, 25 Apr 2020 23:13:59 -0400 From: David Berndt To: Peter C. Wallace Cc: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Encoder reset on homing to index Resent-Date: Sat, 25 Apr 2020 23:39:11 -0400 R

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread Peter C. Wallace
On Sat, 25 Apr 2020, David Berndt wrote: Date: Sat, 25 Apr 2020 23:13:59 -0400 From: David Berndt To: Peter C. Wallace Cc: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Encoder reset on homing to index Resent-Date: Sat, 25 Apr 2020 23:39:11 -0400 Resent-From: &qu

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread David Berndt
Peter C. Wallace Subject: Re: [Emc-users] Encoder reset on homing to index Thanks for the feedback Peter. I took the time to re-order my hal file (it's a bit of a disaster with all the other non motion going-ons in there). Here is the relevant start of m addf's addf hm2_5i25.0.read

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread Peter C. Wallace
On Sat, 25 Apr 2020, David Berndt wrote: Date: Sat, 25 Apr 2020 14:21:45 -0400 From: David Berndt To: "Enhanced Machine Controller (EMC)" , Peter C. Wallace Subject: Re: [Emc-users] Encoder reset on homing to index Thanks for the feedback Peter. I took the time to re-order m

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread David Berndt
)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Encoder reset on homing to index After a few more hours tonight putzing around with this thing. Here's where I'm at. I've wired up the shared index. It completes both the encoder's index-ena

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread Peter C. Wallace
On Sat, 25 Apr 2020, David Berndt wrote: Date: Sat, 25 Apr 2020 03:23:20 -0400 From: David Berndt Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Encoder reset on homing to index After a few more hours to

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread andy pugh
On Sat, 25 Apr 2020 at 01:03, David Berndt wrote: > Feels a bit unsatisfying though. I understand the timing issues (though > I'm not sure with a slow homing cycle I should care) but not solving this > in a reasonably elegant way in software seems like a fail to me. To solve it _properly_ in

Re: [Emc-users] Encoder reset on homing to index

2020-04-25 Thread David Berndt
oller (EMC)" , Peter C. Wallace Subject: Re: [Emc-users] Encoder reset on homing to index If I understand you correctly that would be the goal. But how do I tie them together? As I understand it now I'll need to detect when index-enable changes state to false, as an indication of the preferr

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
ists.sourceforge.net Subject: [Emc-users] Encoder reset on homing to index Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to get reset during homing to index? I assume somethnig is triggering hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere in my HAL.

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Peter C. Wallace
On Fri, 24 Apr 2020, David Berndt wrote: Date: Fri, 24 Apr 2020 19:02:54 -0400 From: David Berndt To: "Enhanced Machine Controller (EMC)" , Peter C. Wallace Subject: Re: [Emc-users] Encoder reset on homing to index If I understand you correctly that would be the goal. But ho

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
-Dave On Fri, 24 Apr 2020 18:20:07 -0400, Peter C. Wallace wrote: On Fri, 24 Apr 2020, David Berndt wrote: Date: Fri, 24 Apr 2020 17:19:10 -0400 From: David Berndt Reply-To: "Enhanced Machine Controller (EMC)" To: emc-users@lists.sourceforge.net Subject: [Emc-users] Enc

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
Just a plain KA300 chinese linear encoder. On Fri, 24 Apr 2020 17:39:51 -0400, Leonardo Marsaglia wrote: Just because I'm curious, Is this an absolute linear encoder or an incremental one (or may be it can work in both ways)? El vie., 24 abr. 2020 a las 18:28, andy pugh () escribió:

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Peter C. Wallace
On Fri, 24 Apr 2020, David Berndt wrote: Date: Fri, 24 Apr 2020 17:19:10 -0400 From: David Berndt Reply-To: "Enhanced Machine Controller (EMC)" To: emc-users@lists.sourceforge.net Subject: [Emc-users] Encoder reset on homing to index Can anyone enlighten me as to how

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Leonardo Marsaglia
> > Index-enable enable is true when index-enable is false? Who designed this? > Politicians? The index-enable pin is IO so It's set to TRUE when the homing sequence requires it. You can also set it to TRUE via HAL (I'm doing the latter with my homing sequence because I'm using servos in

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread René Hopf via Emc-users
Am Fr., 24. Apr. 2020 um 23:43 Uhr schrieb David Berndt : > Index-enable enable is true when index-enable is false? Who designed > this? > Politicians? > > I don't even know what to say as I try to wrap my mind around this one... > Isn't there some sane/simple way to just tie the index-enable out

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
Index-enable enable is true when index-enable is false? Who designed this? Politicians? I don't even know what to say as I try to wrap my mind around this one... Isn't there some sane/simple way to just tie the index-enable out bit from the one encoder to the index-enable in bit on the

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread Leonardo Marsaglia
Just because I'm curious, Is this an absolute linear encoder or an incremental one (or may be it can work in both ways)? El vie., 24 abr. 2020 a las 18:28, andy pugh () escribió: > On Fri, 24 Apr 2020 at 22:21, David Berndt wrote: > > > > Can anyone enlighten me as to how

Re: [Emc-users] Encoder reset on homing to index

2020-04-24 Thread andy pugh
On Fri, 24 Apr 2020 at 22:21, David Berndt wrote: > > Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to > get reset during homing to index? I assume somethnig is triggering > hm2_5i25.0.encoder.N.reset? The encoder counts reset when encoder.N.index-enable is true and an

[Emc-users] Encoder reset on homing to index

2020-04-24 Thread David Berndt
Can anyone enlighten me as to how hm2_5i25.0.encoder.N.position seems to get reset during homing to index? I assume somethnig is triggering hm2_5i25.0.encoder.N.reset? But I don't see that plumbed up anywhere in my HAL. I'm adding a linear encoder to a servo axis and am retaining my servo