On Fri, 21 Jan 2011, Chris Morley wrote:

Date: Fri, 21 Jan 2011 02:16:20 +0000
From: Chris Morley <chrisinnana...@hotmail.com>
Reply-To: "Enhanced Machine Controller (EMC)"
    <emc-users@lists.sourceforge.net>
To: EMC <emc-users@lists.sourceforge.net>
Subject: [Emc-users] FW:  Problem fast thread on Ubuntu 10.04 EMC 2.4.6




From: chrisinnana...@hotmail.com
To: klemen.oze...@gmail.com
Subject: RE: [Emc-users] Problem fast thread on Ubuntu 10.04 EMC 2.4.6
Date: Fri, 21 Jan 2011 02:09:48 +0000





Sorry I meant to send this to the list.

Date: Thu, 20 Jan 2011 21:44:54 +0100
From: klemen.oze...@gmail.com
To: Emc-users@lists.sourceforge.net
Subject: [Emc-users] Problem fast thread on Ubuntu 10.04 EMC 2.4.6

Dear All,

what could be the reason that on Ubuntu 10.04 with EMC 2.4.6 I always get an
error when i want to start old configuration from EMC 2.3... see error
message below + HAL and INI file (this are files made by pncconf - new one


<snip>

HAL file:

# Generated by PNCconf at Sun Jan 16 10:33:41 2011
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

loadrt trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD
num_joints=[TRAJ]AXES
#počasnejši thread za classicladder
loadrt threads name1=fast-thread period1=80000

loadrt probe_parport

The reason is because the line that loads the threads is not correct, there is 
no period
length given for the first thread, so it picks one and then the second thread 
happens
to be shorter then it causing an error.
Was there a reason that you needed to edit the pncconf file? Not that there is 
anything
wrong with that I just looking for feedback about pncconf.
There has been quite a few bug fixes to pncconf since 2.3 it may be worth 
starting
fresh and building a new config.

One thing I might warn you about is that in practice using a fast thread with 
the Mesa
boards doesn't usually work well. In fact later versions of pncconf do not 
allow you to
add a base (fast) thread for this reason. When I was testing steppers using Mesa
and a config with a base thread the steppers were unusable, after removing the 
base
thread (which actually did nothing) the steppers magically worked well. Other 
users
have reported that if you play with the values you can come up with a values for
the base thread and servo thread that will work but I wouldn't recommend this.
It has to do with the base thread interrupting the servo thread .
I wonder if you could use pwm gen to produce the charge pump signal?

Chris M

Actually AFAICT theres no problem with a fast thread and servos (klemens situation), the problem only shows up in some systems with step generators and only if a base thread is invoked but not used, which is why the developer did not see it (why have a base thread if it is not used)

If you have any evidence that the base thread causes a problem if it actually runs something I would like to hear about it...

Peter Wallace
Mesa Electronics
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to