On Sun, 4 Mar 2012, Andrew wrote: > Date: Sun, 4 Mar 2012 20:27:15 +0200 > From: Andrew <[email protected]> > Reply-To: "Enhanced Machine Controller (EMC)" > <[email protected]> > To: "Enhanced Machine Controller (EMC)" <[email protected]> > Subject: Re: [Emc-users] Two encoders difference > > 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?
Use the x-pos-fb net instead of the hardware pin? net sum2.0.in0 <= x-pos-fb > > 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 > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ------------------------------------------------------------------------------ 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
