Setting Laser to be Triggered by M67 and M68

More
5 years 10 months ago #192201 by tommylight

AntimatterAnimals wrote: 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).

That looks like inverted PWM pin/values.
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 to join the conversation.

More
5 years 10 months ago #192208 by AntimatterAnimals
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 to join the conversation.

More
5 years 10 months ago #192212 by tommylight
My config should have normal pwm on pin 2 and inverted on pin 3

Please Log in to join the conversation.

More
3 years 3 months ago #275140 by RRicardo
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 

Please Log in to join the conversation.

More
3 years 3 months ago #275149 by tommylight
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.

Please Log in to join the conversation.

More
3 years 3 months ago #275154 by RRicardo
Hi again Tom
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.

 

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
3 years 3 months ago #275159 by tommylight
The attached file has everything spindle but nothing laser, wrong file?

Please Log in to join the conversation.

More
3 years 3 months ago #275163 by RRicardo
Sorry Tom
Wrong filesHere are the correct ones.

Please Log in to join the conversation.

More
3 years 3 months ago #275166 by tommylight
Remove all this
Code:
# 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
This is still active and taking control of the PWM, so it has to go.

Please Log in to join the conversation.

More
3 years 3 months ago #275167 by RRicardo
Hi Tom
Very thanks!
I will try right now.

When you guys pass by Portugal you are welcome!!!
 

Please Log in to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum