On Fri, 23 Jun 2017, Todd                      Zuercher wrote:

Date: Fri, 23 Jun 2017 13:20:26 -0400 (EDT)
From: Todd                      Zuercher <zuerc...@embarqmail.com>
Reply-To: "Enhanced Machine Controller (EMC)"
    <emc-users@lists.sourceforge.net>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
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 the position-cmd zoomed in as much as I could 
and keep it on the screen.
It seems that the index enable falls, and the encoder position is reset,then 
the PID gets whacked for one servo period, then the position-cmd is reset.
I have the PID index-enable pin connected, but I not sure it is actually doing 
anything.

Here are my addf orders:


Yeah, those are ordered wrong so LinuxCNC's patching aound the encoder step on index fails, but I'm not sure they can be ordered correctly with your mixed (base/servo) thread setup. A normal servo thread only config would be something like

addf hm2_5i25.0.read          servo-thread
addf motion-command-handler   servo-thread
addf motion-controller        servo-thread
addf pid.x_vel.do-pid-calcs   servo-thread
addf pid.y_vel.do-pid-calcs   servo-thread
addf pid.z_vel.do-pid-calcs   servo-thread
addf pid.w_vel.do-pid-calcs   servo-thread

addf sum2.0                   servo-thread
addf offset.0.update-output   servo-thread
addf offset.0.update-feedback servo-thread
addf mux2.0                   servo-thread
addf mux2.1                   servo-thread
addf pid.x_pos.do-pid-calcs   servo-thread
addf pid.y_pos.do-pid-calcs   servo-thread
addf pid.z_pos.do-pid-calcs   servo-thread
addf pid.w_pos.do-pid-calcs   servo-thread
#addf hm2_5i25.0.pet_watchdog  servo-thread
addf and2.0                   servo-thread
addf hm2_5i25.0.write         servo-thread





----- Original Message -----
From: "Peter C. Wallace" <p...@mesanet.com>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Sent: Friday, June 23, 2017 11:55:58 AM
Subject: Re: [Emc-users] following error only while homing

On Fri, 23 Jun 2017, Todd                      Zuercher wrote:

Date: Fri, 23 Jun 2017 11:21:15 -0400 (EDT)
From: Todd                      Zuercher <zuerc...@embarqmail.com>
Reply-To: "Enhanced Machine Controller (EMC)"
    <emc-users@lists.sourceforge.net>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Subject: Re: [Emc-users] following error only while homing

Here are links to a halscope screen shot and log file for my servo machine that 
keeps setting following errors on first try homing.

homing-error.png: https://drive.google.com/open?id=0B6U6HVQUOa1fZndtbzVRU1dpOW8
halscope-homing.log: 
https://drive.google.com/open?id=0B6U6HVQUOa1fbmk5S1dKaFBoWWc

Because the scale of the position command is so huge its hard to tell whats
going on but the ferror size matches the encoder step size at index, This (and
the one cycle ferror duration) suggests that there is a thread/operation order
issue of some kind in the hal file.


Peter Wallace
Mesa Electronics


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to