Setting Laser to be Triggered by M67 and M68

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

ASUS ROG Crosshair VIII Impact - AMD X570

Please Log in or Create an account 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 or Create an account 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.

ASUS ROG Crosshair VIII Impact - AMD X570
The following user(s) said Thank You: RRicardo

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

More
3 years 3 months ago - 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.

 

File Attachment:

File Name: LASER.hal
File Size:3.38 KB

File Attachment:

File Name: LASER.ini
File Size:2.58 KB
Last edit: 3 years 3 months ago by RRicardo.

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

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

ASUS ROG Crosshair VIII Impact - AMD X570
The following user(s) said Thank You: RRicardo

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

More
3 years 3 months ago - 3 years 3 months ago #275163 by RRicardo
Sorry Tom
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.086 seconds
Powered by Kunena Forum