Unable to run Gcodes from Estlcam in Web control



  • Hi,

    I build a MPCNC and use a Duet Wifi. I create my gcode files with Estlcam, but when I try to run them I only get errors like "Outside machine limits" or "finished printing in 0h 0m". Can someone help me please?



  • See here: https://forum.duet3d.com/topic/5909/guide-for-posting-requests-for-help/11

    We will need at a minimum your config files and the g-code you are trying to run.



  • ; Configuration file for Duet WiFi (firmware version 1.21)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Mar 09 2019 22:37:11 GMT+0100 (Mitteleuropäische Normalzeit)

    ; General preferences
    M584 X0:4 Y1:3 Z2 U4 V3 P3 ; Apply custom drive mapping
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M453 ; Enable CNC Mode

    ; Network
    M550 P"MPCNC" ; Set machine name
    M552 S1 ; Enable network
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S1 ; Drive 0 goes forwards X
    M569 P1 S0 ; Drive 1 goes forwards Y
    M569 P2 S1 ; Drive 2 goes forwards Z
    M569 P3 S1 ; Drive 3 goes backwards v [Y]
    M569 P4 S0 ; Drive 4 goes backwards U [X]

    M350 X16 Y16 Z16 U16 V16 I1 ; Configure microstepping with interpolation
    M92 X100.00 Y100.00 U100.00 V100.00 Z200.00 ; Set steps per mm
    M566 X600.00 Y600.00 U600.00 V600.00 Z12.00 ; Set maximum instantaneous speed changes (mm/min)
    M203 X4000.00 Y4000.00 U4000.00 V4000.00 Z180.00 ; Set maximum speeds (mm/min)
    M201 X300.00 Y300.00 U300.00 V300.00 Z20.00 ; Set accelerations (mm/s^2)
    M906 X2000.00 Y2000.00 U2000.00 V2000.00 Z2000.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 Z0 U0 V0 S1 ; Set axis minima
    M208 X731 Y731 Z108 U731 V731 S0 ; Set axis maxima

    ; Endstops
    M574 X1 S1 C0
    M574 Y1 S1 C1
    M574 Z2 S1 C2
    M574 U1 S1 C4
    M574 V1 S1 C3

    ; Z-Probe
    M558 P0 H5 F120 T6000 ; Disable Z probe but set dive height, probe speed and travel speed
    M557 X15:195 Y15:195 S20 ; Define mesh grid

    ; Heaters
    M140 H-1 ; Disable heated bed

    ; Fans

    ; Tools
    M563 P0 ; Define tool 1

    ; Automatic power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings are not configured


    ;Project 0102[1]
    ;Created by Estlcam version 11 build 11,105
    ;Machining time about 00:03:43 hours

    G90
    M03 S00.001
    G00 X00.000 Y00.000 Z00.000 F2100
    G00 Z00.005 F480

    ;No. 1: Gravur 2
    G00 X00.173 Y00.271 F2100
    G00 Z00.001 F480
    G01 Z00.000 F01.200 S00.001
    G02 X00.217 Y00.303 I00.058 J-00.035 F01.200
    G02 X00.251 Y00.301 I00.014 J-00.066 F01.200
    G02 X00.286 Y00.275 I-00.020 J-00.065 F01.200
    G01 X00.288 Y00.274 F01.200
    G01 X00.289 Y00.272 F01.200
    G02 X00.281 Y00.265 I-00.111 J00.114 F01.200
    G03 X00.278 Y00.258 I00.007 J-00.007 F01.200
    G01 Y00.257 F01.200
    G03 X00.281 Y00.252 I00.007 J00.001 F01.200
    G03 X00.284 Y00.250 I00.007 J00.009 F01.200
    G01 X00.283 F01.200
    G01 X00.282 F01.200
    G01 X00.281 F01.200
    G03 X00.279 Y00.248 I00.001 J-00.002 F01.200
    G01 Y00.246 F01.200
    G01 Y00.247 F01.200
    G01 X00.278 Y00.248 F01.200
    G01 X00.277 Y00.249 F01.200
    G02 X00.275 Y00.254 I00.009 J00.007 F01.200
    G03 X00.272 Y00.256 I-00.006 J-00.006 F01.200
    G03 X00.269 I-00.004 J-00.012 F01.200
    G01 X00.268 Y00.257 F01.200
    G02 X00.266 I00.002 J00.010 F01.200
    G01 Y00.256 F01.200
    G01 Y00.255 F01.200
    G01 Y00.253 F01.200
    G01 X00.267 Y00.252 F01.200
    G03 X00.268 Y00.249 I00.009 J00.002 F01.200
    G03 X00.270 Y00.247 I00.007 J00.005 F01.200
    G02 X00.273 Y00.245 I-00.002 J-00.011 F01.200
    G02 X00.276 Y00.243 I-00.005 J-00.007 F01.200
    G01 X00.274 F01.200
    G01 X00.273 F01.200
    G03 X00.271 Y00.241 I00.001 J-00.004 F01.200
    G03 Y00.240 I00.003 J-00.002 F01.200
    G01 X00.270 Y00.239 F01.200
    G01 Y00.238 F01.200
    G03 X00.268 Y00.243 I-00.023 J-00.007 F01.200
    G01 X00.267 Y00.244 F01.200
    G03 X00.263 Y00.245 I-00.004 J-00.007 F01.200
    G03 X00.256 Y00.243 I-00.001 J-00.012 F01.200
    G01 X00.255 Y00.242 F01.200
    G02 X00.250 Y00.234 I-00.072 J00.038 F01.200
    G02 X00.245 Y00.228 I-00.031 J00.021 F01.200
    G02 X00.251 Y00.222 I-00.016 J-00.021 F01.200
    G01 X00.253 Y00.219 F01.200
    G01 X00.254 Y00.218 F01.200
    G01 X00.255 Y00.216 F01.200
    G03 X00.258 Y00.215 I00.005 J00.004 F01.200
    G03 X00.262 Y00.214 I00.004 J00.012 F01.200
    G03 X00.266 I00.000 J00.014 F01.200
    G01 X00.267 Y00.215 F01.200
    G01 X00.268 F01.200
    G01 X00.271 Y00.220 F01.200
    G01 X00.273 Y00.225 F01.200
    G01 X00.274 Y00.224 F01.200
    G01 Y00.223 F01.200
    G03 X00.275 Y00.222 I00.002 J00.001 F01.200
    G01 X00.276 F01.200
    G01 X00.277 F01.200
    G01 X00.278 F01.200
    G02 X00.274 Y00.217 I-00.038 J00.028 F01.200
    G01 X00.273 Y00.216 F01.200
    G03 X00.270 Y00.211 I00.003 J-00.005 F01.200
    G01 Y00.210 F01.200
    G01 Y00.208 F01.200
    G01 Y00.207 F01.200
    G03 X00.274 Y00.208 I-00.002 J00.017 F01.200
    G03 X00.277 Y00.210 I-00.002 J00.006 F01.200
    G03 X00.278 Y00.211 I-00.005 J00.004 F01.200
    G01 Y00.212 F01.200
    G01 Y00.213 F01.200
    G01 X00.279 Y00.216 F01.200
    G01 X00.280 Y00.217 F01.200
    G01 Y00.219 F01.200
    G01 X00.281 Y00.220 F01.200
    G01 X00.282 Y00.221 F01.200
    G02 X00.283 I00.000 J-00.001 F01.200
    G01 Y00.220 F01.200
    G01 Y00.219 F01.200
    G01 Y00.218 F01.200
    G01 X00.284 F01.200
    G01 X00.286 F01.200
    G02 X00.285 Y00.212 I-00.021 J00.000 F01.200
    G02 X00.281 Y00.205 I-00.032 J00.009 F01.200
    G02 X00.274 Y00.196 I-00.034 J00.020 F01.200
    G02 X00.251 Y00.191 I-00.016 J00.022 F01.200
    G02 X00.238 Y00.198 I00.008 J00.032 F01.200
    G02 X00.235 Y00.201 I00.024 J00.030 F01.200
    G01 X00.230 Y00.206 F01.200
    G01 X00.227 Y00.209 F01.200
    G03 X00.236 Y00.212 I00.003 J00.007 F01.200
    G03 Y00.220 I-00.006 J00.004 F01.200
    G03 X00.229 Y00.223 I-00.006 J-00.005 F01.200
    G03 X00.227 I00.002 J-00.010 F01.200
    G03 X00.222 Y00.231 I-00.007 J00.002 F01.200
    G03 X00.213 Y00.228 I-00.002 J-00.007 F01.200
    G03 Y00.225 I00.006 J-00.003 F01.200
    G01 X00.212 F01.200
    G01 X00.213 Y00.224 F01.200
    G03 X00.214 Y00.220 I00.007 J00.001 F01.200
    G03 X00.208 Y00.215 I00.001 J-00.007 F01.200
    G03 Y00.213 I00.007 J-00.003 F01.200
    G01 Y00.212 F01.200
    G03 X00.213 Y00.205 I00.007 J00.001 F01.200
    G03 X00.219 Y00.206 I00.002 J00.007 F01.200
    G01 X00.220 Y00.207 F01.200
    G01 Y00.208 F01.200
    G01 Y00.203 F01.200
    G01 X00.219 Y00.200 F01.200
    G01 Y00.197 F01.200
    G02 X00.208 Y00.180 I-00.026 J00.005 F01.200
    G02 X00.198 Y00.175 I-00.021 J00.029 F01.200
    G02 X00.184 Y00.172 I-00.016 J00.047 F01.200
    G02 X00.176 Y00.173 I-00.001 J00.024 F01.200
    G02 X00.170 Y00.176 I00.007 J00.022 F01.200
    G02 X00.166 Y00.179 I00.007 J00.010 F01.200
    G02 X00.165 Y00.182 I00.005 J00.003 F01.200
    G01 Y00.183 F01.200
    G02 X00.166 Y00.184 I00.002 J00.000 F01.200
    G02 X00.167 Y00.185 I00.001 J-00.002 F01.200
    G02 X00.170 Y00.184 I00.000 J-00.006 F01.200
    G01 X00.171 Y00.183 F01.200
    G01 X00.172 F01.200
    G01 X00.174 Y00.182 F01.200
    G03 X00.178 Y00.181 I00.006 J00.016 F01.200
    G03 X00.183 I00.002 J00.016 F01.200
    G03 X00.177 Y00.188 I-00.009 J-00.001 F01.200
    G01 X00.176 Y00.189 F01.200
    G01 X00.174 F01.200
    G01 X00.173 F01.200
    G01 X00.172 Y00.188 F01.200
    G02 X00.169 I-00.001 J00.009 F01.200
    G02 X00.168 Y00.189 I00.000 J00.002 F01.200
    G01 Y00.190 F01.200
    G01 Y00.191 F01.200
    G01 Y00.192 F01.200
    G02 X00.169 Y00.194 I00.004 J00.000 F01.200
    G02 X00.171 Y00.195 I00.003 J-00.003 F01.200
    G02 X00.174 I00.001 J-00.011 F01.200
    G01 X00.176 F01.200
    G01 X00.177 F01.200
    G01 X00.180 Y00.194 F01.200
    G01 X00.181 F01.200
    G01 X00.183 F01.200
    G01 X00.184 F01.200
    G03 X00.186 I00.000 J00.004 F01.200
    G03 X00.189 Y00.196 I-00.004 J00.009 F01.200
    G03 X00.191 Y00.200 I-00.006 J00.006 F01.200
    G01 X00.192 Y00.201 F01.200
    G01 Y00.202 F01.200
    G01 X00.193 Y00.205 F01.200
    G02 X00.194 Y00.209 I00.015 J-00.003 F01.200
    G02 X00.196 Y00.212 I00.008 J-00.004 F01.200
    G02 X00.194 Y00.211 I-00.002 J00.004 F01.200
    G02 X00.191 Y00.212 I00.001 J00.011 F01.200
    G01 X00.190 F01.200
    G01 X00.188 Y00.213 F01.200
    G01 X00.185 Y00.214 F01.200
    G01 X00.183 Y00.215 F01.200
    G03 X00.180 I-00.004 J-00.013 F01.200
    G03 X00.177 I-00.001 J-00.007 F01.200
    G03 X00.173 Y00.212 I00.004 J-00.007 F01.200
    G01 X00.171 Y00.208 F01.200
    G02 X00.169 Y00.204 I-00.012 J00.007 F01.200
    G01 X00.167 Y00.202 F01.200
    G02 X00.163 Y00.201 I-00.003 J00.004 F01.200
    G02 X00.161 Y00.202 I00.001 J00.004 F01.200
    G01 Y00.203 F01.200
    G01 Y00.205 F01.200
    G01 Y00.206 F01.200
    G01 Y00.208 F01.200
    G03 X00.168 Y00.211 I00.000 J00.008 F01.200
    G03 X00.170 Y00.215 I-00.010 J00.008 F01.200
    G03 X00.171 Y00.220 I-00.017 J00.005 F01.200
    G03 X00.166 Y00.219 I00.000 J-00.013 F01.200
    G03 X00.162 Y00.215 I00.004 J-00.009 F01.200
    G01 Y00.220 F01.200
    G01 X00.163 Y00.225 F01.200
    G03 Y00.236 I-00.135 J00.011 F01.200
    G01 Y00.239 F01.200
    G02 X00.173 Y00.271 I00.068 J-00.003 F01.200
    G00 Z00.005 F480

    M05


  • administrators

    I don't see any problem with those files, so I suspect the issue is the state the machine is in immediately after homing. Please post your homing files.



  • Are those files really OK? I know nothing about CNC so please forgive my ignorance but it looks like "G03 X00.162 Y00.215 I00.004 J-00.009 F01.200" is commanding movement for X, Y, I and J axes yet X,Y U and V are what are in config.g. And feed rate of 01.200?


  • administrators

    @deckingman said in Unable to run Gcodes from Estlcam in Web control:

    Are those files really OK? I know nothing about CNC so please forgive my ignorance but it looks like "G03 X00.162 Y00.215 I00.004 J-00.009 F01.200" is commanding movement for X, Y, I and J axes yet X,Y U and V are what are in config.g. And feed rate of 01.200?

    In G2 and G3 commands, the I and J parameters specify the relative XY coordinates of the centre of the arc.

    EDIT: I agree that a feed rate of 1.02mm/min looks low, even for a CNC machine. And I've just remembered that the default minimum feedrate in RRF is 0.5mm/sec i.e. 30mm/min.



  • @dc42 Ahh OK. - Thanks.



  • ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Mar 09 2019 22:37:11 GMT+0100 (Mitteleuropäische Normalzeit)

    M584 Y1 P5; split y axis
    G1 S1 Y-730 V-730 F500 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 Y3 V3 F500 ; go back a few mm
    G1 S1 Y-730 V-730 F150 ; move slowly to X and Y axis endstops once more (second pass)
    M584 Y1:3 P3 ; join y axis
    G90 ; absolute positioning

    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Mar 09 2019 22:37:11 GMT+0100 (Mitteleuropäische Normalzeit)

    M584 X0 P5; split x axis
    G1 S1 X-730 U-730 F500 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X3 U3 F500 ; go back a few mm
    G1 S1 X-730 U-730 F150 ; move slowly to X and Y axis endstops once more (second pass)
    M584 X0:4 P3 ; join x axis

    G90 ; absolute positioning

    I home Z with G92 Z0, because I have no endstop on Z.


  • administrators

    There are some errors in your homing files, although I am not sure they are the cause of the problem. I suggest the following (changes in bold). After making these changes, if it still doesn't work, please check whether you can jog the printer using the jog buttons in Duet web Control, after you have homed it.

    ; homey.g
    ; called to home the Y axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Mar 09 2019 22:37:11 GMT+0100 (Mitteleuropäische Normalzeit)

    M584 Y1 P5; split y axis
    G91
    G1 S1 Y-740 V-740 F500 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 Y3 V3 F500 ; go back a few mm
    G1 S1 Y-10 V-10 F150 ; move slowly to X and Y axis endstops once more (second pass)
    M584 Y1:3 P3 ; join y axis
    G90 ; absolute positioning

    ; homex.g
    ; called to home the X axis
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Mar 09 2019 22:37:11 GMT+0100 (Mitteleuropäische Normalzeit)

    M584 X0 P5; split x axis
    G91
    G1 S1 X-740 U-740 F500 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 X3 U3 F500 ; go back a few mm
    G1 S1 X-10 U-10 F150 ; move slowly to X and Y axis endstops once more (second pass)
    M584 X0:4 P3 ; join x axis

    G90 ; absolute positioning



  • I changed the home files for X and Y with your values. Everything works like before. I can home and jog it after homing. What else can I do?

    Edit: At some point the Z axis rises unreasonably high and I get the error message "G0/G1 outside machine limits".


  • administrators

    I'll run those files on my bench system. Which firmware version are you running? Send M115 to check.



  • Thank you. Here's the firmware:

    FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.03beta2


  • administrators

    I've just run your config.g file, homing files (with my changes) and print file on my bench system. I didn't see any error messages or large Z movements. But the job completed very quickly.

    I notice that the movement amounts in the GCode print file are tiny. I've already commented on the very low feed rate. Are the units supposed to be inches instead of mm? I tried inserting G20 at the start and G21 at the end, so that the values would be interpreted as inches, and the job took around a minute.



  • The print file was from yesterday. I think Estlcam wasn't setup correctly, but now it should be. I just want to test something, to see if it works and then finetune from there. First I want to draw this picture with a pen to see if its square and later I want to try it with the spindle:Estlcam

    Maybe you could try the new test file:

    ;Project test
    ;Created by Estlcam version 11 build 11,105
    ;Machining time about 00:03:30 hours

    G90
    G00 X0.0000 Y0.0000 Z0.0000
    G00 Z5.0000

    ;No. 1: Gravur 1
    G00 X100.0000 Y100.0000
    G01 Z-0.0100 F1200 S1
    G01 Y363.9995
    G01 X364.0001
    G01 Y100.0000
    G01 X100.0000

    ;No. 2: Gravur 6
    G00 X100.0000 Y231.9997
    G00 Z0.5000
    G01 Z-0.0100 F1200
    G01 X364.0001

    ;No. 3: Gravur 5
    G00 X217.2431 Y248.3160
    G01 Z-0.0100 F1200
    G02 X253.5093 Y236.6217 I14.7572 J-16.3163
    G02 X225.2486 Y211.0614 I-21.5090 J-4.6220
    G02 X217.2431 Y248.3160 I6.7517 J20.9383

    ;No. 4: Gravur 4
    G00 X206.4779 Y267.8410 Z5.0000
    G00 Z0.5000
    G01 Z-0.0100 F1200
    G02 X275.8010 Y236.1822 I25.5225 J-35.8413
    G02 X213.7221 Y191.9760 I-43.8007 J-4.1825
    G02 X206.4779 Y267.8410 I18.2782 J40.0237
    G00 Z5.0000

    ;No. 5: Gravur 3
    G00 X169.7751 Y294.2244 Z5.0000
    G00 Z0.5000
    G01 Z-0.0100 F1200
    G02 X317.0017 Y254.7751 I62.2253 J-62.2253
    G02 X209.2243 Y146.9978 I-85.0013 J-22.7760
    G02 X169.7751 Y294.2244 I22.7760 J85.0013
    G00 Z5.0000

    ;No. 6: Gravur 2
    G00 X129.6062 Y315.3036 Z5.0000
    G00 Z0.5000
    G01 Z-0.0100 F1200
    G02 X355.3407 Y279.0238 I102.3942 J-83.3038
    G02 X211.0542 Y101.6719 I-123.3403 J-47.0240
    G02 X129.6062 Y315.3036 I20.9462 J130.3279
    G00 Z5.0000

    ;No. 7: Gravur 7
    G00 X232.0004 Y363.9995 Z5.0000
    G00 Z0.5000
    G01 Z-0.0100 F1200
    G01 Y100.0486
    G00 Z5.0000
    G00 X0.0000 Y0.0000

    Edit: After the outer square is done the Z axis rises unreasonably high and I get the error message "G0/G1 outside machine limits".


  • administrators

    I now get "Error: G0/G1: outside machine limits". The reason is this line:

    G01 Z-0.0100 F1200 S1

    This commands Z to -0.01 which is below the limit of 0 set by your M208 S1 command. If I send M208 S1 Z-1 before I run the job, then it continues at that point.

    When it fails, I don't see a Z movement to a high value. Do you have a cancel.g or stop.g file that might be commanding that movement?



  • I already tryed to change the M208 command to: M208 X0 Y0 Z-100 U0 V0 S1, but it doesn't help.

    This is cancel.g:

    ; stop.g
    ; called when a print is cancelled after a pause.

    This is stop.g:

    ; stop.g
    ; called when M0 (Stop) is run (e.g. when a print from SD card is cancelled)
    ;
    ; generated by RepRapFirmware Configuration Tool v2 on Sat Mar 09 2019 22:37:11 GMT+0100 (Mitteleuropäische >Normalzeit)

    Do you have any other idea what it could be?


  • administrators

    @3drikat said in Unable to run Gcodes from Estlcam in Web control:

    I already tryed to change the M208 command to: M208 X0 Y0 Z-100 U0 V0 S1, but it doesn't help.

    Are you saying that with that change, it still gives the "outside machine limits" error? It doesn't on my bench system, when I use Z-1 where you have used Z-100. Did you allow the machine to restart after you saved this change to config.g?



  • @dc42 yes still the same error with either Z-1 or Z-100 and I restarted everytime I changed something in the config.g.


  • administrators

    @3drikat said in Unable to run Gcodes from Estlcam in Web control:

    @dc42 yes still the same error with either Z-1 or Z-100 and I restarted everytime I changed something in the config.g.

    That is odd, the whole file works for me. Please try the following:

    1. Send M208 without parameters, and check that the Z minimum is reported as -100 or whatever you have set it to.
    2. Try entering the lines of your print one at a time into the GCode Console and see which one is failing.


  • @dc42 said in Unable to run Gcodes from Estlcam in Web control:

    1. Send M208 without parameters, and check that the Z minimum is reported as -100 or whatever you have set it to.

    M208
    Axis limits X0.0:731.0, Y0.0:731.0, Z-1.0:108.0, U0.0:731.0, V0.0:731.0

    Looks fine to me

    1. Try entering the lines of your print one at a time into the GCode Console and see which one is failing.

    ;Project test
    ;Created by Estlcam version 11 build 11,105
    ;Machining time about 00:03:30 hours

    G90
    G00 X0.0000 Y0.0000 Z0.0000
    G00 Z5.0000

    ;No. 1: Gravur 1
    G00 X100.0000 Y100.0000
    G00 Z0.5000
    G01 Z-0.0100 F1200 S1
    G01 Y363.9995
    G01 X364.0001
    G01 Y100.0000
    G01 X100.0000
    G00 Z5.0000

    The error appears in the bold line. The Z axis rises unreasonably high and I have to stop with the emergency stop button.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.