<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — Thermistors stop reading after about 10 to 20 seconds]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/4529/" />
	<updated>2013-11-15T12:09:52Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/4529/thermistors-stop-reading-after-about-10-to-20-seconds/</id>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41686/#p41686" />
			<content type="html"><![CDATA[<p>M105 is get extruder temp.</p><p>The code that does reacts to this is:<br /></p><div class="codebox"><pre><code>    case 105 : // M105
      if(setTargetedHotend(105)){
        break;
        }
      #if defined(TEMP_0_PIN) &amp;&amp; TEMP_0_PIN &gt; -1
        SERIAL_PROTOCOLPGM(&quot;ok T:&quot;);
        SERIAL_PROTOCOL_F(degHotend(tmp_extruder),1);
        SERIAL_PROTOCOLPGM(&quot; /&quot;);
        SERIAL_PROTOCOL_F(degTargetHotend(tmp_extruder),1);
        #if defined(TEMP_BED_PIN) &amp;&amp; TEMP_BED_PIN &gt; -1
          SERIAL_PROTOCOLPGM(&quot; B:&quot;);
          SERIAL_PROTOCOL_F(degBed(),1);
          SERIAL_PROTOCOLPGM(&quot; /&quot;);
          SERIAL_PROTOCOL_F(degTargetBed(),1);
        #endif //TEMP_BED_PIN
        for (int8_t cur_extruder = 0; cur_extruder &lt; EXTRUDERS; ++cur_extruder) {
          SERIAL_PROTOCOLPGM(&quot; T&quot;);
          SERIAL_PROTOCOL(cur_extruder);
          SERIAL_PROTOCOLPGM(&quot;:&quot;);
          SERIAL_PROTOCOL_F(degHotend(cur_extruder),1);
          SERIAL_PROTOCOLPGM(&quot; /&quot;);
          SERIAL_PROTOCOL_F(degTargetHotend(cur_extruder),1);
        }
      #else
        SERIAL_ERROR_START;
        SERIAL_ERRORLNPGM(MSG_ERR_NO_THERMISTORS);
      #endif

        SERIAL_PROTOCOLPGM(&quot; @:&quot;);
        SERIAL_PROTOCOL(getHeaterPower(tmp_extruder));

        SERIAL_PROTOCOLPGM(&quot; B@:&quot;);
        SERIAL_PROTOCOL(getHeaterPower(-1));

        SERIAL_PROTOCOLLN(&quot;&quot;);
      return;
      break;</code></pre></div><p>It really doesn&#039;t do anything much at all, except call degHotend(extruder-number) and degTargetHotend(extruder-number) and write some serial (which in this instance as its written to a hardware uart its non-blocking - meaning it wont cause pauses - only the calling of SERIAL actually has a computational load - not the act of writing it itself, if that makes sense.).</p><p>DegHotend then goes and simply reads the thermistor by way of doing an analog_read() on the respective Temp_Pin, then mapping that result to the Thermistor_tables to spit out an integer. </p><p>Nutshell; Its not doing anything heavy lifting wise, and even if you had thermistors disconnected, it wouldn&#039;t hang, it would just respond with null.</p><p>So the M105 is a bit of red-herring here I&#039;m going to offer. </p><p>Now, M140,&nbsp; is &quot;Bed Heat Fast&quot;... it also does relatively little either.. literally all it does is set the PID Setpoint variable for the bed heater to the specified temp, and then returns. Because Marlin is built as a &#039;state machine&#039;, this does nothing for the rest of the execution loop, and next pass through the loop when it hits &#039;bed pid&#039; it will cause the PID StateMachine for the Bed to start trying to reach setpoint because it now sees that the TargetBedTemp is &gt; CurrentBedTemp. Now when the Thermistor Reading is &gt; TempSetpoint-30°, it will actually run in traditional &#039;Bang-Bang mode&#039; which means it will just turn on solid. Only once the temp is at &lt; TempSetpoint-30° does the PID StateMachine wake-up again and start PID driving the heater.</p><p>If either of the above two are going to cause potential issues, its the M140 .. and even then.....</p><p>So back to basics. If you turn on BEDPID, turn it off again - download a fresh firmware thats unmodified just set the motherboard correctly and compile - do you resolve the issue (points to code problem, or problem with the code edits you did)?</p><p>If that doesn&#039;t work - Is the Bed Heater MOSFET turning on as soon as the M140 command is issued? If its not - then theres again something wrong with the code - even a cooked MOSFET wont cause the M140 to fail.. so I tend to lean to the first suggestion.</p><p>Finally - can you zip up your firmware and post it somewhere - I can then have a look at your Configuration.h a bit closer for you? And can you confirm you are seeing the &quot;23:10:42.161 : FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:http://github.com/mlaws/solidoodle2-marlin/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:OrdBot EXTRUDER_COUNT:1<br />&quot; or similar message on startup (obviously you wont see OrdBot on yours <img src="https://www.soliforum.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /> ) ?</p>]]></content>
			<author>
				<name><![CDATA[adrian]]></name>
				<uri>https://www.soliforum.com/user/663/</uri>
			</author>
			<updated>2013-11-15T12:09:52Z</updated>
			<id>https://www.soliforum.com/post/41686/#p41686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41684/#p41684" />
			<content type="html"><![CDATA[<p>Yep looks like it it fails with m105<br />First it sends out m140 then m105 and awaits for a response <br />after a certain point in time no response.</p><p>Simplify 3d serial data reads m105 blank after a while <br />when it should read received</p><p>Repetier-Host Just states commands waiting 1<br />m140 </p><p>I&#039;m at a complete loss I&#039;m still searching though but I would love to hear your thoughts</p>]]></content>
			<author>
				<name><![CDATA[techbuilder2175]]></name>
				<uri>https://www.soliforum.com/user/2779/</uri>
			</author>
			<updated>2013-11-15T11:17:34Z</updated>
			<id>https://www.soliforum.com/post/41684/#p41684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41640/#p41640" />
			<content type="html"><![CDATA[<p>M105 is what it was calling when it fails <br />I&#039;ll double check again</p>]]></content>
			<author>
				<name><![CDATA[techbuilder2175]]></name>
				<uri>https://www.soliforum.com/user/2779/</uri>
			</author>
			<updated>2013-11-14T19:26:28Z</updated>
			<id>https://www.soliforum.com/post/41640/#p41640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41609/#p41609" />
			<content type="html"><![CDATA[<p>You have to look in the log and see what the offending command is.</p><p>The host software is waiting for confirmation that the command is complete so if it can&#039;t be performed the setup will just hang.</p>]]></content>
			<author>
				<name><![CDATA[lawsy]]></name>
				<uri>https://www.soliforum.com/user/51/</uri>
			</author>
			<updated>2013-11-14T00:09:33Z</updated>
			<id>https://www.soliforum.com/post/41609/#p41609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41554/#p41554" />
			<content type="html"><![CDATA[<p>Nevermind still having the same issue even in simplify 3d creator</p><p>it appears serial communication stops after a while</p><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[techbuilder2175]]></name>
				<uri>https://www.soliforum.com/user/2779/</uri>
			</author>
			<updated>2013-11-13T10:45:04Z</updated>
			<id>https://www.soliforum.com/post/41554/#p41554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41478/#p41478" />
			<content type="html"><![CDATA[<p>Adrian you are correct I was poking around in the virtual com port.</p><p>It appears it&#039;s an issue with repetier-host. I notice after 10 to 20 seconds it would say command waiting on the bottom and it would prevent me from selecting anything else.</p><p>I tried this in simpilify 3d and it worked just fine so I believe something went wrong when I updated Reptier-Host.</p><p>I&#039;ll uninstall the program and all reg files and reinstall them to see if this does the trick.</p>]]></content>
			<author>
				<name><![CDATA[techbuilder2175]]></name>
				<uri>https://www.soliforum.com/user/2779/</uri>
			</author>
			<updated>2013-11-12T16:59:34Z</updated>
			<id>https://www.soliforum.com/post/41478/#p41478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41449/#p41449" />
			<content type="html"><![CDATA[<p>what lawsy said.</p><p>Windows (of current supported versions; Vista, 7, 8 32/64 variants) support 250,000 just fine. You just select it as the baud rate *inside* repetier-host. Sounds to me like you&#039;re poking in device properties on the Virtual COM Port itself ? just guessing though.</p><p>Anyway, works fine on the two dozen or so win boxes I&#039;ve fudged with lately -&nbsp; you can progmatically open COM Sockets at 250,000 - the device manager &#039;speeds&#039; relate to the low-level stuff within Windows and not the speed that the port is actually opened at.</p>]]></content>
			<author>
				<name><![CDATA[adrian]]></name>
				<uri>https://www.soliforum.com/user/663/</uri>
			</author>
			<updated>2013-11-12T11:16:09Z</updated>
			<id>https://www.soliforum.com/post/41449/#p41449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41446/#p41446" />
			<content type="html"><![CDATA[<p>Where is windows stopping you from selecting 250,000?</p><p>I only set it in RH under the printer config.</p><p>If you can&#039;t work it out and it is a baud issue, you could always recompile the firmware at 128,000 to match.</p>]]></content>
			<author>
				<name><![CDATA[lawsy]]></name>
				<uri>https://www.soliforum.com/user/51/</uri>
			</author>
			<updated>2013-11-12T10:43:42Z</updated>
			<id>https://www.soliforum.com/post/41446/#p41446</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41440/#p41440" />
			<content type="html"><![CDATA[<p>It appears to be an issue with my baud rate <br />Windows is currently preventing me from selecting 250000<br />my highest option is 128000</p><p>I&#039;m doing some research on changing this on windows since I can&#039;t change it through the device manager any higher.</p><p>Any thoughts would be greatly appreciated</p>]]></content>
			<author>
				<name><![CDATA[techbuilder2175]]></name>
				<uri>https://www.soliforum.com/user/2779/</uri>
			</author>
			<updated>2013-11-12T05:57:16Z</updated>
			<id>https://www.soliforum.com/post/41440/#p41440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Thermistors stop reading after about 10 to 20 seconds]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/41430/#p41430" />
			<content type="html"><![CDATA[<p>Hi everyone,</p><p>When I connect to my ramps 1.4 board <br />the thermistors read correctly for about 10 to 20 seconds then they freeze.</p><p>Any ideas on what could cause this?</p>]]></content>
			<author>
				<name><![CDATA[techbuilder2175]]></name>
				<uri>https://www.soliforum.com/user/2779/</uri>
			</author>
			<updated>2013-11-12T04:35:06Z</updated>
			<id>https://www.soliforum.com/post/41430/#p41430</id>
		</entry>
</feed>
