Strange Behaviour in RRF3.0
-
This is strange. I have removed M307 and here's what I get...
This is with command M140 commented out.
No bed heater showing in DWC!
..and here's with M140 back in.....
Still config error messages showing but heaters are working!!
But, if I put the M950 commands for both the bed and extruder AFTER the M307 commands AND the M307 autotune settings commented out for the bed heater I get this...…
All heaters working, no errors but no autotune settings available for the bed heater!!!!!
-
Odd.
Might be one for @dc42 to jump in on -
-
This post is deleted! -
@jay_s_uk said in Strange Behaviour in RRF3.0:
M950 has to come before and M308's
See https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_or_GPIO_servo_pinNo, M308 should come before the M950 that uses it, so that the sensor number used in the T parameter of a M950 H command already exists. OTOH any command that refers to a heater or fan number must come after the M950 command that creates that heater or fan.
-
Even with that though I cant get my bed heater to show up on DWC or work without the M140 (set bed temperature) command that RRF configurator put in and the M307 autotune settings commented out.
-
What does the command M140 H0 actually mean?
It is not documented. -
@chas2706 said in Strange Behaviour in RRF3.0:
What does the command M140 H0 actually mean?
It is not documented.It's mentioned at https://duet3d.dozuki.com/Wiki/Gcode?revisionid=HEAD#Section_M140_Set_Bed_Temperature_Fast but not well documented. It tells RRF that the first bed heater is heater 0. I'll add some more examples to the documentation.
-
@dc42
OK thanks.
In my current config I have the commands in the correct order and includes the M140 command. All is well unless I uncomment my autotune setting for Heater HO.
The actual settings are:M307 H0 A108.4 C735.4 D1.4 S1.00 V12.5 B0 ; Autotune result for bed
When uncommented I get this:
Thanks in advance.
-
M307 must come later in config.g than then M950 command that creates that heater.
More generally, where a command references some entity (e.g. a heater, fan, sensor, GPIO port, or additional axis), that entity must be created first. Example:
M308 S2 ... ; create sensor 2
M950 H0 T2 ... ; create heater 0, uses sensor 2
M307 H0 ... ; uses heater 0
M140 H0 ; uses heater 0 -
@dc42
Thanks David that works great now!