Setting Laser to be Triggered by M67 and M68

More
5 years 10 months ago #191922 by AntimatterAnimals
I'll update tomorrow and see how I get on. Thanks!

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #192176 by AntimatterAnimals
So I’m having more luck after updating and adjusting the backend settings and values is making more sense now I’m getting my desired results. One issue I’m struggling to resolve is that everything the laser does is inverted from the original image I generated the gcode from. Is there a pin I need to invert? I tried inverting pwm and both the z pins but it didn’t change it.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #192185 by tommylight
Inverting the PWM will not work if the gcode is produced to do the negative of the picture.
Inverting the PWM is never a good idea for lasers as when set in gcode to minimum the laser will be at full power.
What are you using for gcode generation ?
If using dmap2gcode, there is a selection on the left side for choosing the whites or blacks, try that.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #192193 by AntimatterAnimals
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). I’m using lightburn to generate the gcode for marlin and then replacing all M106 S0 with M68 E0 Q0 and all M106 S with M67 E0 Q and changing the file extension to .ngc.

I couldn’t figure out how to set up dmap2gcode. I set all of the settings from your config and it ended up actually jogging the z up instead of changing the pwm and my z kept ending up crashing.

I’m also having trouble with the laser coming on at what seems like full power when homing at startup if this is any further indication of the problem.

Please Log in or Create an account to join the conversation.

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 or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum