Setting Laser to be Triggered by M67 and M68
- tommylight
- Away
- Moderator
Less
More
- Posts: 19203
- Thank you received: 6437
16 Dec 2020 21:57 #192201
by tommylight
Not sure, but i think the version of dmap2gcode with that config does not output anything related to Z axis, so that is puzzling.
Replied by tommylight on topic Setting Laser to be Triggered by M67 and M68
That looks like inverted PWM pin/values.It seems like that’s what’s happening. The light areas of the image are really burning the wood no matter what I change the scale to (pwm scale and joint 2 scale) and the areas where it is supposed to be darker are producing a varied output as you’d want, just inverted (this does seem to be effected by the adjusted scale figures).
Not sure, but i think the version of dmap2gcode with that config does not output anything related to Z axis, so that is puzzling.
Please Log in or Create an account to join the conversation.
- AntimatterAnimals
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
16 Dec 2020 23:18 #192208
by AntimatterAnimals
Replied by AntimatterAnimals on topic Setting Laser to be Triggered by M67 and M68
I’ll have a play around with inverting the pins tomorrow. I can’t remember what order I inverted them and I also can’t remember if I inverted more than one at a time so I’ll go one step at a time. Yeah it’s very strange. I’ll send some screenshots of the file in dmap2gcode and then a video of my machine when I get a chance.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19203
- Thank you received: 6437
17 Dec 2020 00:02 #192212
by tommylight
Replied by tommylight on topic Setting Laser to be Triggered by M67 and M68
My config should have normal pwm on pin 2 and inverted on pin 3
Please Log in or Create an account to join the conversation.
10 Jul 2023 15:49 #275140
by RRicardo
Replied by RRicardo on topic Setting Laser to be Triggered by M67 and M68
Hi Tom
I have updated my plasma table with a chinese ttl laser and follow your threats about M67 so i copy paste and ajust my hal with these lines:
loadrt pwmgen output_type=0
addf pwmgen.make-pulses base-thread
addf pwmgen.update servo-thread
setp pwmgen.0.enable TRUE
net analogout motion.analog-out-00 => pwmgen.0.value
net laserpwm pwmgen.0.pwm => parport.0.pin-02-out
I don´t know how but now if i open linuxcnc and simple load file to raster engrave a image the laser doesn´t turn on.
If i set S command to for example S65, then load file and all runs well being the laser in a range of 0 to 65.
During this the S values are not updated but the result is like should be.
What could i do wrong? can you or anybody help?
thank you in advance
I'm running 2.9 with gmocappyfor laser
I have updated my plasma table with a chinese ttl laser and follow your threats about M67 so i copy paste and ajust my hal with these lines:
loadrt pwmgen output_type=0
addf pwmgen.make-pulses base-thread
addf pwmgen.update servo-thread
setp pwmgen.0.enable TRUE
net analogout motion.analog-out-00 => pwmgen.0.value
net laserpwm pwmgen.0.pwm => parport.0.pin-02-out
I don´t know how but now if i open linuxcnc and simple load file to raster engrave a image the laser doesn´t turn on.
If i set S command to for example S65, then load file and all runs well being the laser in a range of 0 to 65.
During this the S values are not updated but the result is like should be.
What could i do wrong? can you or anybody help?
thank you in advance
I'm running 2.9 with gmocappyfor laser
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19203
- Thank you received: 6437
10 Jul 2023 18:33 #275149
by tommylight
Replied by tommylight on topic Setting Laser to be Triggered by M67 and M68
Threats ??? Oh, threads!
Do you have a running base period or base thread?
Are you actually using a parallel port?
Is the port loaded?
Or just upload the hal and ini files here so we can have a look.
Do you have a running base period or base thread?
Are you actually using a parallel port?
Is the port loaded?
Or just upload the hal and ini files here so we can have a look.
The following user(s) said Thank You: RRicardo
Please Log in or Create an account to join the conversation.
10 Jul 2023 19:52 - 10 Jul 2023 19:53 #275154
by RRicardo
Replied by RRicardo on topic Setting Laser to be Triggered by M67 and M68
Hi again Tom
Base period or base thread? i simply don´t know, sorry.
Base period or base thread? i simply don´t know, sorry.
- Yes i'm using parallel port and loaded
- After messing around, i return to a point now that laser don´t stop between movements, in one point i was almost there but then didn´t backup hal file....
- Atachments here.
Attachments:
Last edit: 10 Jul 2023 19:53 by RRicardo.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19203
- Thank you received: 6437
10 Jul 2023 20:54 #275159
by tommylight
Replied by tommylight on topic Setting Laser to be Triggered by M67 and M68
The attached file has everything spindle but nothing laser, wrong file?
The following user(s) said Thank You: RRicardo
Please Log in or Create an account to join the conversation.
10 Jul 2023 21:25 - 10 Jul 2023 21:25 #275163
by RRicardo
Replied by RRicardo on topic Setting Laser to be Triggered by M67 and M68
Sorry Tom
Wrong filesHere are the correct ones.
Wrong filesHere are the correct ones.
Last edit: 10 Jul 2023 21:25 by RRicardo.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19203
- Thank you received: 6437
10 Jul 2023 21:39 #275166
by tommylight
Replied by tommylight on topic Setting Laser to be Triggered by M67 and M68
Remove all thisThis is still active and taking control of the PWM, so it has to go.
# net spindle-cmd-rpm => pwmgen.0.value
net spindle-on <= spindle.0.on => pwmgen.0.enable
# net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 0
setp pwmgen.0.scale 100
setp pwmgen.0.offset 0.0
setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm <= spindle.0.speed-out
net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-cmd-rps <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed => spindle.0.at-speed
The following user(s) said Thank You: RRicardo
Please Log in or Create an account to join the conversation.
10 Jul 2023 21:41 #275167
by RRicardo
Replied by RRicardo on topic Setting Laser to be Triggered by M67 and M68
Hi Tom
Very thanks!
I will try right now.
When you guys pass by Portugal you are welcome!!!
Very thanks!
I will try right now.
When you guys pass by Portugal you are welcome!!!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds