Re: [Emc-users] following error only while homing

2017-06-23 Thread Todd Zuercher
" Sent: Friday, June 23, 2017 5:07:42 PM Subject: Re: [Emc-users] following error only while homing - Original Message - From: "Peter C. Wallace" To: "Enhanced Machine Controller (EMC)" Sent: Friday, June 23, 2017 2:13:45 PM Subject: Re: [Emc-users] following err

Re: [Emc-users] following error only while homing

2017-06-23 Thread Peter C. Wallace
servo-thread addf hm2_5i25.0.write servo-thread - Original Message - From: "Peter C. Wallace" To: "Enhanced Machine Controller (EMC)" Sent: Friday, June 23, 2017 11:55:58 AM Subject: Re: [Emc-users] following error only while homing On Fri, 2

Re: [Emc-users] following error only while homing

2017-06-23 Thread Todd Zuercher
: "Todd Zuercher" To: "Enhanced Machine Controller (EMC)" Sent: Friday, June 23, 2017 1:20:26 PM Subject: Re: [Emc-users] following error only while homing That is what I've suspected but I can't figure out what I have out of place. I did another screen shot with

Re: [Emc-users] following error only while homing

2017-06-23 Thread Peter C. Wallace
On Fri, 23 Jun 2017, Todd Zuercher wrote: Date: Fri, 23 Jun 2017 11:21:15 -0400 (EDT) From: Todd Zuercher Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] follow

Re: [Emc-users] following error only while homing

2017-06-23 Thread Todd Zuercher
- Original Message - From: "Nicklas Karlsson" To: "Enhanced Machine Controller (EMC)" Sent: Thursday, June 22, 2017 1:23:29 PM Subject: Re: [Emc-users] following error only while homing On Thu, 22 Jun 2017 00:06:42 +0100 andy pugh wrote: > On 21 June 2017 at

Re: [Emc-users] following error only while homing

2017-06-22 Thread Nicklas Karlsson
On Thu, 22 Jun 2017 00:06:42 +0100 andy pugh wrote: > On 21 June 2017 at 19:36, Peter C. Wallace wrote: > > > The stepgen is not computing following error it just cant be driven by a > > position command with a stepwise discontinuity and move instantaneously to > > the new position. > > > I t

Re: [Emc-users] following error only while homing

2017-06-22 Thread andy pugh
On 22 June 2017 at 00:19, Peter C. Wallace wrote: > > Only because the step was small (because it was probably not the first > time homed) Well, yes, but then the question is _why_ it is triggering the f-error again. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is desig

Re: [Emc-users] following error only while homing

2017-06-21 Thread Tom Easterday
I moved the Z axis down maybe 1/2" before issuing the home command, so it only needs to move a short distance to get back to the switch. -Tom > On Jun 21, 2017, at 7:19 PM, Peter C. Wallace wrote: > > Only because the step was small (because it was probably not the first time > homed) --

Re: [Emc-users] following error only while homing

2017-06-21 Thread Peter C. Wallace
On Thu, 22 Jun 2017, andy pugh wrote: Date: Thu, 22 Jun 2017 00:06:42 +0100 From: andy pugh Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] following error only while homing On 21 June 2017 at 19:36, Pet

Re: [Emc-users] following error only while homing

2017-06-21 Thread andy pugh
On 21 June 2017 at 19:36, Peter C. Wallace wrote: > The stepgen is not computing following error it just cant be driven by a > position command with a stepwise discontinuity and move instantaneously to > the new position. I think it might be more interesting than that. Stepgen commanded positio

Re: [Emc-users] following error only while homing

2017-06-21 Thread Peter C. Wallace
On Wed, 21 Jun 2017, Jon Elson wrote: Date: Wed, 21 Jun 2017 13:22:04 -0500 From: Jon Elson Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] following error only while homing On 06/21/2017 12:15 PM, Pe

Re: [Emc-users] following error only while homing

