makerbase-mks / MKS-TFT

MKS TFT touch screen includes TFT24/28/32/35/70, which can be connected to the motherboard for control via AUX-1. Support Simplified Chinese, Traditional Chinese, English, Russian, Spanish and more than 5 languages, and support online language switching ...
https://www.aliexpress.com/store/group/Smart-Display/1047297_502266038.html?spm=2114.12010612.pcShopHead_8325768.1_2
343 stars 193 forks source link

TFT 32 not loading auto-level #370

Open dodger-bot opened 4 years ago

dodger-bot commented 4 years ago

Greetings. I'm new to all this and know very little about coding. I have a Tarantula Pro with Gen L v1.0 and added BL Touch. I successfully flashed the MB to get BL Touch working and auto-level feature works on the MKS MINI12864 lcd screen. I then bought the mks-tft32 and am having lots of problems. I downloaded firmware 3.03 and set the config.txt file to auto-level control. The flash seems to work and I get the icons I selected with a few caveats but I cannot get the manual leveling button to change to an auto-level button on the control screen. I can only do the auto-level function from the 12864 screen with the control knob. The issue with the icons is that when I try the red or windows format, the lettering at the bottom of the icon will have a text box overlaying the icon label with the same word as the icon label. For example, the move icon has the word "move" at the bottom but it is partially covered up by a text box with black back-ground that also says "move". Oddly, when using the blue format, I don't get the overlaid wording. Any help would be appreciated. Thanks.

fireflylr commented 4 years ago

To use the automatic leveling function of TFT32, in addition to setting the mode to automatic leveling in the configuration file, you also need to set the leveling instructions corresponding to the motherboard firmware and relevant Settings.And You need to set "cfg_multiple_language" to 0 in the configuration file to resolve the display problem. ---mks

dodger-bot commented 4 years ago

Thanks for the response. cfg_multiple_language is set to 0. I flashed the MB with arduino and got the BL Touch firmware from https://raw.githubusercontent.com/tevo3d/Tarantula-pro/master/BLTouch%20%2B%20Dual%20z%20firmware.zip. I went through the guidelines in Arduino and, as far as I can tell, the BL Touch instructions are all there. After I flashed the MB, BL Touch works fine and auto-leveling via the 12864 screen and push knob works fine. Is there something in the arduino programming that has to be set to enable the TFT32 to work?

dodger-bot commented 4 years ago

I spent a fair amount of time looking for youtubes or blogs with similar issues to what I describe above and really couldn't find anything. I went through configuration h and configuration adv.h in arduino and could not find anything specific to the mks-tft 32. There were some descriptions about lcd monitors and I experimented with them to no avail. I am wondering if perhaps there is a hardware problem with the tft 32 itself. I cannot get it to show the auto-level button and when I try to configure additional buttons for baby stepping, nothing happens even though it does go through the bootloader/update process. No extra buttons show up in the "more" tab. Not sure where to go from here.

fireflylr commented 4 years ago

The tft-32 has its own configuration file. You're barking up the wrong tree. ---mks

dodger-bot commented 4 years ago

That's what I thought. Your statement above: "you also need to set the leveling instructions corresponding to the motherboard firmware and relevant Settings" led me to think there might a setting in the firmware for the MB needed to allow the tft to control auto-leveling. I assumed if such a setting existed, it would be in the arduino programming to flash the MB. I have exhausted everything I can find regarding the config.txt file to update the tft settings. Nothing works. The config.txt file is relatively small and there aren't a lot of options to set. I can't find anything else to change that might activate the auto-leveling button, but it never shows up. Neither do additional buttons that I try to program. I get the feeling that the chip is somehow not being altered by the config.txt file even though it goes through a fairly long "updating" protocol.

fireflylr commented 4 years ago
  1. Find the configuration file of tft32: "mks_config.txt" or "mks_config_en.txt "(this file will be changed to" mks_config.txt "to take effect)
  2. Now you can find the configuration item in the configuration file and modify them as shown below:

>cfg_multiple_language:0

  1. In this file you can find the configuration items for automatic leveling "cfg_leveling_mode" ,and change it to the following:

>cfg_leveling_mode:1

Finally, after modifying the file, save and rename the file to "mks_config.txt", copy it to the sd card, insert the tft32 card slot and restart tft32 for updates. here is a file as example: mks_config.txt

dodger-bot commented 4 years ago

