Jeshua Lacock wrote:
> Greetings,
>
> I was thinking of controlling my CO2 laser intensity using the Z value in the 
> G-Code.
>
> Maybe I could use 0-1 for 0% to 100% percent, or perhaps 0-255.
>
> I have a Pico Systems DAC board that outputs 0-5 volts that in turn will 
> control the laser power from 0 to 100%.
>
> Can anyone suggest how I could configure LinuxCNC to control the DAC from Z 
> values? 
>
>   
Are you using this with a Pico Systems Universal Stepper or PWM Controller?
If so, just connect the commanded Z output to the DAC input with proper 
scaling.
The Z output will be axis.2.motor-pos-cmd, the input to the DAC is

ppmc.0.DAC8.00.value
There is a scale factor for this DAC port, it is set like this :
setp ppmc.0.DAC8.00.scale 500.0
The above setting would make an input value of 500 give full-scale
output from the DAC, or 10 V.  SSR1 needs to be turned on for a
positive output from the DAC.  SSR2 will give a negative output.

There is a command line option that needs to be added to the
loadrt command to activate the spindle DAC port, it should look
like this :
loadrt hal_ppmc extradac=0x00

If you are NOT using one of our controller boards, then you need
an 8-bit TTL port to drive the inputs to the DAC.  It could be a parallel
port or 8 digital output pins on an interface board.  If you need the
pinout of the DAC board, I can get that for you.  (I ought to add that
to the documentation page.)


Jon

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to