2012/3/4 Jeff Epler <[email protected]>

> > You can use "scale" module to multiply the second pin by -1 and then
> > sum both of them in "sum2" component and then You can watch the
> > sum2.0.out pin in HAL Scope
>
> Actually you can dispense with 'scale'; 'sum2' has gain0/1 pins that can
> scale the in0/1 pins.


Viesturs, Jeff, thank you!
I found sum2 description. That's what I added to custom.hal:

loadrt sum2 count=1
addf sum2.0 servo-thread
setp sum2.0.gain0 -1
net sum2.0.in0 <= hm2_7i43.0.encoder.00.position
net sum2.0.in1 <= hm2_7i43.0.encoder.01.position

But, there's an error:
custom.hal:6: Pin 'hm2_7i43.0.encoder.00.position' was already linked to
signal 'x-pos-fb'

So, how can I use hm2_7i43.0.encoder.00.position and keep its other
connections?

Andrew
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to