Welcome! Log In Create A New Profile

Advanced

Error: Invalid tool number

Posted by FirstBarrel 
Error: Invalid tool number
August 04, 2022 09:14AM
Okay, my printer successfully uploads the model via wifi, I can extrude the filament by selecting the current tool, but when I load the model for printing, it gives me the wrong tool number. FIRST time today he typed normally, but now he again inserts this stupid mistake for me.

The order of my actions:
I select the tool in the web control, make sure I can select extrude-retract filament, after that, click on the load r-code button.

This usually works, but as if spontaneously (from the position of the stars in the sky) it stops working, although again I can select my current tool and extrude a thread.


Here is my code in config.g file
7; Configuration file for Fly-E3 (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.1-LPC-STM32+7 on Mon May 02 2022 00:22:28 GMT+0300 (Москва, стандартное время)

; General preferences
G90                                            ; send absolute coordinates...
M83                                            ; ...but relative extruder moves
M550 P"ender6"                                 ; set printer name
M669 K1                                        ; select CoreXY mode

; Network
M551 P"133611"                           	   ; set password
M552 S1                                        ; enable network
M586 P0 S1                                     ; enable HTTP
M586 P1 S0                                     ; disable FTP
M586 P2 S0                                     ; disable Telnet

; Drives
M569 P0 S1                                     ; physical drive 0 goes forwards using default driver timings x axis
M569 P1 S1                                     ; physical drive 1 goes forwards using default driver timings y axis
M569 P2 S0                                     ; physical drive 2 goes forwards using default driver timings z axis
M569 P3 S0                                     ; physical drive 3 goes forwards using default driver timings e extruder
M584 X0 Y1 Z2 E3                               ; set drive mapping
M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
M92 X160.00 Y160.00 Z400.00 E710.18            ; set steps per mm
M566 X1500.00 Y1500.00 Z60.00 E120.00          ; set maximum instantaneous speed changes (mm/min)
M203 X9000.00 Y9000.00 Z720.00 E1200.00        ; set maximum speeds (mm/min)
M201 X3000.00 Y3000.00 Z20.00 E250.00          ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800 I30                   ; set motor currents (mA) and motor idle factor in per cent
M84 S30                                        ; Set idle timeout

; Axis Limits
M208 X0 Y0 Z0 S1                               ; set axis minima
M208 X230 Y210 Z350 S0                         ; set axis maxima

; Endstops
M574 X1 S1 P"xstop"                            ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop"                            ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
M574 Z1 S1 P"zstop"                            ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin zstop

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

; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4380 C0.382360139e-7; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bed" T0                              ; create bed heater output on bed and map it to sensor 0
M570 H0 P500 T10 							   ; set temperature fault time 120 s, value 10 degrees
M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0                                        ; map heated bed to heater 0
M143 H0 S120                                   ; set temperature limit for heater 0 to 120C
M143 H0 S120                                   ; set temperature limit for heater 0 to 120C
M308 S1 P"e0temp" Y"thermistor" T100000 B4320 C0.34233639e-7  ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
M143 H1 S350 

; Fans
M950 F0 C"fan0" Q500                           ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H-1                                 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"fan1" Q500                           ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H-1                                 ; set fan 1 value. Thermostatic control is turned off

; Tools
M563 P0 S"Extruder1" D0 H1 F0:1                             ; define tool 0
G10 P0 X0 Y0 Z0                                ; set tool 0 axis offsets
G10 P0 R0 S0                                   ; set initial tool 0 active and standby temperatures to 0C

; Custom settings are not defined
M572 D0 S0.05

VDX
Re: Error: Invalid tool number
August 04, 2022 09:48AM
... is eventually another tool (T1 or higher) selected in the G-code?


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: Error: Invalid tool number
August 04, 2022 10:42AM
Like one and the same?
Re: Error: Invalid tool number
August 04, 2022 11:23AM
... is eventually another tool (T1 or higher) selected in the G-code?

No, I only have one extruder, I named it "Extruder 1". In the Cura settings, I did not find where you can select the number of the tool, I did not insert it in the starting gcode.
M92 X160 Y160
M140 S{material_bed_temperature} ; start preheating the bed
M104 S{material_print_temperature} T1 ; start preheating hotend
G28 ;Home

G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
M92 X160 Y160
Re: Error: Invalid tool number
August 04, 2022 12:20PM
Okay, just be careful with the commands, I chose the tool "1" in the M104 command, but it should have been "0", from this the printer cursed at the wrong tool (actually not set).
Sorry, only registered users may post in this forum.

Click here to login