Laser on and off script
Posted: Fri Dec 08, 2017 6:01 am
Hi
I am working on both CNC and Laser machines.
The codes generated by QCADCAM work very good for CNC machines, but I don't understand how to generate gcodes for a laser one.
I tried to modify java scripts, which are working partially except laser on and off(I had to modify laser on and off manually)
What I want to do is to turn on the laser when Z position is negative, and turn off when Z position is positive or 0 value.
I need to check current Z position in the java script but don't understand how to.
Can somebody give me some good ways to do it?
Thank you in advance.
I am working on both CNC and Laser machines.
The codes generated by QCADCAM work very good for CNC machines, but I don't understand how to generate gcodes for a laser one.
I tried to modify java scripts, which are working partially except laser on and off(I had to modify laser on and off manually)
What I want to do is to turn on the laser when Z position is negative, and turn off when Z position is positive or 0 value.
I need to check current Z position in the java script but don't understand how to.
Can somebody give me some good ways to do it?
Thank you in advance.