- Configuring LinuxCNC
- Configuration Tools
- StepConf Wizard
- Error during setup Z to run Blacktooth laser
Error during setup Z to run Blacktooth laser
Now to the error I am getting. I have tried several times to set up the blacktooth to run but it will not fire the laser via the Z direction on pin 6. I am able to move in both x and y easily but the M in the code is not making the laser fire. I connected a multimeter to the x and y and i am getting a 5 volt pulse but the Z is not getting anything. The wires check out to as i ran completely different wires.
I went through the stepconf setup again and same issue. I decided to go down a version of LinuxCNC from Debian to Ubuntu based hoping that it would also rule out a bad copy but the same issue happens.
When i run the stepconfig again i try to "Test" the Z in the Z setup box and i get this error (see picture) on any and all versions of LinuxCNC i try. I am very certain that it is a setting somewhere but i am running out of ideas. Any help will be great. Thank you in advance for your time.
Please Log in or Create an account to join the conversation.
I would suspect that you have not set the variables which allow scale to be calculated, so it still has the default python 'None' value.
scale = data[axis + "scale"]
This is a python error, nothing to do with wiring.
If you cannot resolve it yourself by filling out the boxes properly before trying to test, you will have to post your config for anyone to be able to help you further
regards
Please Log in or Create an account to join the conversation.
The settings i am using are found here www.buildyourtools.com/phpBB3/viewtopic.php?f=14&t=3562
I have copied the pictures used over there to this page as well. I guess i do not know where to set the scale as you mentioned?
Please Log in or Create an account to join the conversation.
I am able to move in both x and y easily but the M in the code is not making the laser fire.
The test button is to move steppers. It does not run gcode.
Configure as per the page you posted and test the actual machine, not pressing a 'Test' button in the stepconf wizard.
regards
Please Log in or Create an account to join the conversation.
I guess i am not sure what you mean by not pressing a test button?
I can make the laser fire with the manual fire physical button i installed to aim the laser so i know that part works.
Where is the place i can check the scale scale = data[axis + "scale"] you mentioned? and i could post that
Please Log in or Create an account to join the conversation.
Where is the place i can check the scale scale = data[axis + "scale"] you mentioned? and i could post that
That is the python code which produced the error, completely irrelevant to what you want.
The stepconf wizard will not set up a M code script and connect it. You have to do that.
You need to connect the fire button logic through HAL, so that it can be activated in GCode
That is what this section of the guide is about
I am using the Parallel BOB, LinuxCNC installed on a PC from the Live CD, and using pin7 to control the laser
(BOB pin 7) --> (laser PS pin "TL)
this allows me to use M commands in a CAMBAM postprocessor to turn the laser on and off.
M62 and M63 are the commands I am using
linuxcnc.org/docs/html/gcode/m-c ... ec:M62-M65
So read this lot for the full picture
In the days since I posted that question...I've managed to find a custom build using LinuxCNC that drastically improves raster capabilities, employes PPI (usually only found in DSP's) and PWM power control via G-code & software.
github.com/jv4779/2x_laser the custom config setup
www.cnczone.com/forums/general_l ... d_dsp.html Explanation of the custom config and how it works
www.buildlog.net/forum/viewtopic.php?f=4&t=1303 Explaining duty cycle vs PPI
Please Log in or Create an account to join the conversation.
I also connect a voltage meter to PIN 6 on the BOB and the voltage is not changing when it is all set up correctly.
One last thing that puzzles me is if i press the Z Direction + or - on the main LinuxCNC screen the laser will "blink on" for a brief second and the software red e stop (in the top left corner) along with the power button (next to it) both grey out and i need to reset it before i can use it again. I'm not sure if this is normal or not.
Please Log in or Create an account to join the conversation.
what is your interface to the laser , and what type of laser co2 or diode ?
Please Log in or Create an account to join the conversation.
The test gcode is attached Prizm-02_TEST. As for the config file I am still a noob at this so I may have posted these wrong. Sorry for that, I posted the 2 files from the config folder that I think you are needing. Let me know if this works or doesn't. Thank you for your help.
Please Log in or Create an account to join the conversation.
The G-code example is clearly using the spindle on / spindle off commands to control the laser and does not contain any Z-moves
It looks like you have configured the machine to use Z axis direction to control the laser.
Your G-code sample will probably work as-expected if you change this:
net ystep => parport.0.pin-04-out
net ydir => parport.0.pin-05-out
net zdir => parport.0.pin-07-out
To
net ystep => parport.0.pin-04-out
net ydir => parport.0.pin-05-out
net laser motion.spindle-on => parport.0.pin-07-out
It is relatively easy to make a config that allows both modes of control, if that would be useful.
Personally I think that M62 M63 is more appropriate than either.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Configuration Tools
- StepConf Wizard
- Error during setup Z to run Blacktooth laser