MKS-TFT icon indicating copy to clipboard operation
MKS-TFT copied to clipboard

GRBL CTRL+X command in tft35

Open halny123 opened this issue 4 years ago • 9 comments

I am trying to configure the CTRL+X (0x18: Soft-Reset) command on my screen using the firmware for laser Tell me how to set up an additional button for sending a command CTRL + X ? My screen MKS TFT35 using the firmware for laser + board MKS DLC using firmware grbl 1.1 After clicking on the limit switches, you need to reset the grbl using the commands CTRL + X

For additional button $H(Run homing cycle) and $X(Kill alarm lock) edited the config file mks_config.txt But I don't know what to send for the third button CTRL + X, send code 0x18 no work

moreitem_button3_cmd:0x18;

--------- mks_config.txt------------------ #set number of "More" button

moreitem_pic_cnt:3

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

moreitem_button1_cmd:$X; moreitem_button2_cmd:$H; moreitem_button3_cmd:0x18;

#how many "More" button display on screen interface

morefunc_cnt:3

#command setting on button1~7

morefunc1_cmd:$X; morefunc2_cmd:$H; morefunc2_cmd:0x18;


Thanks

halny123 avatar Jul 16 '20 17:07 halny123

With the current Firmware it is not possible, cause the TFT "disconnects" if GRBL is in "Alarm Lock" state. All commands you send via touching any buttons are buffered in the TFT and not send to GRBL. Recovering from "Alarm-State" is not possible right now with the provided firmware. :-(

@mks please fix this issue

m-sja avatar Feb 25 '21 01:02 m-sja

I would also highly support this request!!! @mks please fix this issue!!!

Option: configure GRBL to "not start in alarm lock" (look for HOMING_INIT_LOCK but from my point of view thats a safety critical modification and I have not done it up to now)

Nevertheless: @mks please fix this issue!!!

Drayson80 avatar Feb 26 '21 11:02 Drayson80

@Drayson80 yes and no. This ist not even a workaround, because if you jog accidentally in the wrong direction or to far (out of machine space), softlimits will force GRBL in alarm-state. This will also happen while encountering any errors in Check-Mode. Right now you are forced to hard-reset GRBL witch will also reset the known position as well as volatile stored work- and tool-offsets.

In other words, if this happens during use, your project is screwed :-(

We need an option to bypass the "disconnected" state and force the TFT to send commands without messing around with command-flow-control. Maybe disabling flow-control for user-buttons would be the best and most easy option.

m-sja avatar Feb 26 '21 11:02 m-sja

@m-sja, thanks for clarification - I understood that this is only on startup the main blocker to get into operation. In this case, my suggested workaround is useless - indeed.

@MKS-Sean, @makerbase-mks , could you please URGENTLY fix this issue or pls. provide the source so that it can be fixed by the community... with the current setting, the TFT is unusable :-(

Drayson80 avatar Feb 26 '21 12:02 Drayson80

@MKS-Sean, @makerbase-mks Will this source be released like the other TFT source? I am a developer and will be using this for a CNC/Laser and would like to get this working nice. I am more than happy to modify the source and even commit my changes for others to use. Are the major differences just the built-in commands?

jph290 avatar Mar 05 '21 21:03 jph290

@MKS-Sean, @makerbase-mks Will this source be released like the other TFT source? I am a developer and will be using this for a CNC/Laser and would like to get this working nice. I am more than happy to modify the source and even commit my changes for others to use. Are the major differences just the built-in commands?

@MKS-Sean, @makerbase-mks - Same here! Please post the source so we can help make it work correctly with GRBL

davids5 avatar Mar 19 '21 15:03 davids5

Any update on this? @makerbase-mks @MKS-Sean

void269 avatar Mar 29 '21 06:03 void269

Does anyone know if an earlier version will work? Really starting to regret buying this thing...since it doesn't work and all...

void269 avatar May 07 '21 18:05 void269

did this already - now it got a new place in the basement... crap... complete crap... just a few bucks, but regret it...

Drayson80 avatar May 12 '21 17:05 Drayson80