Welcome to Our Community

Some features disabled for guests. Register Today.

Lost little laser

Discussion in 'Laser Cutters' started by residentdj, Jun 5, 2023.

  1. residentdj

    Builder

    Joined:
    Dec 19, 2021
    Messages:
    24
    Likes Received:
    3
    So I am attempting to run a 20 watt Comgrow diode head on a LEAD 1010.

    The setup is a little weird to me. I have the profile configured with WiFI enabled on X32. First of all, I may be mis-understanding something, but the *only* time when WiFi connection from Light Burn to X32 works is when OpenBuildsCONTROL is running on the computer and actually connected to the X32 via USB. Without active connection there, LightBurn wont connect to WiFi . I was under the impression that once profile is loaded onto X32, there is no longer a need to computer connection and Light Burn would be able to take it from there.

    The main problem though is that I literally spent 2 days trying to figure out the coordinates. Check out the attached screenshot. Once the laser connects, the homing process properly detects my desired origin and parks the head front left. Exactly there I want it as I have it set as Origin in Device Settings screen, that is what my Job Origin set to on the laser control panel, and that is where the head is parked and Home position indicator is on. And coordinates on the work area agree with me.

    But if you look at at the top, pressing Get Position gives you those wild coordinates telling you the head is currently is the far right corner. Placing a design at the lower left corner of the work area and pressing "Play" button makes the head go to the far right corner. So does the pressing "Go to Origin" button, even after pressing "Set Origin" while the head is where it supposed to be.

    It does not seem to be inverted either, because when I place a design in any location on the bed, and playing with Job Origin location, places the green dot exactly there it supposed to be.

    I've tried resetting the laser profile, restarting everything, changing settings to go in reverse, read every ******* post on the internet and watched every video. I can not make it behave for the life of me.

    What am I missing here???
     

    Attached Files:

  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,505
    Likes Received:
    4,422
    Before we get into the intricacies of Lightburn, make sure everything works in CONTROL first.

    Much easier to a) figure out and b) for us to help with.

    Basic shakedown:

    1) Does machine MOVE correctly (Jogging X+ moves head toward right of stock, Y+ moves head to back edge of stock, Z+ lift head up and away from stock - ie all + moves goes to axis maximas
    - If not, correct $3 Direction invert
    2) Once thats all correct, use $23 to tell Grbl "where are the homing switches" - its not used to invert directions, its to tell Grbl - hey you expect switches at axis maximas by default, any axis where you have it on the opposite side, needs invertion Homing direction. CONTROL makes this a lot easier, the switches clearly shows MIN/MAX just tell as where you have the switches installed on the actual machine
    3) Origin is set using SetZero buttons or a Probe - simpler to understand too. Work Coordinates (origin) are seperate from Machine Coordinates (home). But Work Coordinates are but an offset from Machine Coordinates, so always HOME before setting any Work Coordinates (Zeroing)

    FInish that up first - when it all works perfectly in CONTROL, then you can try Lightburn again

    As for Wifi, not sure how Lightburn handles it, but in essence grblHAL should only be managed through endpoint (never usb and wifi together. One at a time between USB, Telnet or WebUI, never 2/3 at the same time) The "wifi" connection is just Telnet - otherwise exact same as the serial data stream over USB
     
  3. residentdj

    Builder

    Joined:
    Dec 19, 2021
    Messages:
    24
    Likes Received:
    3
    All of that works as expected for XY. Z is reversed so Z+ moves it up and Z- moves it down.
    upload_2023-6-5_19-22-28.png

    All of that is also according to expectations.
    upload_2023-6-5_19-25-32.png


    I have the probe but so far i was able to get away with a simple sheet of paper method to set the bits and it hasn't failed me yet.

    As far as the reasons to use WiFi, its my experience with Lightburn. I used to have a cheap little grbl-based Comgrow Z1 laser engraver and wasted way too much time on connection drops, inability to connect, constant computer restarts, etc. On Windows, Linux and Mac. I haven't had much luck with Lightburn and X32 either. Constant "Busy" messages and hangs. The benefit of having Control running over USB and Lightburn over wifi,
    is because when Lighburn starts homing in the wrong direction there is no stopping it, if you dont stop it, it will just hit the and keep trying tio move it . Switching to CONTROL window and hitting Abort button stops it immediately
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,505
    Likes Received:
    4,422
    Then the rest of the Lightburn specific bugs/issues can be taken over to Contact / Suggestions

    Just making sure, you have updated Lightburn to the very latest?

    Still not agreeing with multiple connections through, suprised it almost works, but might be cause of the Lightburn BUSY issue etc. Really should only connect over one endpoint at a time
     
    David the swarfer likes this.
  5. residentdj

    Builder

    Joined:
    Dec 19, 2021
    Messages:
    24
    Likes Received:
    3
    Interesting. I just realized that all this backwards movement is only happening when I load profile with limit switches enabled. Without them, machine does not go into the negative space.

    I’m running pretty much default config

    Code:
    GrblHAL 1.1f ['$' or '$HELP' for help]
    [03:26:52] [ $$ ] $0=10.0 ;Step pulse time, microseconds
    [03:26:52] [ $$ ] $1=255 ;Step idle delay, milliseconds
    [03:26:52] [ $$ ] $2=0 ;Step pulse invert, mask
    [03:26:52] [ $$ ] $3=4 ;Step direction invert, mask
    [03:26:52] [ $$ ] $4=0 ;Invert step enable pin, boolean
    [03:26:52] [ $$ ] $5=7 ;Invert limit pins, boolean/mask
    [03:26:52] [ $$ ] $6=1 ;Invert probe pin, boolean
    [03:26:52] [ $$ ] $8=0 ;Ganged axes direction invert as bitfield
    [03:26:52] [ $$ ] $9=1 ;PWM Spindle as bitfield where setting bit 0 enables the rest
    [03:26:52] [ $$ ] $10=511 ;Status report options, mask
    [03:26:52] [ $$ ] $11=0.010 ;Junction deviation, millimeters
    [03:26:52] [ $$ ] $12=0.002 ;Arc tolerance, millimeters
    [03:26:52] [ $$ ] $13=0 ;Report in inches, boolean
    [03:26:52] [ $$ ] $14=0 ;Limit pins invert, mask
    [03:26:52] [ $$ ] $15=0 ;Coolant pins invert, mask
    [03:26:52] [ $$ ] $16=0 ;Spindle pins invert, mask
    [03:26:52] [ $$ ] $17=0 ;Control pins pullup disable, mask
    [03:26:52] [ $$ ] $18=0 ;Limit pins pullup disable, mask
    [03:26:52] [ $$ ] $19=0 ;Probe pin pullup disable, boolean
    [03:26:52] [ $$ ] $20=0 ;Soft limits enable, boolean
    [03:26:52] [ $$ ] $21=0 ;Hard limits enable, boolean
    [03:26:52] [ $$ ] $22=0 ;Homing cycle enable, boolean (Grbl) / mask (GrblHAL)
    [03:26:52] [ $$ ] $23=3 ;Homing direction invert, mask
    [03:26:52] [ $$ ] $24=100.0 ;Homing locate feed rate, mm/min
    [03:26:52] [ $$ ] $25=1000.0 ;Homing search seek rate, mm/min
    [03:26:52] [ $$ ] $26=250 ;Homing switch debounce delay, milliseconds
    [03:26:52] [ $$ ] $27=5.000 ;Homing switch pull-off distance, millimeters
    [03:26:52] [ $$ ] $28=0.100 ;G73 retract distance, in mm
    [03:26:52] [ $$ ] $29=0.0 ;Step pulse delay (ms)
    [03:26:52] [ $$ ] $30=1000.000 ;Maximum spindle speed, RPM
    [03:26:52] [ $$ ] $31=0.000 ;Minimum spindle speed, RPM
    [03:26:52] [ $$ ] $32=0 ;Laser-mode enable, boolean
    [03:26:52] [ $$ ] $33=5000.0 ;Spindle PWM frequency
    [03:26:52] [ $$ ] $34=0.0 ;Spindle off Value
    [03:26:52] [ $$ ] $35=0.0 ;Spindle min value
    [03:26:52] [ $$ ] $36=100.0 ;Spindle max value
    [03:26:52] [ $$ ] $37=0 ;Stepper deenergize mask
    [03:26:52] [ $$ ] $39=1 ;Enable printable realtime command characters, boolean
    [03:26:52] [ $$ ] $40=0 ;Apply soft limits for jog commands, boolean
    [03:26:52] [ $$ ] $43=1 ;Homing passes
    [03:26:52] [ $$ ] $44=4 ;Homing cycle 1
    [03:26:52] [ $$ ] $45=3 ;Homing cycle 2
    [03:26:52] [ $$ ] $46=0 ;Homing cycle 3
    [03:26:52] [ $$ ] $62=0 ;Sleep Enable
    [03:26:52] [ $$ ] $63=3 ;Feed Hold Actions
    [03:26:52] [ $$ ] $64=0 ;Force Init Alarm
    [03:26:52] [ $$ ] $65=0 ;Require homing sequence to be executed at startup
    [03:26:52] [ $$ ] $70=7 ;Network Services
    [03:26:52] [ $$ ] $73=1 ;Wifi Mode
    [03:26:52] [ $$ ] $74=xxxxxxx ;Wifi network SSID
    [03:26:52] [ $$ ] $75=xxxxxxx ;Wifi network PSK
    [03:26:52] [ $$ ] $100=199.100 ;X-axis steps per millimeter
    [03:26:52] [ $$ ] $101=199.100 ;Y-axis steps per millimeter
    [03:26:52] [ $$ ] $102=199.100 ;Z-axis steps per millimeter
    [03:26:52] [ $$ ] $110=2500.000 ;X-axis maximum rate, mm/min
    [03:26:52] [ $$ ] $111=2500.000 ;Y-axis maximum rate, mm/min
    [03:26:52] [ $$ ] $112=2500.000 ;Z-axis maximum rate, mm/min
    [03:26:52] [ $$ ] $120=150.000 ;X-axis acceleration, mm/sec^2
    [03:26:52] [ $$ ] $121=150.000 ;Y-axis acceleration, mm/sec^2
    [03:26:52] [ $$ ] $122=150.000 ;Z-axis acceleration, mm/sec^2
    [03:26:52] [ $$ ] $130=810.000 ;X-axis maximum travel, millimeters
    [03:26:52] [ $$ ] $131=730.000 ;Y-axis maximum travel, millimeters
    [03:26:52] [ $$ ] $132=90.000 ;Z-axis maximum travel, millimeters
    [03:26:52] [ $$ ] $320=grblHAL ;Hostname, max: 64
    [03:26:52] [ $$ ] $322=192.168.5.1 ;IP Address
    [03:26:52] [ $$ ] $323=192.168.5.1 ;Gateway
    [03:26:52] [ $$ ] $324=255.255.255.0 ;Netmask
    [03:26:52] [ $$ ] $325=23 ;Telnet port
    [03:26:52] [ $$ ] $326=80 ;HTTP port
    [03:26:52] [ $$ ] $327=81 ;Websocket port
    [03:26:52] [ $$ ] $341=0 ;Tool Change Mode
    [03:26:52] [ $$ ] $342=30.0 ;Tool Change probing distance
    [03:26:52] [ $$ ] $343=25.0 ;Tool Change Locate Feed rate
    [03:26:52] [ $$ ] $344=200.0 ;Tool Change Search Seek rate
    [03:26:52] [ $$ ] $345=200.0 ;Tool Change Probe Pull Off rate
    [03:26:52] [ $$ ] $346=1 ;Restore position after M6 as boolean
    [03:26:52] [ $$ ] $370=0 ;Invert I/O Port Inputs (mask)
    [03:26:52] [ $$ ] $384=0 ;Disable G92 Persistence
    [03:26:52] [ $$ ] $396=30 ;WebUI timeout in minutes
    [03:26:52] [ $$ ] $397=0 ;WebUI auto report interval in milliseconds
    [03:26:52] [ $$ ] $398=35 ;Planner buffer blocks
    [03:26:52] [ $$ ] $481=0 ;Autoreport interval in ms
    [03:26:52] [ $$ ] ok
    [03:26:52] [ $I ] [VER:1.1f.20230501:leadmachine1010]
    [03:26:52] [ $I ] [OPT:VNSL2,35,1024,3,0]
    [03:26:52] [ $I ] [AXS:3:XYZ]
    [03:26:52] [ $I ] [NEWOPT:ENUMS,RT+,REBOOT,TC,SED,RTC,WIFI,SD]
    [03:26:52] [ $I ] [FIRMWARE:grblHAL]
    [03:26:52] [ $I ] [NVS STORAGE:*FLASH]
    [03:26:52] [ $I ] [DRIVER:ESP32]
    [03:26:52] [ $I ] [DRIVER VERSION:230501]
    [03:26:52] [ $I ] [DRIVER OPTIONS:4.3.1]
    [03:26:52] [ $I ] [BOARD:BlackBox X32]
    [03:26:52] [ $I ] [AUX IO:1,0,0,0]
    [03:26:52] [ $I ] [WIFI MAC:94:b5:55:32:d8:5c]
    [03:26:52] [ $I ] [IP:192.168.3.245]
    [03:26:52] [ $I ] [PLUGIN:WebUI v0.17]
    [03:26:52] [ $I ] [PLUGIN:SDCARD v1.09]
    [03:26:52] [ $I ] ok
    [03:26:52] [ $G ] [GC:G0 G54 G17 G21 G90 G94 G49 G98 G50 M5 M9 T0 F0 S0.]
    [03:26:52] [ $G ] ok
    [03:26:53] [ connect ] Firmware Detected: grbl version 1.1f on COM13
     
  6. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,505
    Likes Received:
    4,422
    Would still be the better option
    They know the specific intricacies of their own software better
     
  7. residentdj

    Builder

    Joined:
    Dec 19, 2021
    Messages:
    24
    Likes Received:
    3
    oh, this is with CONTROL and regular CNC profile. No laser
     
  8. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,505
    Likes Received:
    4,422
    In that case, refer the detailed procedure above
     
  9. residentdj

    Builder

    Joined:
    Dec 19, 2021
    Messages:
    24
    Likes Received:
    3
    And this is exactly where I have the problem.

    With limit switches enabled and $23 = X min, Y min, homing works fine,
    Screenshot 2023-06-12 022928.png

    however, Home coordinates and up being:

    Screenshot 2023-06-12 022854.png
    I assume it is because I have these set

    Screenshot 2023-06-12 033617.png


    So, at this point, even if I click "Set Zero", moving in any direction produces this error

    Screenshot 2023-06-12 022829.png




    And If I set $23 X = max, and Y = max, homing sends the head to the far right corner, exactly what I am trying to avoid.
     

    Attached Files:

  10. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,505
    Likes Received:
    4,422
    That's the WORK Coordinates

    Remember to probe/setzero to set those

    1) You are running standard Grbl (no 3rd party version, custom compile?) - if yes, flash back standard firmware first.

    2) Soft Limits needs just two things:
    2.1) Axis directions / Homing directions set correctly (everything must follow cartesian standard)

    You had something backwards, could play into this

    and

    2.2) Remember to HOME first (Soft limits applies to machine coordinates)

    Have a read through
    Negative Coord System: Frequently Asked Questions
    and Soft Limits Grbl v1.1 Configuration

    (PS Soft Limits alternative, install Switches: docs:blackbox-x32:connect-xtension-limit [OpenBuilds Documentation] (2nd diagram for min/max)
     
    #10 Peter Van Der Walt, Jun 12, 2023
    Last edited: Jun 12, 2023

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice