Strange Problem with Creality Print 7 and Custom Layer Change G-Code

FYI.

I had been using the command BOX_NOZZLE_CLEAN in the layer change g-code for my K2 Plus machine so that it would “clean” buildup off the nozzle at intervals during a long print. This worked great in Creality Print 6. But it stopped working after I upgraded(?) to Creality Print 7 !

After digging into it I found that CP7 has a bug that removes any custom g-code text consisting of double Z characters. In other words, it took my layer change g-code with ‘BOX_NOZZLE_CLEAN’ and spits it out to the G-code file as ‘BOX_NOLE_CLEAN’, where the ‘ZZ’ is missing in the word NOZZLE. It doesn’t do this with other double letters, only the letter Z, and it has to be an uppercase Z. Lowercase works fine, as I changed it to ‘box_nozzle_clean’ or even ‘BOX_NOzzLE_CLEAN’ and then it works as it did with CP6.

I opened a Tech Ticket with Creality notifying them of this issue. Not sure what Creality did to make CP7 behave like this, but it makes one wonder what other ‘subtle’ problems are lurking in CP7 ?

Very interesting topic. Have you attempted another slicer such a Orca to see if you can reproduce this?

Do you have an isolated model and 3MF file that you care to share and a method to reproduce this? I’d be glad to test it at my end to see if the problem can be reproduced in other slicers. Also, sharing the raw G-Code file to compare results would also help.

I don’t think the model or the 3mf file has any bearing on the problem. I run the same model with CP6 and the examined the g-code, the words “BOX_NOZZLE_CLEAN” are there in the g-code just fine.

But slice the same model with CP7 and the “BOX_NOZZLE_CLEAN” becomes “BOX_NOLE_CLEAN” in the g-code file. I also tried various other words shown below and the results for CP6 and CP7.

FIZZ - CP6 outputs FIZZ, CP7 outputs FI
BUZZER - CP6 outputs BUZZER, CP7 outputs BUER

It’s definitely something wrong in CP7.