I have a slightly more powerful fiber laser and want to try and use lightburn to do some creative type S#$%t on it. It uses E values to control the power and upon looking at Lightburn G-code for my X-Tool D1 Pro laser it seems that the software may be controlling that. Is this the case? If so, how do I build a machine profile that will write code the way I need it. Basically I’m interested to see if this machine can control the annealing spectrum the way I believe it can.
The device profiles for lasers are hard coded at present, but we’re working on making a generic user-editable code generator as well.
You said you have a slightly more powerful fiber laser, but using GCode - is this mounted to your XTool, or a completely different laser? (it’s not clear from your post or profile info)
It’s not an XTool. Xtool is probably at least a few months away from creating a laser with this many watts.
It’s actually a 3,000 watt Fiber Laser Sir. Sorry not a 3 million watt laser
https://www.amada.com/media/digital-b/ENSIS-Series/html5/index.html?&locale=ENG&pn=1
That would be a space weapon. They actually claim 3 kW, which is still a goodly amount of firepower …
3 million. Heck all I’d need then are a few sharks and a half sized clone to take over the world.
I do have their G-Code cheat sheet and sample code as well.
Works for me …
M-CODES
Laser M and G Codes
A number following the address M controls the reading of a program or the on/off of the component units of the laser cutting machine.
One M-code is effective in only one block, except for the end setting at the end of processing.
M- code | Name | Function |
---|---|---|
M00 | Program stop | Pauses the program. Press the START button to restart the program. |
M01 | Optional stop | Pauses the program. |
Press the START button to restart the program.
Use the OPTIONAL STOP button to enable or disable the function.|
|M02|Program end|Commands the program to end.|
|M10|Work hold and unclamp|Lowers the workholders and opens the workclamps.|
|M11|Clamp and work release|Closes the workclamps and raises the workholders.|
|M20|Thickness detector disabled|Disables the worksheet thickness detector.|
|M21|Thickness criterion 1|Sets the thickness criterion at 0.4 mm.|
|M22|Thickness criterion 2|Sets the thickness criterion at 0. 5 to 0.6 mm.|
|M23|Thickness criterion 3|Sets the thickness criterion at 0.7 to 0.9 mm.|
|M24|Thickness criterion 4|Sets the thickness criterion at 1.0 to 1.3 mm.|
|M25|Thickness criterion 5|Sets the thickness criterion at 1.4 to 1.8 mm.|
|M26|Thickness criterion 6|Sets the thickness criterion at 1.9 to 2.4 mm.|
|M27|Thickness criterion 7|Sets the thickness criterion at 2.5 to 3.2 mm.|
|M28|Thickness criterion 8|Sets the thickness criterion at 3.3 to 4.2 mm.|
|M29|Thickness criterion 9|Sets the thickness criterion at 4.3 to 6.2 mm.|
|M30|Program end|Adds the program return function to the M02 function. When the program ends, the cursor automatically returns to the beginning of the program.|
|M33|Loading|Loads worksheets with the optional loader.|
|M65|Two-stack unloading|Unloads processed worksheets in two stacks with the optional loader.|
|M80|Workchute open|Opens the workchute.|
|M81|Workchute close|Closes the workchute.|
M- code | Name | Function |
---|---|---|
M96 | Subprogram call | Calls a subprogram. |
M97 | Subprogram end | Ends a subprogram. The NC unit returns to the main program at the same time. |
M100 | Laser mode | Invokes the laser mode. The machine becomes capable of laser cutting |
M101 | Laser mode cancel | Cancels the laser mode. The machine becomes incapable of laser cutting |
M102 | Worksheet designation | Calls material type and thickness from the processing condition file. |
M103 | Shutter open and head down | Lowers the laser head and opens the laser shutter. |
M104 | Shutter close and head up | Closes the laser shutter and raises the laser head. |
M180 | Workchute open and close | Opens the workchute and then closes it. |
M707 | Shuttle pallet change | Changes the shuttle pallet. |
M722 | Calibration on | Starts calibration. |
M723 | Calibration off | Ends calibration. |
M758 | Beam on | Causes the machine to start the discharge and turn on the laser beam. |
M788 | Shuttle move to cleaning position | Moves the pallet in the machine to the cleaning position. |
M789 | Shuttle return from cleaning position | Returns the pallet in the machine from the cleaning position. |
G-CODES
The value following the address G specifies what function the command in the block has.
G- code | Name | Function |
---|---|---|
G00* | Positioning | Rapid positioning and corner positioning |
G01* | Linear interpolation | Straight cutting |
G02* | Clockwise circulation interpolation CW | Clockwise circular arc cutting |
G03* | Counterclockwise circular interpolation CCW | Counterclockwise circular arc cutting |
G04 | Dwell | Maintain current condition for specified time |
G08 | Look-ahead control | For pipe cutting |
G09 | Exact stop | In-position check during axis movement |
G10 | Unloading | Processed worksheet unloading with loader |
G17 | Plane selection (X-Y plane) | For pipe cutting |
G18 | Plane selection (X-A plane) | For pipe cutting |
G24 | Piercing mode | Emit the laser beam under the specified conditions |
G25 | Auto-repositioning | Workclamp repositioning function (for first time) |
G27 | Auto-repositioning | Workclamp repositioning function (for second and subsequent times) |
G31 | Assist gas selection | Specify assist gas type and pressure |
G32 | Z-axis tracking mode | Enable Z-axis tracking sensor |
G33 | Z-axis tracking mode cancel | Disable Z-axis tracking sensor |
G40* | Laser beam path compensation cancel | Cancel laser bath path compensation |
G41* | Laser beam path compensation left | Shift laser beam center to left of cutting direction |
G42* | Laser beam path compensation right | Shift laser beam center to right of cutting direction |
G50 | Automatic zero-return and operation end | Zero-return X-, Y- and Z-axes, and end operation |
G75 | Multiple-part processing X G75 W Q | W= Macro number to process (the U-V number). Q= Starting corner. 1= LL 2= LR 3= UL 4= UR |
G76 | Multiple-part processing Y G76 W Q | W= Macro number to process (the U-V number). Q= Starting corner. 1= LL 2= LR 3= UL 4= UR |
G- Code | Name | Function |
---|---|---|
G90* | Absolute programming | Specify coordinate by distance from origin |
G91* | Incremental programming | Specify coordinate by distance from previous position |
G92* | Coordinate system setup | Set origin of program coordinate system. |
G93* | Offset origin setup | Set reference point (new origin) for work offset (origin move) |
G98 | Multiple-part processing setup X Y I J P K | X&Y= Part Offset. I= X spacing J= Y spacing. P= Copies in X minus 1. K= Copies in Y minus 1. |
G107 | Cylindrical interpolation | For pipe cutting |
G111 | Square and rectangular holes SQ = G111 X Y I K Q |
RE = G111 X Y I J K
Above is a simple SQ and RE cutout.|Macro for cutting square and rectangular holes. X&Y= Center. I= Size of SQ. K= Angle. Q= Lead In. X&Y= Center. I= Length. J= Width. K= Angle.
A= Pierce override (optional). H= Tab (optional).
M codes can be added. For example M180 for chute. R can be added for radius corners|
|G112|Round and obround holes RO = G112 X Y I Q
OB = G112 X Y ! J K Q
Above is a simple RO and OB cutout.|Macro for cutting round and obround holes X&Y= Center. I= Diameter. Q= Lead In.
X&Y= Center. I= Length. J= Width. K= Angle. Q= Lead. A= Pierce override (optional). H= Tab (optional).
M codes can be added. For example M180 for chute.|
|G113|Single D and double D holes SD = G113 X Y I J K Q
DD = G113 X Y I J K Q
Above is a simple SD and DD cutout.|Macro for cutting single D and double D holes
X&Y= Center. I= Diameter. J= Width, negative for SD. K= Angle. Q= Lead In.
A= Pierce override (optional). H= Tab (optional).
M codes can be added. For example M180 for chute.|
|G114|Regular polygonal holes G114 X Y I J K Q|Macro for cutting regular polygonal holes
X&Y= Center. I= Radius or center to Flat. J= # of sides. K= Angle. Q= Lead In.
A= Pierce override (optional). H= Tab (optional).
M codes can be added. For example M180 for chute. R can be added for radius corners.
C can be added for chamfer corners.|
|G115|Round-end arc slots G115 X Y I J K R Q|Macro for cutting round-end arc sots
X&Y= Center. I= Arc moving angle. J= Width. K= Angle. R= Radius. Q= Lead In.
A= Pierce override (optional). H= Tab (optional).
M codes can be added. For example M180 for chute.|
|G116
G117|Flat-end arc slots G116 X Y I J K R Q
Round Dimple G117XYIQAMUV|Macro for cutting flat-end arc slots
X&Y= Center. I= Arc moving angle. J= Width. K= Angle. R= Radius. Q= Lead In.
A= Pierce override (optional). H= Tab (optional).
M codes can be added. For example M180 for chute.
Macro for cutting Round Dimple
X&Y = Center I= Diameter Q=lead in U=Width of dimple V=Depth of Dimple|
G121 HS edge detection HS edge detection and measurement
G- Code | Name | Function |
---|---|---|
G122 | HS edge detection calibration | HS edge detection and calibration |
G126 | Bolt hole circle (BHC) G126 X Y I J K | Place macro shape on BHC |
X&Y= Center. I= Radius. J= Start angle. K= # of holes.|
|G128|Line at angle (LAA) G128 X Y I K|Place macro shape on LAA
X&Y= Center. I= Spacing. K= # of holes.|
|G129|Arc
G129 X Y I J P K|Place macro shape on circular arc
X&Y= Center. I= Radius. J= Start Angle. P= Angle increment. K= # of holes.|
|G130|Automatic zero-return|Return X, Y and Z axes to origin.
Similar to G50, but doesn’t end program.|
|G136|Grid X
G136 X Y I J P K Q|Place macro shape on a grid
X&Y= Center of first hole. I= Distance X. J= Distance Y. P= # of spaces X. K= # of spaces Y. Q= Angle.|
|G137|Grid Y
G137 X Y I J P K Q|Place macro shape on a grid
X&Y= Center of first hole. I= Distance X. J= Distance Y. P= # of spaces X. K= # of spaces Y. Q= Angle.|
|G140|OVS deviation detection|Compensate for origin deviation with OVS IV|
|G141|OVS expansion function|Expanded measurement function of OVS IV|
|G149|OVS cancel|Cancel of compensation for origin deviation with OVS IV|
|G150|Scaling and coordinate rotation||
NOTE: An asterisked G-code is modal. This means that the G-code remains effective until changed or canceled by another G-code in the same group. A non-asterisked G-code is effective only in the block where it is specified.
So what are the chances of getting a machine like this to work via Lightburn Sir?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.