Andy pugh wrote:

>I think that needs a custom HAL component, using comp.

>Part of the problem is that you need to get the feedback back the other way.

>It is just possible that you might be able to do it all with two
>"offset" functions:
> http://www.linuxcnc.org/docview/html/man/man9/offset.9.html

>loadrt offset count=2
>…
>addf offset.0.update-output servo-thread
>addf offset.1.update-output servo-thread
>addf offset.0.update-feedback servo-thread
>addf offset.1.update-feedback servo-thread
>…
>net elevation axis.4.motor-pos-cmd => offset.0.in offset.1.offset
>net rotation axis.5.motor-pos-cmd => offset.1.in offset.0.offset
>net mot1 offset.0.out => stepgen.4.position-cmd
>net mot2 offset.1.out => stepgen.5.position-cmd
>net elev-fb-in offset.0.fb-in <= stepgen.4.position-fb
>net elev-fb-out offset.0.fb-out axis.4.motor-pos-fb
>net elev-fb-in offset.1.fb-in <= stepgen.5.position-fb
>net elev-fb-out offset.1.fb-out axis.5.motor-pos-fb

>With appropriate setting/clearing of the parport invert bits on the
>direction pins (see the previous message), there is a fair chance that
>might work.


So, I should just add these command to my file .hal? Right? Or I should 
compilate a particular module? 
And then I can link without problem stepgen to parport pins just with:

net stepgen.4.step => parport.0.pin-09-out
net stepgen.4.dir => parport.0.pin-08-out
net stepgen.5.step => parport.0.pin-07-out 
net stepgen.5.dir => parport.0.pin-06-out

 In this way I can combine the two motor to have the rotation and the elevation 
of wirst?
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to