Hello Guest it is May 25, 2025, 05:11:49 PM

Author Topic: control of z axis from height sensor  (Read 6723 times)

0 Members and 1 Guest are viewing this topic.

Offline da21

*
  •  87 87
    • M-Machine
control of z axis from height sensor
« on: May 28, 2008, 03:42:39 PM »
Hi All ,
this is my first problem to overcome using Mach , so if their a better way let me know !

i am looking at controling the height of the z axis by the use of a displacement transducer which is fitted to a laser head to control the focus by moving the z axis either side of programmed height , as the nozzle is fitted with a foot which rides over the material being cut  , similar to torch height on a plasma etc .

so wondering if anyone has ideas on or has programmed this before , and the best way to go about this
as it would be as a slave to the z axis in my opinion as would only come into play once the z axis had reached it's programmed position

any thoughts welcome

Dave

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
Re: control of z axis from height sensor
« Reply #1 on: May 29, 2008, 08:59:45 AM »
That can be done, it will depend on the type of output that your transducer would put out.

Options:
1). If it puts out an analog signal realative to its range envolope at some set hiegth. I would use an Analog Card in a PLC and I would watch that Input with a PID LOOP that has a set point as your Ideal ht. Send the Change info to Mach through a BRAIN formula and send + output to a + Jog for your secondary Z, and same for -. I would give my self a certain percentange of Dead band in your formula.
2).  Brian has made a C++ Plugin that does a PID Loop in Mach that you could try if you can get info on it, (send him an email, discribe your application, he will need to know your input/output types etc.
3). You could also send your Analog value to the Macro-Pump and have it dynamically control your Laser axis dynamically, (note this may react to slow).
4). Lastly, (and if I was doing this for a Machine for Commecial applications I would do this). I would Control the ht, with a PLC (Automation Direct) with PID loop, Analog card,    AND,    I would use a CTRIO (high Speed counter and Stepper Drive). You could have your PID loop drop adjustment values directly into the CTRIO Module that would independantly control your hiegth.  You could Dynamically set, your "Set Point" of you PID (set point=perfect cuttin hiegth), From a DRO in Mach in your Setup screen or other place. This option would be the most expensive: DL06 = 200.00, CTRIO approx. 200.00, Analog module depending on type 150-200.00, (plus programming software unless you have it 500.00 (although they do have a FREE Data amount limited version you can download), plus programmining cables 16.00). Lastly you miscellanous supplies like PS, Termnators, DIN rail, enclosure, panel connectors, switchs, wire, etc.

scott

fun times

Offline da21

*
  •  87 87
    • M-Machine
Re: control of z axis from height sensor
« Reply #2 on: May 29, 2008, 12:33:14 PM »
Thanks Scott ,

yes the sensor gives out a dc voltage , you have given me much to think on , i had thought of using the brain , although i'll probably try the plugin route first , as i have a lot of retrofit work to do to this machine , i'll probably gut the drivers eventualy as they are old Servo motors , with analog cards etc , and bring it more up to date , i have a Kmotion controller i can fit to this which has a lot of powerful features .

it's always nice to know of other options and ideas .

Dave