2017-06-21 Thread Jon Elson
On 06/21/2017 12:15 PM, Peter C. Wallace wrote: A step in the FB position from the encoder and an attempt at an impossible step in the commanded stepgen position... All the complexities / workrounds of this position step on index could be avoided if support for encoder counter that can onl

Re: [Emc-users] following error only while homing

2017-06-21 Thread Peter C. Wallace
On Wed, 21 Jun 2017, Jon Elson wrote: Date: Wed, 21 Jun 2017 11:48:17 -0500 From: Jon Elson Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] following error only while homing On 06/20/2017 10:15 AM, Sebas

Re: [Emc-users] following error only while homing

2017-06-21 Thread Jon Elson
On 06/20/2017 10:15 AM, Sebastian Kuzminsky wrote: On 06/20/2017 08:52 AM, Chris Radek wrote: On Tue, Jun 20, 2017 at 09:27:46AM +0100, andy pugh wrote: Now, this is perfectly normal, and with a servo / pid machine the system knows to ignore the f-error immediately after an encoder reset. Wh

Re: [Emc-users] following error only while homing

2017-06-21 Thread Peter C. Wallace
On Wed, 21 Jun 2017, Tom Easterday wrote: Date: Wed, 21 Jun 2017 10:11:01 -0400 From: Tom Easterday Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] following error only while homing So is that large jump

Re: [Emc-users] following error only while homing

2017-06-21 Thread Tom Easterday
So is that large jump in f-error caused by the difference between axis.2.joint-pos-cmd and axis.2.joint-pos-fb? There is a small 90 degree step in pos-cmd that is not mirrored in pos-fb near the end, in line with the spike of f-error. Is that the cause and why is that there? -Tom > On Jun 20

Re: [Emc-users] following error only while homing

2017-06-20 Thread Tom Easterday
Well, it has been homed and is searching for index when it faults with the following errorbut it isn't homed as I have just killed and restarted Linuxcnc. I then move the Z axis down a little bit and then Home All... -Tom > On Jun 20, 2017, at 7:54 PM, Peter C. Wallace wrote: > > This loo

Re: [Emc-users] following error only while homing

2017-06-20 Thread Peter C. Wallace
On Tue, 20 Jun 2017, tom-...@bgp.nu wrote: Date: Tue, 20 Jun 2017 19:52:13 -0400 From: tom-...@bgp.nu Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] following error only while homing Here is more zoom f

Re: [Emc-users] following error only while homing

2017-06-20 Thread tom-emc
Here is more zoom fwiw…. http://bgp.nu/~tom/pub/enc-6.png -Tom -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___

Re: [Emc-users] following error only while homing

2017-06-20 Thread tom-emc
Is this what you want…? http://bgp.nu/~tom/pub/enc-5.png And the log file is... http://bgp.nu/~tom/pub/enc-5.log -Tom > On Jun 20, 2017, at 5:34 PM, Sebastian Kuzminsky wrote: > > On 06/20/2017 01:31 PM, tom-...@bgp.nu wrote: >> The Halscope trace of: hm2_7i43.0.stepgen.02.position-cmd, >> hm

Re: [Emc-users] following error only while homing

2017-06-20 Thread andy pugh
On 20 June 2017 at 22:34, Sebastian Kuzminsky wrote: > Also increase the gain so we can see the fine detail on all the > position-releated pins (both cmd and fb). I was going to suggest saving the data as a .log file from Halscope, so that people can zoom and inspect for themselves, but I can't

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/20/2017 01:31 PM, tom-...@bgp.nu wrote: The Halscope trace of: hm2_7i43.0.stepgen.02.position-cmd, hm2_7i43.0.encoder.02.position, hm2_7i43.0.encoder.02.index-enable, axis.2.home-sw-in with trigger of axis.2.f-errored can be seen here: http://bgp.nu/~tom/pub/enc2.png Wel that looks