Thanks for responding. Unfortunately, the settings you mention above have already been done numerous times. I am including my c mks_config.txt.txt mks_config.txt.txt

onig.txt. file, but I don't see anything wrong. I did change change it to .txt. I still have no auto-level button and user defined buttons don't show up.

dodger-bot commented 4 years ago

I accidentally closed this issue. I still have no auto-level and can't add user defined buttons. Any help would be appreciated.

fireflylr commented 4 years ago

The automatic leveling instruction may not be correct. By default, the tft32 leveling instruction corresponds to the motherboard with Marlin firmware. If the firmware of your motherboard is not Marlin, you need to modify the configuration item "cfg_auto_leveling_cmd" in "mks_config.txt" : cfg_auto_leveling_cmd:G28;G29;

dodger-bot commented 4 years ago

This is the firmware I used to flash the MKS-Gen L MB: https://raw.githubusercontent.com/tevo3d/Tarantula-pro/master/BLTouch%20%2B%20Dual%20z%20firmware.zip It is a Marlin based FW.

dodger-bot commented 4 years ago

I'm getting nowhere fast. Here is my config.txt. As stated, the MKS-Gen L MB has been flashed to Marlin and BL Touch works fine with stock LCD. I cannot get the TFT-32 to register auto-leveling and the manual leveling button does not change to auto-leveling. When I attempt to load user defined buttons, nothing happens. When I change buttons to red, blue or windows based, the appropriate changes do occur but nothing will activated the auto-leveling feature of the tft.

--------------------------------------------------------------------

######### Printer type setting ##################################

mainboard firmware setting(marlin:1; repetier:2; smoothie:3)

cfg_firmware_type:1

machine setting (Normal:1; Delta:2)

cfg_machine_type:1

baud rate (9600:1; 57600:2; 115200:3; 250000:4)

cfg_baud_rate:3

multi-language(enable:1, disable:0)

cfg_multiple_language:0

languages setting

(simplified Chinese:1; traditional Chinese:2; English:3; Russian:4; Spanish:5). This configuration is valid when "cfg_multiple_language" is disabled.

cfg_language_type:3

extruder number(one:1; dual:2)

cfg_sprayer_counter:1

enable heated bed(yes:1; no: 0)

cfg_custom_bed_flag:1

the max target temp of extruder and heated bed

cfg_max_sprayer_temperature:270 cfg_max_hotbed_temperature:110

pause position (-1 is invalid; Z-axis is relative position)

cfg_XPOS:-1 cfg_YPOS:-1 cfg_ZADD:10

-----------------------------------------------------------------------

######### Advanced Function Option ##################################

enable UPS?(yes:1; no:0)

cfg_have_ups_device:0

enable power detecting module(mks 220det:1; mks pwc:0)

cfg_insert_det_module:0

enable auto off after print finish function (no:0; Yes:1)

cfg_print_finish_close_Machine:0

set PB0 signal when use it for sencond nozzle (high level:1; low level:0)

cfg_PB0_trigger_Level:0

set PB1 signal (high level:1; low level:0)

cfg_PB1_trigger_Level:0

set error range of Z-axis on breakpoints recovery

cfg_breakpoint_z_error:0.2

---------------------------------------------------------------------------

######### Filament Change Function ##############################

the speed to extrude filament(mm/min)

cfg_filament_load_speed:1200

the lenght to extrude filament (mm)

cfg_filament_load_length:200

the speed to retract filament(mm/min)

cfg_filament_unload_speed:1200

the lenght to retract filament(mm)

cfg_filament_unload_length:200

It is the minimum temperature for filament change.

It will auto heat up if the current temp doesn't reach the target.

cfg_filament_load_limit_temperature:200

---------------------------------------------------------------------------

############ Leveling Function ########################################

leveling mode(manual:0; auto:1; conceal leveling button:2)

cfg_leveling_mode:1

the command of auto leveling (G29 is available for Marlin.While G32 is for Repetier and Smoothieware)

cfg_auto_leveling_cmd:G28;G29;

the point number of manual leveling:(3,4,5 point available)

cfg_point_number:4

the coordinates of 5 point on manual leveling

cfg_point1:50,50 cfg_point2:180,50 cfg_point3:180,180 cfg_point4:50,180 cfg_point5:150,150

the travel speed of leveling(mm/min)

