Welcome to Our Community

Some features disabled for guests. Register Today.

Workbee Limit Switches Not Stopping Motors

Discussion in 'CNC Mills/Routers' started by Jolly_Greem_Giant, Jan 26, 2021.

  1. Jolly_Greem_Giant

    Builder

    Joined:
    Jan 26, 2021
    Messages:
    5
    Likes Received:
    0
    Hi I have just built a workbee 1000mm x 750mm screwdrive and have an issue with the limit switches.
    The limit switches do not cut the motors.
    The switches nomaly show no hit and change to hit when pressed by hand.
    When trying to home the machine for the first time the Z switch gets hit and show in duet as being hit but the motor keeps turning.
    This happens on all 3 Axis, have I missed something obvious?

    Thanks
    Brian
     
  2. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,431
  3. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,695
    Likes Received:
    1,326
    Could you please post the contents of your config.g and customconfig.g files?

    I assume you have the black and red/orange user interface screen, and are homing using the buttons on the interface.

    Alex.
     
    sharmstr likes this.
  4. Jolly_Greem_Giant

    Builder

    Joined:
    Jan 26, 2021
    Messages:
    5
    Likes Received:
    0
    Hi Alex
    Please find information requested below.
    My interface is not the one you mentioned but I am trying to use the home buttons on the machine control tab.
    On the customconfig jog without homing is enabled to check motion was all running correct directions and smooth.
    On the line
    ; Configure Endstops
    M574 X2 Y2 Z2 S0; Set active low endstops

    I have tried changing to S1 with no difference


    Config.g
    ; Configuration file for Duet
    ; executed by the firmware on start-up
    ; WorkBee Firmware Version 1.0.7

    ; Configure Connection - ENABLE ONLY ONE OF THE BELOW THREE
    ;M552 S1 ; Enable Wifi Network
    ;M552 S2 ; Enable Access Point Mode
    M552 S1 P192.168.2.12 ; Enable Ethernet - Change IP Address to suit

    ; - - - - - - - - - - - - - - - - - - - -

    ; DO NOT CHANGE ANY OF SETTINGS BELOW
    ; TO MAKE A CHANGE, COPY THE LINE OF CODE, PASTE IT INTO customconfig.g. THE CHANGE CAN THEN BE MADE IN customconfig.g
    ; ANY ADDITIONAL SETTINGS SHOULD BE PUT IN customconfig.g


    ; General preferences
    M453 ; Put the machine into CNC Modes
    M550 PWorkBee CNC Machine ; Set machine name
    G90 ; Set absolute coordinates


    ; Network
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet


    ; Configure Drives
    M569 P0 S0 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M584 X0 Y1:3 Z2 ; Apply drive mapping to axes


    ; Configure Axes
    M92 X400 Y400 Z400 ; Set steps per mm
    M350 X16 Y16 Z16 I1 ; Configure microstepping
    M566 X500 Y500 Z500 ; Set maximum instantaneous speed changes (mm/min)
    M203 X2500 Y2500 Z2500 ; Set maximum speeds (mm/min)
    M201 X150 Y150 Z150 ; Set accelerations (mm/s^2)
    M906 X2400 Y2400 Z2400 I100 ; Set motor currents (mA)


    ; Configure Axis Limits
    M208 X0 Y0 Z0 S1 ; Set axis minima
    M208 X550 Y770 Z94 S0 ; Set axis maxima


    ; Configure Endstops
    M574 X2 Y2 Z2 S0; Set active low endstops


    ; Other Settings
    M140 H-1 ; Disable heated bed
    M564 S1 H1 ; Disable jog commands when not homed
    M911 S21.0 R23 P"G91 G1 Z3 F1000" ; Configure power loss resume
    M501 ; Load Stored Parameters
    M98 Pcustomconfig.g ; Execute custom config settings

    Customconfig.g

    ; ADD ANY CUSTOM SETTINGS BELOW
    M564 S1 H0 ; Disable jog commands when not homed

    Interface
    upload_2021-1-27_13-35-44.png
     
  5. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,695
    Likes Received:
    1,326
    OK - looks as though you have updated the firmware, but you have missed the step to upload the user interface. Follow the instructions in the link below and let me know if that solves the problem.
    Alex.

    3. Connecting, Updating and Configuring Your WorkBee
     
  6. Jolly_Greem_Giant

    Builder

    Joined:
    Jan 26, 2021
    Messages:
    5
    Likes Received:
    0
    Hi Alex,
    I have updated the interface but still have the same issues.
    Switches shouw as not hit by default and change to hit when press by hand or when hit but the motors don't stop.
    Brian
     
  7. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,695
    Likes Received:
    1,326
    Just checking - jogging works correctly - X +ve moves right, Y +ve moves back and Z +ve moves up, and homing moves in the same directions - up first then back and right.
    If the movements are in the correct directions could you check that the homing files have been uploaded correctly.

    Homeall.g should say

    ; homeall.g
    ; called to home all axes

    G91 ; relative positioning
    G21 ; Set units to mm
    G1 H1 Z94 F900 ; move quickly to Z axis endstop and stop there (first pass)
    G1 Z-3 F2400 ; go back a few mm
    G1 H1 Z94 F300 ; move slowly to z axis endstop once more (second pass)
    G1 H1 X1500 Y1500 F2400 ; move quickly to X and Y axis endstops and stop there (first pass)
    G92 X800 Y770 Z94 ; Set Home Position - change to your machine size.
    G1 X-3 Y-3 F2400 ; go back a few mm
    G1 H1 X1500 Y1500 F300 ; move slowly to X and Y axis endstops once more (second pass)
    G92 X800 Y770 Z94 ; Set Home Position please change to your machine size.
    G90 ; absolute positioning

    Homex.g

    ; homex.g
    ; called to home the X axis

    G91 ; relative positioning
    G21 ; Set units to mm
    G1 H1 Z94 F900 ; move quickly to Z axis endstop and stop there (first pass)
    G1 Z-3 F2400 ; go back a few mm
    G1 H1 Z94 F300 ; move slowly to z axis endstop once more (second pass)
    G1 H1 X1500 F2400 ; move quickly to X and Y axis endstops and stop there (first pass)
    G92 X800 Z94 ; Set Home Position please - to your machine size.
    G1 X-3 F2400 ; go back a few mm
    G1 H1 X1500 F300 ; move slowly to X and Y axis endstops once more (second pass)
    G92 X800 Z94 ; Set Home Position please - to your machine size.
    G90 ; absolute positioning

    homey.g

    ; homey.g
    ; called to home the Y axis

    G91 ; relative positioning
    G21 ; Set units to mm
    G1 H1 Z94 F900 ; move quickly to Z axis endstop and stop there (first pass)
    G1 Z-3 F2400 ; go back a few mm
    G1 H1 Z94 F300 ; move slowly to z axis endstop once more (second pass)
    G1 H1 Y1500 F2400 ; move quickly to X and Y axis endstops and stop there (first pass)
    G92 Y770 Z94 ; Set Home Position - change to your machine size.
    G1 Y-3 F2400 ; go back a few mm
    G1 H1 Y1500 F300 ; move slowly to X and Y axis endstops once more (second pass)
    G92 Y770 Z94 ; Set Home Position - change to your machine size.
    G90 ; absolute positioning

    and homez.g

    ; homez.g
    ; called to home the Z axis

    G91 ; relative positioning
    G21 ; Set units to mm
    G1 H1 Z94 F1500 ; move quickly to Z axis endstop and stop there (first pass)
    G92 Z94 ; Set Home Position - change to your machine size.
    G1 Z-3 F2400 ; go back a few mm
    G1 H1 Z94 F300 ; move slowly to X axis endstop once more (second pass)
    G92 Z94 ; Set Home Position - change to your machine size.
    G90 ; absolute positioning

    Alex.
     
  8. Jolly_Greem_Giant

    Builder

    Joined:
    Jan 26, 2021
    Messages:
    5
    Likes Received:
    0
    Hi Alex
    All jog comands work in the correct direction
    Was slightly surprised machine homes to top right was expecting it to home top left
    My G92 commands are x550 y750 I presume this due to me having a 1000 x 750 machine
    Other than that all files are identical to yours
    Thanks
    Brian
     
  9. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,695
    Likes Received:
    1,326
    Hi Brian, I am away from home with very limited Internet - will try to give a bit more help this evening/tomorrow (UK time). If the switches are responding to being hit by the gantries and the homing files are as they should be I'm at a bit of a loss at the moment.
    Alex.
     
  10. Jolly_Greem_Giant

    Builder

    Joined:
    Jan 26, 2021
    Messages:
    5
    Likes Received:
    0
    Hi Alex.
    Thank you for all your help. I have stumbled across a fix.
    Pressing the set button for each axis in machine control appears to have solved the issue.
    Once again many thanks
    Brian
     

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