Re: [Emc-users] following error only while homing

2017-06-20 Thread tom-emc
w to make it go away.) > > - Original Message - > From: tom-...@bgp.nu > To: "Enhanced Machine Controller (EMC)" > Sent: Tuesday, June 20, 2017 3:31:42 PM > Subject: Re: [Emc-users] following error only while homing > > You guys are prolific, and I appreciate it! Thanks

Re: [Emc-users] following error only while homing

2017-06-20 Thread Todd Zuercher
uesday, June 20, 2017 3:31:42 PM Subject: Re: [Emc-users] following error only while homing You guys are prolific, and I appreciate it! Thanks for all the input. A few things in case it hasn’t been clear... 1) I don’t (currently) have a PID involved at all (position-mode steppers with encoders

Re: [Emc-users] following error only while homing

2017-06-20 Thread tom-emc
You guys are prolific, and I appreciate it! Thanks for all the input. A few things in case it hasn’t been clear... 1) I don’t (currently) have a PID involved at all (position-mode steppers with encoders only). 2) If I set FERROR=2 and MIN_FERROR=1, homing DOES complete successfully. 2) Pressi

Re: [Emc-users] following error only while homing

2017-06-20 Thread andy pugh
On 20 June 2017 at 18:47, Sebastian Kuzminsky wrote: > It looks like it'd be easy to add a ".raw-position" pin to the hostmot2 > encoder. Does homing use the accumulated counts in the counter after index as part of the homing offset? It feels like it should. If it does, then this might not work

Re: [Emc-users] following error only while homing

2017-06-20 Thread andy pugh
On 20 June 2017 at 18:47, Sebastian Kuzminsky wrote: > It looks like it'd be easy to add a ".raw-position" pin to the hostmot2 > encoder. We already track .rawcount and compute .count from it, and > compute .position from .count. If that is the answer then rawcounts * scale => feedback might b

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/20/2017 11:47 AM, Sebastian Kuzminsky wrote: On 06/20/2017 11:39 AM, Sebastian Kuzminsky wrote: On 06/20/2017 11:34 AM, Sebastian Kuzminsky wrote: On 06/20/2017 10:51 AM, andy pugh wrote: On 20 June 2017 at 17:37, Peter C. Wallace wrote: I suspect this cannot work the way you have thi

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/20/2017 11:39 AM, Sebastian Kuzminsky wrote: On 06/20/2017 11:34 AM, Sebastian Kuzminsky wrote: On 06/20/2017 10:51 AM, andy pugh wrote: On 20 June 2017 at 17:37, Peter C. Wallace wrote: I suspect this cannot work the way you have this setup because of the instantaneous jump in encoder

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/20/2017 11:34 AM, Sebastian Kuzminsky wrote: On 06/20/2017 10:51 AM, andy pugh wrote: On 20 June 2017 at 17:37, Peter C. Wallace wrote: I suspect this cannot work the way you have this setup because of the instantaneous jump in encoder (feedback) position at index He has hooked up axi

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/20/2017 10:51 AM, andy pugh wrote: On 20 June 2017 at 17:37, Peter C. Wallace wrote: I suspect this cannot work the way you have this setup because of the instantaneous jump in encoder (feedback) position at index He has hooked up axis.*.motor-pos-cmd to the stepgens' .position-cmd, a

Re: [Emc-users] following error only while homing

2017-06-20 Thread andy pugh
On 20 June 2017 at 17:37, Peter C. Wallace wrote: > I suspect this cannot work the way you have this setup because of the > instantaneous jump in encoder (feedback) position at index I wonder if the answer might be to only connect the encoder once homed? ie, use a mux2 to to connect motor-pos-

Re: [Emc-users] following error only while homing

2017-06-20 Thread Peter C. Wallace
On Mon, 19 Jun 2017, tom-...@bgp.nu wrote: Date: Mon, 19 Jun 2017 22:51:59 -0400 From: tom-...@bgp.nu Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: [Emc-users] following error only while homing Why would I get a

Re: [Emc-users] following error only while homing

2017-06-20 Thread Gene Heskett
ng and problems. > >> Maybe you have a configuration problem. Could you post a copy of > >> your ini and hal file somewhere where we could check it over. > >> > >> - Original Message - > >> From: "Tom Easterday" > >> To: "

Re: [Emc-users] following error only while homing

2017-06-20 Thread Jon Elson
On 06/20/2017 09:52 AM, Chris Radek wrote: On Tue, Jun 20, 2017 at 09:27:46AM +0100, andy pugh wrote: Now, this is perfectly normal, and with a servo / pid machine the system knows to ignore the f-error immediately after an encoder reset. What is puzzling me here is why it isn't working in this

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/19/2017 08:51 PM, tom-...@bgp.nu wrote: Why would I get a following error only while homing (latest Linuxcnc 2.7.9)? I recently added home switches to my machine. My machine has encoders on the steppers on each of the 3 axes so I want to use the index pulse for home. I set up the homing

Re: [Emc-users] following error only while homing

2017-06-20 Thread Jon Elson
On 06/20/2017 09:03 AM, Tom Easterday wrote: Is there a parameter I can tweak after it happens in order to clear the fault (e.g. can I clear the ferror value) ? I can then try to home again... PID error should be recomputed every servo cycle. If PID error remains at a large value, then it me

Re: [Emc-users] following error only while homing

2017-06-20 Thread Jon Elson
On 06/20/2017 08:00 AM, Tom Easterday wrote: Andy, you are correct it is related to using index. Homing works fine if I don't use index. The encoder reset makes sense as to why it CAN happen (but shouldn't be). Is this just a bug? I would try to home a second time but as Todd says, I can't

Re: [Emc-users] following error only while homing

