On Thu, 2011-01-13 at 15:34 -0500, Tom Easterday wrote:
> I have a charge pump board that wants a 3000-15,500Hz signal.  That is slower 
> then my base-thread so I want to create another slower thread for the charge 
> pump.
> 
> I have tried many combination using loadrt threads but can't get it to work.  
> The problem (or one problem) is that threads says that the threads should be 
> created in order of fastest to slowest.  In my kinematics.hal file I am using 
> EMCMOT to create a base thread of 21600 and servo thread of 1000000 so when I 
> try in my_machine.hal to do 
> loadrt threads name1=cp-thread period1=125000 it complains that it is faster 
> then the existing servo thread.
> 
> But I don't see a way to create the thead in EMCMOT.  I have also tried 
> creating all three in loadrt threads but that fails because it appears that 
> the servo thread is getting created even if I remove the specification of the 
> period from EMCMOT config.
> 
> Any ideas?
> -Tom

Off the top of my head (guessing).

From:
http://linuxcnc.org/docs/html/config_emc2hal.html 

it states that motmod loads this way:
"
loadrt motmod [base_period_nsec=period] [servo_period_nsec=period] 
[traj_period_nsec=period] [num_joints=[0-9] ([num_dio=1-64] num_aio=1-16])] 
"

It may be that the period naming isn't free form?

Also the periods should be whole multiples of each other, but I think the 
periods will be rounded on loading rather that giving an error?

This shows a free form thread naming without motmod:
http://linuxcnc.org/docs/html/hal_hal-examples.html

"
loadrt threads period1=1000000 name1=thread
"

I don't know if the two lines can live together.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to