Setting Laser to be Triggered by M67 and M68
- tommylight
-
- Offline
- Moderator
-
Less
More
5 years 10 months ago #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.
3 years 3 months ago #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
-
- Offline
- Moderator
-
3 years 3 months ago #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.
3 years 3 months ago - 3 years 3 months ago #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.
Last edit: 3 years 3 months ago by RRicardo.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Offline
- Moderator
-
3 years 3 months ago #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.
3 years 3 months ago - 3 years 3 months ago #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: 3 years 3 months ago by RRicardo.
Please Log in or Create an account to join the conversation.
Time to create page: 0.133 seconds