cfg_leveling_z_speed:1500 cfg_leveling_xy_speed:3000

When the XY axis is moved manually, the height of the z-axis of the extruded Z axis from the origin (mm)

normally only needs to be reconfigured when the z axis is zero to the maximum under the smoothware firmware.

cfg_leveling_z_high: 10

---------------------------------------------------------------------------

############# WIFI Function ##########################################

wifi model(MKS WIFI TFT:0; MKS HLK-WIFI:1)

cfg_wifi_type:0

wifi mode(0:sta;1:ap)

cfg_wifi_mode:0

wifi name and password

cfg_wifi_ap_name:MKS_wifi cfg_wifi_key_code:makerbase

0:disable cloud service 1:enable cloud service

cfg_cloud_enable:1

cloud service adress

cfg_wifi_cloud_host:www.baizhongyun.cn

cloud service port

cfg_cloud_port:10086

Dynamic access IP

cfg_ip_dhcp_flag:1

IP/mask/gateway

cfg_ip_address:192.168.3.100 cfg_ip_mask:255.255.255.0 cfg_ip_gate:192.168.3.1

--------------------------------------------------------------------------------

############## Function Customization #######################################

user-defined function1 and 2.(display this button . disable: 0; enable: 1)

cfg_function_btn1_display:1

command of user-defined function

function_btn1_cmd:M84;

set number of "More" button

moreitem_pic_cnt:0

edit command for 1~7 "More" button,each command must be separated by semicolon ";"

moreitem_button1_cmd:G28 X0;

moreitem_button2_cmd:G28 X0;

moreitem_button3_cmd:G28 Y0;

moreitem_button4_cmd:G28 Y0;

moreitem_button5_cmd:G28 Z0;

moreitem_button6_cmd:G28 Z0;

moreitem_button7_cmd:G28;

how many "More" button display on screen interface

morefunc_cnt:1

command setting on button1~6

morefunc1_cmd:G28; morefunc2_cmd:G28; morefunc3_cmd:G28; morefunc4_cmd:G28; morefunc5_cmd:G28; morefunc6_cmd:G28;

---------------------------------------------------------------------------------

Display Customization(button and logo customized see User's Manual)

the color of screen background

cfg_background_color:0x000000

the color of title text

cfg_title_color:0xFFFFFF

the color of temperature,fan,(etc) background

cfg_state_background_color:0x000000

the color of temprature,fan,(etc) text

cfg_state_text_color:0xFFFFFF

the color of file button

cfg_filename_background_color:0x000000

the color of file text

cfg_filename_color:0xFFFFFF

the color of background in printing

cfg_printingstat_word_background_color:0x000000

the color of text in printing status

cfg_printingstat_word_color:0xFFFFFF

3D effects setting (disable: 0; enable: 1)

cfg_BUTTON_3D_effects:0

The screen is flipped 180°(0x00: no flip,0xEE: flip)

cfg_OVERTURN_180:0x00

shield the function of detection power (0:no shield ,1:shield)

cfg_disable_PWR_det:0

shield the function of detection filament (0:no shield ,1:shield)

cfg_disable_MT_det:0

Whether to support the function of dual extruder single nozzle.(0: disable, 1: enable)

the extruder number need set to dual.

cfg_single_nozzle:0

For the M110 command plus check, the version of Marlin 1.0.2 and below is set to 1, and the other versions are set to 0.

cfg_M110_add_checkSum:1

Enable function of display error message. (no:0; Yes:1)

cfg_display_eeror_message:1

dodger-bot commented 4 years ago

Well this isn't going anywhere. I'm suspecting a hardware problem as now it won't read usb though sd card reader still works. I'm going to order another mkd-tft and see if it works.

dodger-bot commented 4 years ago

No luck. New tft 32 also does not load auto-level and won't display user defined buttons. Has anyone succeeded in getting the tft 24,32 to interface with GenL MB and BL touch?

makerbase-mks commented 4 years ago

Hi,user-defined button display requires the following configuration

set number of "More" button

moreitem_pic_cnt:7

dodger-bot commented 4 years ago

I'll try that. I haven't pursued it as my main concern has been the lack of auto-level. I was hoping someone might know why flashing the mks-tft32 with auto-level enabled fails to activate the auto-level option on the screen. Nothing changes whether you have the config.txt file set for auto or manual level.

charlesdarwin76 commented 3 years ago

I have the same issue :-(