Laser engrave using Linuxcnc
- richard123
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
08 May 2019 07:32 #133111
by richard123
Laser engrave using Linuxcnc was created by richard123
Hello everyone, right now I would like to change the function of my 3d printer core xy to become a laser engraver machine. I have attached the pictures of my BoB and Laser ttl module below.
And honestly I have no idea how to make this works. I have tried to connect the ttl to the pin 16 in my BoB and the power to an external 12 DC power source. I used the 12 DC PS to power my BoB too. But what I found is my laser keep turns on and I couldn't turn it off through the spindle button on the linuxcnc gui.
And then I found out that I have to use the M68 or M67 to control the laser. Then I tried to put M67 E3 Q1 in my g code files, but it gave a message "Invalid analog index with M68".
Can anyone here please help me to get this things work? Do I have to modify anything in the .hal files?
For the pin 16 which I set as the pwm, it's written as "net spindle-pwm => parport.0.pin-16-out" in the .hal file.
And honestly I have no idea how to make this works. I have tried to connect the ttl to the pin 16 in my BoB and the power to an external 12 DC power source. I used the 12 DC PS to power my BoB too. But what I found is my laser keep turns on and I couldn't turn it off through the spindle button on the linuxcnc gui.
And then I found out that I have to use the M68 or M67 to control the laser. Then I tried to put M67 E3 Q1 in my g code files, but it gave a message "Invalid analog index with M68".
Can anyone here please help me to get this things work? Do I have to modify anything in the .hal files?
For the pin 16 which I set as the pwm, it's written as "net spindle-pwm => parport.0.pin-16-out" in the .hal file.
Please Log in or Create an account to join the conversation.
- richard123
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
08 May 2019 07:39 #133112
by richard123
Replied by richard123 on topic Laser engrave using Linuxcnc
Here I attach the g-code which already has the M68 written and the .hal file, also the error I encountered when I open the g-code file.
Please Log in or Create an account to join the conversation.
08 May 2019 07:47 #133113
by rodw
Replied by rodw on topic Laser engrave using Linuxcnc
on line 11, you have this which is invalid
if the intent is to turn it off it probably should be
M68 ; pwm laser
if the intent is to turn it off it probably should be
M67 E3 Q0
Please Log in or Create an account to join the conversation.
- richard123
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
08 May 2019 07:57 #133114
by richard123
Replied by richard123 on topic Laser engrave using Linuxcnc
Does it mean that I have to change the line 11 with M67 E3 Q0?
Please Log in or Create an account to join the conversation.
08 May 2019 11:13 #133128
by pl7i92
Replied by pl7i92 on topic Laser engrave using Linuxcnc
you may read the syntax of the g-code quick reference
www.linuxcnc.org/docs/html/gcode.html
www.linuxcnc.org/docs/html/gcode.html
Please Log in or Create an account to join the conversation.
08 May 2019 15:39 #133155
by andypugh
Replied by andypugh on topic Laser engrave using Linuxcnc
To turn off the laser immediately (which is what you want, M67 does not take effect until the same instant as the next axis move occurs, and at the end of the program there won't be one) you need to provide the name of the channel to turn off (E) and the off-value (Q)
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.135 seconds