TTL (PWM) Laser head and Mesa 7i76

More
3 years 4 weeks ago #282161 by swepeter
net laser-on hm2_7i96.0.pwmgen.00.enable hm2_7i96.0.ssr.00.out-01
This line is only for protection not to turn the laser on right? I have a physical switch for that.

I am testing with this code and do not get a signal from the laser:
; LightBurn 1.3.01
; LinuxCNC device profile, absolute coords
; Bounds: X1300 Y0 to X1320 Y20

;USER START SCRIPT
G90 (Incremental distance mode)
G17 G21 (Active Plane: XY)(Metric Mode)
G40 G49 G80(Tool Diameter, Length compensation & canned cycles OFF)
G64 P0.05 Q0.05(Path Blending)
M600
G90 (absolute distance mode)
G57 (Coordinate System)
;USER START SCRIPT

G21
G90
; Cut @ 200 mm/min, 40% power
M8
M67 E0 Q0
G0 X1300 Y0 F0
; Layer Labels
M67 E0 Q102
G1 Y20 F200

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

More
3 years 4 weeks ago #282163 by PCW
signals laser-on and laser-pwm are unconnected in your hal file
they must be connected to appropriate LinuxCNC pins

Its important to have LinuxCNC control the Laser power on/off so its immediately
disabled if linuxCNC has a fault

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

More
3 years 4 weeks ago #282173 by swepeter
Thanks again for all the help. 
I have not toughed the hal files since I built the machine so I dont remember that much... 
But it is great to learn agin. 

Do I understand you correct if this is what you mean?

What commands would you use then to turn on or and control the laser?
 

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

More
3 years 4 weeks ago #282186 by PCW
Yes, wiring looks correct, but you should verify that
the laser current requirements are less then the 2A max
the 7I96 outputs can supply.

That output would be hm2_7i96.0.ssr.00.out-04
It could possible be connected to machine-on
or perhaps spindle-on

 

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

More
3 years 4 weeks ago - 3 years 4 weeks ago #282201 by swepeter
The laser uses 5V for PWM input. I have connected the 12V to the BOB and removed the 5V supply from the mesa card. should I change that back?

and how would that config look to use the M67 E0 Q to control that?

I am not able to change the value now with
net analogout motion.analog-out-00 => hm2_7i96.0.pwmgen.00.value

EDIT: M68 E0 Q4 gave the value. M67 needed a move 
Still the question on the Voltage 
Last edit: 3 years 4 weeks ago by swepeter.

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

More
3 years 4 weeks ago #282202 by PCW
The BOB needs 5V for ist 5V PWM output (and 12V if you want to use the BOBs inputs)
Also you will not get any PWM unless the PWMGEN is enabled

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

Moderators: cmorley
Time to create page: 0.211 seconds
Powered by Kunena Forum