I think I answered your question here..  (well one way..)
http://www.cnczone.com/forums/showthread.php?t=71072

"
If I am understanding what you want.. Could you send the 
motion.spindle-speed-out thru abs? (take the absolute value of it)

http://www.linuxcnc.org/docs/2.2/htm...an9/abs.9.html 
<http://www.linuxcnc.org/docs/2.2/html/man/man9/abs.9.html>

then it would always be positive..
"


Marko Bukovinsky wrote:
> how to change this code into abosolute 0 - 10 Volt output?
>
> loadrt scale count=1
> addf scale.0 servo-thread
> setp scale.0.gain  -0.004
> net spindle-speed-scale motion.spindle-speed-out => scale.0.in
> net spindle-speed-DAC scale.0.out => m5i20.0.dac-03-out
>
> This works but when i use M4 S**** i get negative voltage output.
>
> My VFD acceppt 0 - 10 Volt.
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>   

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to