Hi, I'm looking at upgrading the Smoothieboard 5XC on my OX to an OpenBuilds Blackbox controller due to the simplicity of the Blackbox design. However, I want to have it run my CNC spindle in addition to a laser (JTech 2.8W). Of course, only one would be used at a time. Is there a way to do this? Thanks for any help!
You can wire a toggle switch into the PWM line to switch the PWM signal between the two? or use a DSDT relay with the Direction signal/ coolant signal to switch between the two using gcode. Or just wire both in parallel and only power on the relevant tool?
Thanks for the quick reply! I love the toggle switch idea as it's so simple. I I ordered my Blackbox over the weekend in anticipation that I could do it with no problem. Can't wait to get it!!!
You may also need to setup your CAM software -> gcode headers to include a $32=0 for CNC work and $31=1 for laser mode
Luckily its a lot simpler! Have a bedtime read through github.com/gnea/grbl/wiki (And yes also a lot less reading than the Smoothie wiki)
Have you gotten to put this together yet? I am working out a similar set up. I had been doing the parallel wiring option, but want to clean things up a bit.
I have everything wired up and did a test with the laser with success. I'm waiting for a new spindle controller so I can use the 0-10V PWM as my existing one burned out recently. Everything else seems to be working well.
don't forget, if you are doing a $32 change in Gcode then you must put a G4 P0.1 after it. this forces GRBL to sync and wait for the EEPROM write to finish before continuing.
to change to laser mode you have to do $32=1 if you do that from the manual command line then that is all you need. you could also put it in the code for a macro button, and a similar button with #32=0 to go to mill mode. However, if you wish to have 1 file that does some milling AND some lasering thne it has to change modes by itself and th emode change requires an EEPROM write which is slow compared to other commands and it may not be finished before the cutting starts. . thus: Code: % G21 G54 G90 G17 $32=0 ; set mill mode G4 P0.1 ; wait for EEPROM write, the amount of time does not matter, the G4 command forces a queue sync M9 ; select spindle with the coolant output M3 S12000 ; turn on spindle { do a bunch of milling here } M5 ; spindle off ; now select laser M8 ; select laser output via coolant pin (or is it M7?) $32=1 ; set laser mode G4 P0.1 ; sync M3 S6000 ; set laser power { do a bunch of laser cutting } M5 ; laser off M30 % note that the above leaves it in laser mode so the next milling operation will have to reset $32 itself, or you the operator will have to make sure of the mode. I plan to wire my laser in using the coolant pin to switch the PWM signal so I have thought this through (-:
Wow! I never even thought of having it automatically switch. I am going to leave my setup very manual when it comes to switching between the two as I want them to be very distinct operations. When milling, I don't want my laser to be susceptible to dust/water so I made it removable. I'm curious how you will keep your laser clean.
Could automate that too, so that if the code controls a switch to say, the laser driver's power input, that same toggle will also move a servo to remove the laser's dust cover. Just wondering here if it makes any practical difference to the convention of lasers' coordinates being positive and mills' negative. Seems like it could potentially come up if one or the other is done with dedicated software vs both being done within the same CAM setup (eg. in Fusion using a very high speed engraving tool to represent the laser?).
I just did some cutting of carbon fiber sheets under water this morning with a 2mm compression bit and a 400w spindle on my OX. Let's just say I'm glad the laser is removable. Something messed up in my gcode from Fusion (G19 commands) and drove the z axis down a few mm where the chuck hit the water. Water sprayed everywhere. Luckily I have an enclosure around it.
I got one of these LaserDock Magnetic Docking Station for PLH3D series laser heads (; expensive but awesome!
I have the Jtech 2.8W laser and their magnetic shroud. Still working and a repeatable magnetic base to stick it to. That laser you have is really nice. I bookmarked the page just in case I need another laser one day.
I don't think this comes into it since you are setting the WCS in GRBL and everything for the mill and laser is relative to that, so conventional 'laser' coordinates systems don't come into it at all. grbl does not care whether it is a laser or not in terms of using the gcode relative to the WCS. my idea is to zero the mill in G54 and zero the laser in G55 for a seamless transition, hopefully.
Yeah, that's true. G54/G55 makes the most sense, for sure. My concern was more in terms of what CAM would be spitting out, I suppose, since it could differ in terms of its defaults, but realistically you're zeroing off something else for your WCS anyway, so I don't see any reason to worry about it. Just something that popped to mind when thinking about both systems simultaneously.
I recently did this (see attached). Someone on the jtech fb group posted about this and I got it to work. Now I'm starting to think of super pid... Is it asking too much of my blackbox and my brain's feeble wiring skills to add a super pid to this configuration? http://www.vhipe.com/product-private/SuperPID-v2_Instructions.pdf
You can, same as your diagram, the PWM signal wire to the SuperPID passes through your switch Just remember to set $30 gnea/grbl so the spindle speed scales correctly
Hello, have you decided on their versions? In a way I'm wondering too, but after the reviews, price = quality?
Just FIY - documentation page has been added since docs:blackbox:iot-and-laser [OpenBuilds Documentation]
I am a little late to this party, but I was looking at this, if I am running a 3-wire laser setup AND a VFD (that would be 3.3.2 and 3.3.5 in manual) they share a ground, but the laser using the ground and PWM, while the VFD uses the ground and the 0-10V ports on the toolhead plug, could these be both left connected, and just use the $31 command to switch between the 2, but never having to disconnect or use a switch like a few people said.
For this setup, control which device is powered up. Laser PSU on, and VFD off = laser mode. Laser PSU off, and VFD on = Spindle mode 0-10v is derived off the same spindle PWM output (Grbl has only one pwm toolhead. PWM, Servo, 0-10v all the same command/pin)