Sorry to hijack the thread, but I've had to live with this on a machine that 
I'm using cascaded double PID loops on.  I have the velocity loop PIDs running 
in a fast floating point base thread to help with the tuning of some 
cantankerous torque mode servos.  The position loops are still in the servo 
thread (because I can't run the whole servo thread as fast as I can the 
floating point base thread.)  Reading/writing to the Mesa hardware in a faster 
loop than the servo thread seems to break the f-error disable for the encoder 
reset.  I think because the encoder reset doesn't always occur when the it is 
expecting it or something to that effect.  I've tried just running a faster 
servo-thread, but I can run the lighter floating point base thread about 4x 
faster than I can the whole servo-thread.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-----Original Message-----
From: andy pugh <bodge...@gmail.com>
Sent: Wednesday, April 17, 2024 8:47 AM
To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net>
Subject: Re: [Emc-users] Home to index triggers following error

[EXTERNAL EMAIL] Be sure links are safe.

On Wed, 17 Apr 2024 at 12:45, Tomaz T. <tomaz_...@hotmail.com> wrote:

now it doesn't trigger following error any more (homing completes
> successfully), interesting thing is, that on first attempt of homing
> after fresh starting LinuxCNC I see quite large spike on f-error when
> hitting index pulse, this large spike doesn't accrue on any more on
> second attempt of homing or later, only after fresh start and on first one.



It will only trigger the f-error  if the difference between the current encoder 
position and the zero position is larger than the f-error limit.
Once you have homed once jump will be at most a few encoder counts.

--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed for 
the especial use of mechanical geniuses, daredevils and lunatics."
- George Fitch, Atlanta Constitution Newspaper, 1912

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C02%7Ctoddz%40pgrahamdunn.com%7Cebfea5c501924f029c5308dc5edcaa7a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638489549065500531%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=iNxGqNzkAKwXtD4PmQ2hHgkBuriUCq88Wl5WraibpAA%3D&reserved=0<https://lists.sourceforge.net/lists/listinfo/emc-users>

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to