3.5 rc4 illegal parameter letter Error in Daemon.G
-
I had the following code in my daemon.g which worked. under 3.4.5
I upgraded to 3.5 RC4 today and now get the following:
Error: in file daemon.g line 4: Illegal parameter letter '.if heat.heaters[2].active==1 M106 P1 S1 else heat.heaters[2].active==0 M106 P1 S0
I dont see any obvious issues and also tried uploading a new daemon.g made in notepad++ in case some aspect of editing in the browser was introducing formatting errors. No luck though.
-
-
@travasky please upload the daemon.g file to a new post in this thread.
-
@travasky said in 3.5 rc4 illegal parameter letter Error in Daemon.G:
if heat.heaters[2].active==1 M106 P1 S1 else heat.heaters[2].active==0 M106 P1 S0
The construct should be
if heat.heaters[2].active==1 M106 P1 S1 elif heat.heaters[2].active==0 M106 P1 S0
However heat.heaters[2].active won't just be zero or 1, it will be whatever the active temp is set to and in the case of a tool heater it could be off and still have a temp set.
If you're trying to have a fan come on when the heater is active thenheat.heaters[].state
might be better.
Or use for exampleif heat.heaters[2].current > 40 M106 P1 S1 else M106 P1 S0
Or just make the fan thermostatically controlled when you define it?
-
@OwenD
The goal is to have the chamber fans turn on any time the heating elements are running. Not every filament will require chamber heating so I avoided the thermostatic control because I don't want the fans to kick on as the chamber naturally heats from the bed.I tried the heat.heaters[2].state but I couldnt figure out what to put afterwards. Based on what I read in the object model docs I put heat.heaters[2].state==active but it didnt like "active". Any advice? The coding side of things isn't my strong suit.
-
@travasky said in 3.5 rc4 illegal parameter letter Error in Daemon.G:
@OwenD
The goal is to have the chamber fans turn on any time the heating elements are running. Not every filament will require chamber heating so I avoided the thermostatic control because I don't want the fans to kick on as the chamber naturally heats from the bed.I tried the heat.heaters[2].state but I couldnt figure out what to put afterwards. Based on what I read in the object model docs I put heat.heaters[2].state==active but it didnt like "active". Any advice? The coding side of things isn't my strong suit.
Try
heat.heaters[2].state="active"I'm not near a pc at present.
-
-
@OwenD
That worked. Funnily enough, I swear I tried that exact same format once before. In any case, thank you for the time to make the suggestion. All in all I think that solves the functionality issue, but still the formatting error is something @dc42 can look into in case its affecting others as well.