FlashforgeFinderIntegration icon indicating copy to clipboard operation
FlashforgeFinderIntegration copied to clipboard

Fixed Temperature assigned by gx script??

Open Phantom2200 opened this issue 1 year ago • 9 comments

No matter what temperature i choose in my Cura profile, it sets to 180°C which is too low (stepper motor starts clicking because the filament is under too much pressure)

Phantom2200 avatar Mar 21 '23 11:03 Phantom2200

Hi @Phantom2200 , that is interesting, I saw a similar behavior with the newer version of Cura. I initially thought it was something with my printer, but it could be something else. Do you happen to have an older Cura version, 4.x, to test it out just so i can confirm it is related to Cura 5?

ronoaldo avatar Mar 21 '23 14:03 ronoaldo

The file itself has the temperature, but it looks like the temperature is set as a floating point number, like 220.0, and before it was set as 220 without the .0 at the end. This was a change in Cura itself as far as I could tell, but I could be wrong.

ronoaldo avatar Mar 21 '23 14:03 ronoaldo

@ronoaldo i dont think there is no issue in temp. I checked with Cura 5.3.0, seems okay for me. Can you give me gcode file where you see issue? I know its a old issue but i can fix it if the issue persists because i created the definition files for finder.

  • Santosh (eskeyaar)

Santoshsomi avatar Feb 14 '24 11:02 Santoshsomi

Hi! Yes, I can share the file with you. Allow me some time to reinstall Cura and create the file for you.

Best regards.

ronoaldo avatar Feb 14 '24 11:02 ronoaldo

OK, I guess this was a bug that I never noticed but here are the results of my testing:

  1. If the G code command sends the temperature as a float number (200.0 instead of 200) the Finder firmware seems to ignore that value and defaults to the lowest possible temperature
  2. If the xgcode command has a temperature in it, it is used by the finder as a "warming" or initial temperature and as such it should work

The code here should parse the starting temperature (material print temperature) and use that to the header, but this is currently not done:

https://github.com/ronoaldo/FlashforgeFinderIntegration/blob/master/plugins/GXWriter/GXWriter.py#L90

Perhaps refactoring as proposed in #16 could help fix this as well.

ronoaldo avatar Feb 14 '24 15:02 ronoaldo

Github is not allowing me to upload the file here, so I'm sharing from Drive:

https://drive.google.com/file/d/1agIAbxvDT47iYwhzjLXFO2VcN8m1OkJj/view?usp=drivesdk

Had to reinstall Cura to latest version.

One thing I noticed is that if the temperature GCode has a comment, Cura adds a .0 at the end of the temperature settings. I'm not sure if that even makes sense.

ronoaldo avatar Feb 14 '24 16:02 ronoaldo

I see you have fixed it, but giving cura temp is not reflecting in gcode or machine? Its bizarre that float value can affect changes too..

eskeyaar avatar Feb 15 '24 10:02 eskeyaar

I see you have fixed it, but giving cura temp is not reflecting in gcode or machine? Its bizarre that float value can affect changes too..

It has been a while since I tested this and I could be wrong but if I'm not mistaken this was what I noticed.

Interestingly enough, if the custom gcode for the printer start/end scripts has comments, then Cura generates temperatures as float points; without comments it generates without the dot in the temp number. Quite odd! Perhaps some g-code flavour shenanigans.

ronoaldo avatar Mar 10 '24 03:03 ronoaldo

Hi! I believe that this was fixed with the 2.1 release, also published on the Cura Marketplace. Can you guys confirm? I was able to reproduce and see the fix on my Finder.

ronoaldo avatar Apr 09 '24 19:04 ronoaldo