Re: [Emc-users] Laser control

2010-12-13 Thread yann jautard
Le 08/12/2010 18:07, Jon Elson a écrit :
 dambacher-retrofit.de wrote:
 Hi Neil

 Am 07.12.2010 19:00, schrieb Neil Baylis:

 What's the best strategy for controlling a laser?

 My machine uses 2 axes to move the laser optic to the right position. I've
 got this much working satisfactorily. Now I need to control the laser power.
 I was planning to use a 3rd axis for this, let's call it Z.

 My plan was to use the sign of the Z position to control the laser-enable
 signal, and the magnitude of the Z position to control the laser power. But
 maybe this is a stupid idea... I don't know.

 maybe you shold use the spindle controls for this, e.g. use S for laser power
 and M3/M4/M5 for switching.
 This way you could use normal cam to program your machine.

 I believe that any change to spindle speed will cause a pause in the
 axis motion.  I know any
 start/stop command (M03 -- M05) will do that.  Anyway, I believe that
 spindle speed changes are not
 synchronized with the motion.

yes, exactly

this is why in my gluing machine I use M62-M65 to control the glue valve.
I think here the problem is similar when you need to turn on/off the 
laser while moving.

see :  http://linuxcnc.org/docs/html/gcode_main.html#sec:M62-to-M65



--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Laser control

2010-12-13 Thread Neil Baylis

  synchronized with the motion.

 yes, exactly

 this is why in my gluing machine I use M62-M65 to control the glue valve.
 I think here the problem is similar when you need to turn on/off the
 laser while moving.

 see :  http://linuxcnc.org/docs/html/gcode_main.html#sec:M62-to-M65

 If I was to program M64 immediately followed by M65, how long would the
 output be on for?


Neil
--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Laser control

2010-12-13 Thread Viesturs Lācis
2010/12/13 Neil Baylis neil.bay...@gmail.com:

  synchronized with the motion.

 yes, exactly

 this is why in my gluing machine I use M62-M65 to control the glue valve.
 I think here the problem is similar when you need to turn on/off the
 laser while moving.

 see :  http://linuxcnc.org/docs/html/gcode_main.html#sec:M62-to-M65

 If I was to program M64 immediately followed by M65, how long would the
 output be on for?


Should be one servo-cycle. Most probably 1 ms, Your ini file specifies
length of servo period.

Viesturs

--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Laser control

2010-12-13 Thread Neil Baylis
So presumably, I could also use M67 or M68 to control the laser power as
well. Let me see how to configure my hal code for that.

Thanks,

Neil
--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Laser control

2010-12-08 Thread Jon Elson
dambacher-retrofit.de wrote:
 Hi Neil

 Am 07.12.2010 19:00, schrieb Neil Baylis:
   
 What's the best strategy for controlling a laser?

 My machine uses 2 axes to move the laser optic to the right position. I've
 got this much working satisfactorily. Now I need to control the laser power.
 I was planning to use a 3rd axis for this, let's call it Z.

 My plan was to use the sign of the Z position to control the laser-enable
 signal, and the magnitude of the Z position to control the laser power. But
 maybe this is a stupid idea... I don't know.
 

 maybe you shold use the spindle controls for this, e.g. use S for laser power
 and M3/M4/M5 for switching.
 This way you could use normal cam to program your machine.
   
I believe that any change to spindle speed will cause a pause in the 
axis motion.  I know any
start/stop command (M03 -- M05) will do that.  Anyway, I believe that 
spindle speed changes are not
synchronized with the motion.

Jon


--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Laser control

2010-12-07 Thread Neil Baylis
What's the best strategy for controlling a laser?

My machine uses 2 axes to move the laser optic to the right position. I've
got this much working satisfactorily. Now I need to control the laser power.
I was planning to use a 3rd axis for this, let's call it Z.

My plan was to use the sign of the Z position to control the laser-enable
signal, and the magnitude of the Z position to control the laser power. But
maybe this is a stupid idea... I don't know.

For example, let's say I wanted to cut/burn a dashed line. It would be
preferable if the optic could keep moving at a constant speed, and the beam
would just turn on and off at the appropriate positions. Would I be able to
do that if the beam was controlled by the Z axis position?

This thing moves pretty fast.. maybe 25 to 30 inches per second, and I'm not
sure if I'll be able to turn the beam on and off with enough precision.

Later, I'll need to compensate for the linear velocity of the optic, so that
it burns with less power when it is moving slowly. This will require
computing the real-time velocity vector in x-y space and using that to
control the laser power.

Neil
--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Laser control

2010-12-07 Thread dambacher-retrofit.de
Hi Neil

Am 07.12.2010 19:00, schrieb Neil Baylis:
 What's the best strategy for controlling a laser?
 
 My machine uses 2 axes to move the laser optic to the right position. I've
 got this much working satisfactorily. Now I need to control the laser power.
 I was planning to use a 3rd axis for this, let's call it Z.
 
 My plan was to use the sign of the Z position to control the laser-enable
 signal, and the magnitude of the Z position to control the laser power. But
 maybe this is a stupid idea... I don't know.

maybe you shold use the spindle controls for this, e.g. use S for laser power
and M3/M4/M5 for switching.
This way you could use normal cam to program your machine.


 For example, let's say I wanted to cut/burn a dashed line. It would be
 preferable if the optic could keep moving at a constant speed, and the beam
 would just turn on and off at the appropriate positions. Would I be able to
 do that if the beam was controlled by the Z axis position?

If you have to program a dashed line, this would mean having two program lines
for one dash and one space. This is with both solutions Z / M3
I would try to create a canned cycle wich handles off/on of the laser. you could
also vary dash length with an aditional parameter to it.

 
 This thing moves pretty fast.. maybe 25 to 30 inches per second, and I'm not
 sure if I'll be able to turn the beam on and off with enough precision.
 
 Later, I'll need to compensate for the linear velocity of the optic, so that
 it burns with less power when it is moving slowly. This will require
 computing the real-time velocity vector in x-y space and using that to
 control the laser power.

if you use spindle controls for this, you could create whatever control
mechanism you want in hal using spindle speed pins:pid for simplest, but also
laser power to feed rate or vice versa via the feed override pin

maybe it asking the EDM people may help to as controlling a laser may be nearly
as complicated as controlling an electrical discharge.

 
 Neil

---
Dr.-Ing. Ulf Dambacher
i...@dambacher-retrofit.de
---

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users