Closed mine2209 closed 4 years ago
There is in fact a M84 S0 in gcode file but this I believe is disabling timeout and I have tried removing it and it did not solve the issue.
Hi.
By default there is a M18 in the end gcode. Sure you removed it? Which version of the firmware are you using? Maybe you have to change this in config.ini!
No M18 in there I did check here is the gcode
`; short gcode for test ; Safe Z height: 6.000 ; Tools: 1 = V-Bit (90 deg 0.5") ; Notes: ; Generated Monday June 29 2020 09:06 PM
G90 M03 S16000 G21 G00 X0.000 Y0.000 Z0.000 G1 Z6.000 F500 G1 X0.000 Y0.000 F2540.0
; Tool 1: V-Bit (90 deg 0.5") ; Path: Profile 1 F:\short gcode for test.gcode ; G0 X443.500 Y-17.001 Z6.000 F5080.0 G1 Z-1.000 F762.0 G1 X498.653 Y44.150 F2540.0 G1 X443.500 Y105.301 F2540.0 G0 Z6.000 F5080.0 G1 6.000 F500 ;goto safe z`
made above as test file and still does it.
Checked config.ini which is adjusted here is the current config file im using have a look but i cant see what is causing the issue in there.
`#### Default Config file for BigTreeTech TFT Controllers #
#
unified_menu:1
baudrate:6
language:0
title_back_color:1
background_color:1
font_color:0
reminder_color:2
volume_status_color:5
status_xyz_bg_color:15
list_border_color:15
list_button_bg_color:15
rotate_ui:0
terminal_ack:0
invert_axis:X0 Y0 Z0
persistent_info:0
files_list_mode:1
default_mode:0
serial_always_on:0
marlin_bg_color:1 marlin_fn_color:8
marlin_show_title:0
marlin_fullscreen:1
marlin_title:Mi FUNCNC
hotend_count:1
ext_count:1
fan_count:1
max_temp:BED:150 T0:275 T1:275 T2:275 T3:275 T4:275 T5:275
min_temp:180
fan_max:F0:255 F1:255 F2:255 F3:255 F4:255 F5:255
size_min:X0 Y0 Z0 size_max:X235 Y235 Z191
move_speed:S1000 N3000 F5000
ext_speed:S60 N600 F1200
auto_load_leveling:1
onboard_sd_support:2
M27_refresh_time:3
M27_always_active:1
long_filename_support:2
fan_speed_percent:1
pause_retract:R15 P16 pause_pos:X10 Y10 pause_z_raise:60 pause_feedrate:X6000 Y6000 Z1000 E600
level_edge_distance:20 level_z_pos:0.2 level_z_raise:10 level_feedrate:X6000 Y6000 Z6000
preheat_name1:PLA preheat_temp1:T200 B60
preheat_name2:PETG preheat_temp2:T200 B60
preheat_name3:ABS preheat_temp3:T230 B90
ps_on:0
ps_on_active_high:1
auto_shutdown_temp:50
fil_runout:0
fil_runout_inverting:1
fil_noise_threshold:100
fil_runout_distance:7
pl_recovery_home:0
pl_z_raise:0
btt_mini_ups:0
buzzer:1
knob_led_color:0
lcd_brightness:10 lcd_idle_brightness:5
lcd_idle_delay:4
custom_label_1:G92 Z
custom_gcode_1:G92 Z0\n
custom_label_2:G92 XY Laser
custom_gcode_2:G92 X2.2 Y144.4\n
custom_label_3:G92.1
custom_gcode_3:G92.1\n
custom_label_4:G92.1 & Park
custom_gcode_4:G92.1\nG1 X610 Z0\n
custom_label_5:G92.1, Home, Park
custom_gcode_5:G92.1\nG28\nG1 X610 Z0\n
custom_label_6:Move to XY 0
custom_gcode_6:G1 X0 Y0\n
custom_label_7:Disable steppers
custom_gcode_7:M84\n
custom_label_8:NOT int sd card
custom_gcode_8:\n
custom_label_9:Release sd card
custom_gcode_9:M22\n
custom_label_10:restore leveling
custom_gcode_10:M420 S1\n
custom_label_11:Save to EEPROM
custom_gcode_11:M500\n
custom_label_12:restore from EEPROM
custom_gcode_12:M501\n
custom_label_13:EEPROM defaults
custom_gcode_13:M502\n
custom_label_14:Endstop states
custom_gcode_14:M119\n
start_gcode_enabled:0
end_gcode_enabled:1
cancel_gcode_enabled:1
start_gcode:G28 XY R20\n
end_gcode:G1 X0 Y0 Z50\n
cancel_gcode:M0\G1 Z10\nG1 X0 y0\n `
Thanks for suggestion though.
Believe the firmware is most up to date 0.26 30 may 2020?
i have also checked my marlin firmware and sd disable is definitely off here is the code from firmware i have flashed
` // around this by connecting a push button or single throw switch to the pin defined // as SD_DETECT_PIN in your board's pins definitions. // This setting should be disabled unless you are using a push button, pulling the pin to ground. // Note: This is always disabled for ULTIPANEL (except ELB_FULL_GRAPHIC_CONTROLLER).
**#define SD_FINISHED_STEPPERRELEASE false // Disable steppers when SD Print is finished
// Reverse SD sort to show "more recent" files first, according to the card's FAT. // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
//#define MENU_ADDAUTOSTART // Add a menu option to run auto#.g files
//#define EVENT_GCODE_SD_STOP "G28XY" // G-code to run on Stop Print (e.g., "G28XY" or "G27")
/**`
as you can see above sd disable is off and if it was on the gcode it runs is to disable the timeout...
I like the motors to be deactivated after print, so i never cared. But i hope i can do some tests soon to check if the End gCode makes a difference. Somehow it has to, otherwise the function would be useless.;-(
End gcode does work, It runs the end gcode I program and then after finishing the end gcode on the tft it disables the steppers.
My gantry is heavy so It drops into the work. I have to catch it before it damages the workpiece.
I need it to remain in place so I can do tool changes without having to rezero position which invariably adds error
Hi. Maybe a workaround for now.
I replaced the whole End gcode in config.ini with a simple M17 and now ONLY the motor of the ZZZZZZZ-axis stays activated.
Let me know
Hi.
Any news regarding the reported issue?
Please let us know
Hi, sorry for the late reply. I saw your initial message before edit regarding Y which wasnt going to help so I didnt try. Just seen your edit now to Z
interesting progress.
Just M17 in end gcode in config.ini without \n does prevent the issue, left all the steppers active for me not just Z. I then will just need to manual move the head to next location.
The interesting part now...
If I add M17\n the issue remains
So i tried adding my toolchange location with out the \n and the steppers remain active and it doesn't move to the location so I can only assume that when I put just M17 that it isnt the M17 keeping them active but the lack of the \n which must enter the code, I assume it isnt even running the M17.
Issue isnt solved but this means at least I can get on with my project
Cancel that it does disable the steppers but it locks me out of the machine. When I try to manually move the carriage I get busy processing, please wait at the top.
Not sure there is a logical explanation for all this😜
So this locks you out generally or once the print has finished?
What happens with the stepper motors when you cancel a print?
And have you mentioned if you print from mainboard or TFT?
mine2209 notifications@github.com schrieb am So. 5. Juli 2020 um 17:10:
Cancel that it doesn’t disable the steppers but it locks me out of the machine. When I try to manually move the carriage I get busy processing, please wait at the top
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BTT-TFT35-E3-V3.0/issues/19#issuecomment-653900428, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6XKZH2BG5HMT5DSCBRPCDR2CJVVANCNFSM4OLT7UWA .
The M18
g-code is hard-coded in the firmware in the printing.c file. You will have to change it in the firmware and recompile it again for now.
https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/blob/868d61549cc480a06c6c2526b828efab5807539a/TFT/src/User/API/Printing.c#L96-L110
Hi Gurmeet.
I knew you could tell us, and I even checked Print.c but did not know there is a Printing.c...;-( Every day something new to learn.
Wouldn't it be good to mention the commands which make sense to use as Start/Pause/End gcode. I mean, it makes no sense to be able to manipulate a function which is changed by a setting which is much deeper in the system right after that.
Thanks, I was using pre complied firmware, I will have a look at modifying it and recompiling, hopefully just as simple as changing the text or I will be over my head lol only normally change configuration options not base code.
Why give the option for end gcode if the firmware is going to override it. As a suggestion a better option maybe to place these "idle commands" in the endgcode section and just have it enabled by default that way it is easily edited by enduser and visible should people wish to stop it.
Thanks for the help, I will let you know how I get on when I get chance to look at it.
Unfortunately this needs more than changing the config.ini. But not to compile the own software means skipping the funniest part. I would highly recommend to give it a try.
Hi.
Today I found some time to test the fix Gurmeet recommended, and it works perfectly. If it is ok for you, I will start a ticket, so this gets fixed one day.
As far as I know, I am not allowed to offer you a fix here, by sending you a compiled version. But if you send me your email address, I can do so.
Please let me know
Thank you
Hi. Any news regarding the reported issue
Hello mine2209.
Could you please close this ticket or answer my question above.
Thank you
Sorry for the lack of replies I have been personally affected by the global pandemic recently and have not been able to test anything. I will close this for you now and as soon as I work out how to send you my email I will do as that would be a great help.
thanks for your help again.
I cannot stop the tft disabling the stepper motors after every print which causes print head to drop into work piece.
I have checked the stepper timeout, sd print release settings, and end gcode. No m18s or m84s present in start/ end gcode or the print gcode file. If I print from PC via cable & pronterface I do not get this issue using same gcode files so believe it must be tft causing the issue. It also happens after usb print via tft.