keep getting Error: Cannot print, because no file is selected!
-
hi there,
I set up a delta rod sensor for my 6 arms incase the magballs arms falls off the balls. I am using limit switches wired in series to "e1stop" normally closed and if open will trigger a m581 command that pauses print. I also introduced a meta command that will also check the status of the input 5 seconds after m581 triggers to make sure it is still OPEN before continuing with the pause or else it will attempt to resume instead. I did this so the firmware will resume on false triggers due to vibration of the arms that might give false triggers. This is causing an endless amount of "Error: Cannot print, because no file is selected!" to be displayed under the console. Is there a way to eliminate this? Below are my gcode files. Thank you.
firmware 3.3RC3
config.g:
M950 J1 C"e1stop" ; assign e0stop to J1 input. !=active to inactive
M581 T2 P1 R1trigger2.g:
g4 S5
if sensors.gpIn[1].value != 0
m25
elif sensors.gpIn[1].value = 0
M24pause.g:
M83 ; relative extruder moves
G1 E-3 F3600 ; retract 3mm of filament
G91 ; relative positioning
G1 Z10 F6000 ; lift Z by 80mm
G90 ; absolute positioning
m104 s0resume.g:
M703 ; set filament config.g (this just sets the temperature)
M98 P"/sys/PRINTCODE/starttemp.g"
g91
G1 R1 X0 Y0 Z5 F6000 ; go to 100mm above position of the last print move
g90
M83 ; relative extruder moves
G1 E3 F3600 ; extrude 10mm of filamentfilament config.g:
M579 X0.999730148 Y0.997220413 z1 ; scale correction with calibration cross and tower
M221 D0 S100.02325581 ;E step flow rate correction D=extruder drive#, S=flowrate
M207 p0 S2 R3 F3000 T3000 Z0.0 ; firmware retraction settings for PETG
;P= tool number
;S= retraction mm
;R= unretraction mm
;F= feedrate of retraction
;T= feedrate of unretraction
;Z= z lift in mmm566 x1200 y1200 y1200 ;jerk speed mm/min. instantaneous speed change
m204 P2000 t2000 ;acceleration mm/s^2. P=print move. T=travel move.M28 /sys/PRINTCODE/starttemp.g ; begin write to SD card
M190 S100 ; set bed temp and wait for it to be reached
M568 P0 S265 R160 A2 ; set hotend temp
M116 P0 ;wait for hotend temp to be reached
M29 ;Stop write to SD cardstarttemp.g:
M190 S100
M568 P0 S265 R160 A2
M116 P0 -
@tekstyle said in keep getting Error: Cannot print, because no file is selected!:
elif sensors.gpIn[1].value = 0
M24I suggest you also check that the machine state is paused within that 'elif' condition.
-
ok, i'll try that! thanks david.
would that be under state.status in the objective model tree?so what I would enter is :
elif {sensors.gpIn[1].value = 0} & {state.status = "paused"}
(indent)M24