Laser Advice and Guidance - Mesa Card

More
29 Jun 2021 19:16 #213260 by PCW
If the laser module input is TTL compatible; it should be OK
as long as there is a common ground (laser GND goes to 7I76E Gnd)

If you are concerned, you could add a say 220 Ohm resistor in series with the PWM output

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

More
30 Jun 2021 14:59 #213347 by Project_Hopeless

For the test, I loaded the PWM bitfile onto my 7i76e simulator.
The following lines are written in the hal.
 
 

What version of LinuxCNC are you using? 

I haven't found any recent implementations.  Would it be possible for you to share your *ini and *.hal files when you get it up and working?       

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

More
30 Jun 2021 21:00 #213371 by chris@cnc

If the laser module input is TTL compatible; it should be OK
as long as there is a common ground (laser GND goes to 7I76E Gnd)

If you are concerned, you could add a say 220 Ohm resistor in series with the PWM output

Thank you for information,Yes laser is TTL compatible. I take now a second lesson "howto measure with scope" and found hopefully the right pins.
Just for double check. I only have this 4 Pins on laser input card.
I would now connect Laser as follow
+24V --> powersupply same for mesa card
GND --> powersupply same for mesa card
TTL + --> + 220 Ohm resistor -->TB3 PIN3
TTL-  --> TB3 PIN 1

I haven't found any recent implementations.  Would it be possible for you to share your *ini and *.hal files when you get it up and working?       

Yes i also haven't found anything. But i like the idea to control laserpower by z high.
If its running i will share my config but for the moment i test only with this 4 lines.
I order the laser yesterday. Maybe delivered next month. I need more time to get it running.
But for today it looks not so bad. I set "halcmd setp hm2_7i76e.0.pwmgen.00.scale 5"
And PWM power now by Z-1.000 1.2V and Z-4.000 4.7V and Z-5.000 5V. So we could adjust laserpower depend on material.
Attachments:

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

More
30 Jun 2021 21:04 #213372 by chris@cnc
And what ist PDM frequency? I change it but nothing happens on scope...

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

More
01 Jul 2021 03:08 #213407 by PCW
It only affects PDM mode (output-type 3)

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

More
04 Jul 2021 20:37 - 04 Jul 2021 20:39 #213717 by vre
something new about mesa datapainter and galvo interface firmware for raster greyscale engraving ?
Last edit: 04 Jul 2021 20:39 by vre.

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

More
28 Jul 2021 16:47 - 28 Jul 2021 16:53 #216135 by chris@cnc


I haven't found any recent implementations.  Would it be possible for you to share your *ini and *.hal files when you get it up and working?       


It works now. Important lines. 
Hal changes
# -----------PWM Generator signals/setup---
setp   hm2_7i76e.0.pwmgen.pwm_frequency 20000
setp   hm2_7i76e.0.pwmgen.00.output-type 1
setp   hm2_7i76e.0.pwmgen.00.scale  4

#------------ Laser relay main switch------------------------
net w-enable => hm2_7i76e.0.7i76.0.0.output-15 

# -------------laser pwm enable by program cycle start, off by program stop, pause....
net halui.program.is-running   => hm2_7i76e.0.pwmgen.00.enable                
net w-enable    <= joint.6.amp-enable-out        
net w-pos-cmd   <= joint.6.motor-pos-cmd
net w-pos-cmd   => joint.6.motor-pos-fb     hm2_7i76e.0.pwmgen.00.value

INI changes

[KINS]
JOINTS = 7
KINEMATICS = trivkins coordinates=XYYZZAW kinstype=BOTH

[TRAJ]
COORDINATES =  XYYZZAW

#************  Laser dummy axis  ******************************
[AXIS_W]
MAX_VELOCITY = 1000.0
MAX_ACCELERATION = 1000.0
MIN_LIMIT = -4
MAX_LIMIT = 0.5

[JOINT_6]
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0
MIN_FERROR = 1.0
MAX_VELOCITY = 1000.0
MAX_ACCELERATION = 1000.0
MIN_LIMIT = -4.0
MAX_LIMIT = 0.5
HOME_OFFSET = 0.0
HOME_SEQUENCE = 5
Last edit: 28 Jul 2021 16:53 by chris@cnc.

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

More
30 Jul 2021 20:15 #216395 by Doogie
FWIW, M67 is not a buffer buster and I have it working on my K40 laser via LinuxCNC/Remora but I would think it could be configured similarly for Mesa.  Thread on this is here: forum.linuxcnc.org/49-basic-configuratio...ting?start=30#212849

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

Time to create page: 0.132 seconds
Powered by Kunena Forum