2017-06-20 Thread Jon Elson
On 06/20/2017 07:13 AM, Todd Zuercher wrote: I wish that were true. For some reason my analog servo machine trips up and sets a following error on an axis about 25% of the time when trying to home to index for the first time after turning on LInuxcnc. (Almost every time since it is a 4 axis

Re: [Emc-users] following error only while homing

2017-06-20 Thread Jon Elson
On 06/20/2017 03:27 AM, andy pugh wrote: On 20 June 2017 at 03:51, wrote: Why would I get a following error only while homing I think it is probably because you are using HOME_USE_INDEX (which will zero the encoder at the index pulse) and feeding the encoder feedback back into LinuxCNC. Now

Re: [Emc-users] following error only while homing

2017-06-20 Thread Sebastian Kuzminsky
On 06/20/2017 08:52 AM, Chris Radek wrote: On Tue, Jun 20, 2017 at 09:27:46AM +0100, andy pugh wrote: Now, this is perfectly normal, and with a servo / pid machine the system knows to ignore the f-error immediately after an encoder reset. What is puzzling me here is why it isn't working in this

Re: [Emc-users] following error only while homing

2017-06-20 Thread andy pugh
On 20 June 2017 at 15:52, Chris Radek wrote: > > Now, this is perfectly normal, and with a servo / pid machine the system > > knows to ignore the f-error immediately after an encoder reset. What is > > puzzling me here is why it isn't working in this case. I think it is > > pid's index-enables ne

Re: [Emc-users] following error only while homing

2017-06-20 Thread Chris Radek
On Tue, Jun 20, 2017 at 09:27:46AM +0100, andy pugh wrote: > > Now, this is perfectly normal, and with a servo / pid machine the system > knows to ignore the f-error immediately after an encoder reset. What is > puzzling me here is why it isn't working in this case. I think it is pid's index-enab

Re: [Emc-users] following error only while homing

2017-06-20 Thread Todd Zuercher
uot; Sent: Tuesday, June 20, 2017 10:15:01 AM Subject: Re: [Emc-users] following error only while homing Hmm, it seems like I failed miserably trying to do that when I first built the machine (this was my first build and Linuxcnc endeavor) back in 2010. I have a vague recollection someone sugg

Re: [Emc-users] following error only while homing

2017-06-20 Thread Tom Easterday
terday" > To: "Enhanced Machine Controller (EMC)" > Sent: Tuesday, June 20, 2017 9:49:51 AM > Subject: Re: [Emc-users] following error only while homing > > Todd, the ini and hal config were in the first post > >> On Jun 20, 2017, at 9:21 AM, Todd Zuerch

Re: [Emc-users] following error only while homing

2017-06-20 Thread Todd Zuercher
Here is what my Hal file looks like for my step/dir machine with encoder feedback. It has the stepgens configured for velocity mode and a PID loop (using a Mesa 5i25/7i85s). # Generated by PNCconf at Tue Jul 9 15:53:16 2013 # If you make changes to this file, they will be # overwritten when

Re: [Emc-users] following error only while homing

2017-06-20 Thread Tom Easterday
d hal file somewhere where we could >> check it over. >> >> - Original Message - >> From: "Tom Easterday" >> To: "Enhanced Machine Controller (EMC)" >> Sent: Tuesday, June 20, 2017 9:00:22 AM >> Subject: Re: [Emc-users] follow

Re: [Emc-users] following error only while homing

2017-06-20 Thread Todd Zuercher
. - Original Message - From: "Tom Easterday" To: "Enhanced Machine Controller (EMC)" Sent: Tuesday, June 20, 2017 9:49:51 AM Subject: Re: [Emc-users] following error only while homing Todd, the ini and hal config were in the first post > On Jun 20, 2017, at 9:21 A

Re: [Emc-users] following error only while homing

2017-06-20 Thread Tom Easterday
uration problem. > Could you post a copy of your ini and hal file somewhere where we could check > it over. > > - Original Message - > From: "Tom Easterday" > To: "Enhanced Machine Controller (EMC)" > Sent: Tuesday, June 20, 2017 9:00:22 AM >

Re: [Emc-users] following error only while homing

2017-06-20 Thread Todd Zuercher
: "Tom Easterday" To: "Enhanced Machine Controller (EMC)" Sent: Tuesday, June 20, 2017 9:00:22 AM Subject: Re: [Emc-users] following error only while homing Andy, you are correct it is related to using index. Homing works fine if I don't use index. The encoder reset mak

Re: [Emc-users] following error only while homing

2017-06-20 Thread Tom Easterday
ler (EMC)" >> Sent: Tuesday, June 20, 2017 4:27:46 AM >> Subject: Re: [Emc-users] following error only while homing >> >>> On 20 June 2017 at 03:51, wrote: >>> >>> Why would I get a following error only while homing >> >> >> I think

Re: [Emc-users] following error only while homing

2017-06-20 Thread Todd Zuercher
- Original Message - > From: "andy pugh" > To: "Enhanced Machine Controller (EMC)" > Sent: Tuesday, June 20, 2017 4:27:46 AM > Subject: Re: [Emc-users] following error only while homing > > On 20 June 2017 at 03:51, wrote: > > > Why

Re: [Emc-users] following error only while homing

2017-06-20 Thread andy pugh
On 20 June 2017 at 03:51, wrote: > Why would I get a following error only while homing I think it is probably because you are using HOME_USE_INDEX (which will zero the encoder at the index pulse) and feeding the encoder feedback back into LinuxCNC. Now, this is perfectly normal, and with a ser

[Emc-users] following error only while homing

2017-06-19 Thread tom-emc
Why would I get a following error only while homing (latest Linuxcnc 2.7.9)? I recently added home switches to my machine. My machine has encoders on the steppers on each of the 3 axes so I want to use the index pulse for home. I set up the homing sequence each axis and when I do "Home All"