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

G-coded

Open Tannoo opened this issue 7 years ago • 13 comments

Are all commands and feedback still G, M, and T codes?

Tannoo avatar Jul 12 '17 05:07 Tannoo

Yep, but not Marlin-compatible at the moment. See here: https://duet3d.com/wiki/G-code#M408:_Report_JSON-style_response

To poll status lcd panel sends M408 to the printer and waits for JSON response. "Connecting" status means there is no JSON read from the board. I heard someone implements M408 for Marlin so I'll wait for a while with other polling commands...

robotsrulz avatar Jul 12 '17 07:07 robotsrulz

I have been working alot with Marlin lcd stuff. I put the UBL menu system in place. I can look into the M408.

I was currently looking for a way for the TFT to see the current screen. Would sending a serial echo of the current screen work (obviously, only if a MKSTFT flag was enabled)?

Tannoo avatar Jul 12 '17 08:07 Tannoo

I see it here: https://github.com/MarlinFirmware/Marlin/pull/6970

Tannoo avatar Jul 12 '17 08:07 Tannoo

This needs to be tested, potentially this makes Marlin compatible with PanelDue and this firmware too.

robotsrulz avatar Jul 12 '17 08:07 robotsrulz

I can create a branch with the M408 additions in it to test with. Or have you already done that?

Tannoo avatar Jul 12 '17 08:07 Tannoo

I am also interested in modifying your work to have the option to mimic the current Marlin DOGM display screens (close, anyway).

Tannoo avatar Jul 12 '17 08:07 Tannoo

This project is low priority at the moment due to high load on other (non-public and well paid) projects. My plans for this project include implementing printing from on-screen media (USB sticks and sd card) and make the firmware loadable using Makerbase bootloader. Any other features will be implemented after that (not real soon).

So any help with testing new functionality and implementing new stuff is highly appreciated. If you are willing to submit code which doesn't break any existing functionality and does something new then you're welcome.

robotsrulz avatar Jul 12 '17 09:07 robotsrulz

I will do what I can. I have an MKS TF32 working on Ramps 1.4 along side a discount full graphic display.

I am new to smoothie's way of doing things. But, I have forked your repo and will start tinkering and testing.

It may be a long road for me, but a road I am willing to take. ;)

Tannoo avatar Jul 12 '17 09:07 Tannoo

Sounds great!

robotsrulz avatar Jul 12 '17 09:07 robotsrulz

Roxy and I did alot of work on a 'radar' map for seeing UBL mesh points on the lcds. I was hoping to get that on the tft also.

Tannoo avatar Jul 12 '17 09:07 Tannoo

I don't know if I am the one to get storage printing and bootloader stuff working. I'm not THAT good. Lol

Tannoo avatar Jul 12 '17 09:07 Tannoo

But, I am sure (given enough time) I could learn.

Tannoo avatar Jul 12 '17 09:07 Tannoo

Storage printing is already implemented in other (not PanelDue fork and it's fully Marlin-compatible) MKS-TFT32 firmware (see here: https://www.youtube.com/watch?v=LfauV0CJYfo). Now I need to merge these two very different pieces of code. It may take some time...

robotsrulz avatar Jul 12 '17 09:07 robotsrulz