<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/2a882c4ee4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/2a882c4ee4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/2a882c4ee4/</id><updated>2020-02-27T23:08:14.720000Z</updated><subtitle>Recent posts to Controlling Analog Output with NTC Sensor</subtitle><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#a998" rel="alternate"/><published>2020-02-27T23:08:14.720000Z</published><updated>2020-02-27T23:08:14.720000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comdd1cfeb7f2407a1117ae6d74ebd021592628324f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;he just had the simple numbers in his program, so unable to change, i do know the story about persistent, but this does not work when using 65535 for example.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#3062" rel="alternate"/><published>2020-02-27T23:08:12.903000Z</published><updated>2020-02-27T23:08:12.903000Z</updated><author><name>Strucc</name><uri>https://forge.codesys.com/u/strucc/</uri></author><id>https://forge.codesys.coma8a7763e2376b07a6fc266a9cb269d3daedde590</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;RETAIN variables are stored in a reserved memory location, preserving values even after a power failure (start / stop / reset). PERSISTENT means, that the variables try to remain in the same location in case of a new software download as well... so after a download event a RETAIN PERSISTENT variable won't change value... (if possible).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#4425" rel="alternate"/><published>2020-02-27T23:08:08.265000Z</published><updated>2020-02-27T23:08:08.265000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com84ff93bf49b8cd4275272405f42e9385827d8c7b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes correct, i would only hve the zero and the high 65535 also in a VAR, then you can change them online, or from any visualisation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#c775" rel="alternate"/><published>2020-02-27T23:08:06.560000Z</published><updated>2020-02-27T23:08:06.560000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc785ee654ae4de447aa74800b8cb44944d227f71</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Supra^&lt;/p&gt;
&lt;p&gt;Hello again!&lt;/p&gt;
&lt;p&gt;Here's what i managed to get done this morning. &lt;/p&gt;
&lt;p&gt;It definitely works just the way i wanted, and it was very easily accomplished with the oscat library  &lt;/p&gt;
&lt;p&gt;I will try to get the program done next week so i can test and tweak it. I'm also working on a visualisation that would allow to change the LCP1_low and LCP1_high variables AND that the variables would be remembered by the controller even after a reboot. The question is, which one should i use, RETAIN or PERSISTENT? And what's the difference between these two? Because in Finnish they translate to the same word and meaning  &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="http://img4.imageshack.us/img4/773/workingu.jpg"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#1082" rel="alternate"/><published>2020-02-27T23:08:01.883000Z</published><updated>2020-02-27T23:08:01.883000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com12c7b62c14b0059a6e2c6c9c87a9025b835c1424</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;so use scale (or from  w &lt;a class="" href="http://www.oscat.de" rel="nofollow"&gt;www.oscat.de&lt;/a&gt; w  or make it yourself:&lt;/p&gt;
&lt;p&gt;output=outputoffset+(outputspan)&lt;em&gt;(input-inputoffset)/(inputspan)&lt;br/&gt;
this looks complex but is really simple.&lt;br/&gt;
outputoffset is 0V&lt;br/&gt;
outputspan= 10-0=10&lt;br/&gt;
inputoffset=25&lt;br/&gt;
inputspan=30-25=5&lt;br/&gt;
input= 23.4 example&lt;br/&gt;
now&lt;br/&gt;
output= 0+(10)&lt;/em&gt;(27.4-25)/5=4.8&lt;/p&gt;
&lt;p&gt;this can be done several times so your input is real 274 as a word.&lt;br/&gt;
first convert this WORD_TO_REAL&lt;br/&gt;
divide by 10 to get correct temperature&lt;br/&gt;
then above scheme&lt;br/&gt;
then make output&lt;br/&gt;
oops wago server not working.&lt;br/&gt;
this is a little tricky as the i do not know the setting.&lt;br/&gt;
something like start is 2 and end is 32565 or close to this look in the datasheet.&lt;br/&gt;
you can do same again.&lt;br/&gt;
now with 32563 as outputspan for example.&lt;br/&gt;
then convert this back to a word with REAL_TO_WORD (use F2) and put this to your output&lt;br/&gt;
rtemp:=(WORD_TO_REAL(win1))/10;&lt;br/&gt;
(when you type above the program will ask for below)&lt;br/&gt;
win1 has address %IW0 type is word&lt;br/&gt;
rtemp is type real&lt;/p&gt;
&lt;p&gt;conv1:=outputoffset1+(outputspan1)&lt;em&gt;(rtemp-inputoffset1)/(inputspan1)&lt;br/&gt;
again it will ask now also give the constants in the definition.&lt;br/&gt;
conv2:=outputoffset2+(outputspan2)&lt;/em&gt;(conv1-inputoffset2)/(inputspan2)&lt;/p&gt;
&lt;p&gt;out1 address is %QW0 type is WORD;&lt;br/&gt;
out1:=conv2;&lt;/p&gt;
&lt;p&gt;if this is too difficult, just give all numbers and i will write you a simple demo.&lt;br/&gt;
but probably you understand above.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#7da4" rel="alternate"/><published>2020-02-27T23:08:00.205000Z</published><updated>2020-02-27T23:08:00.205000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com004ad1e126a7f60c63723354722c0564d07e7541</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Supra^&lt;/p&gt;
&lt;p&gt;Thanks shooter for the fast answer. The real problem for me is to get everything started because i've got no experience in how to make a variable analog output signal. At the time i cannot supply any good flowchart, but the principle is as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt;&lt;br/&gt;
Wago 750-881 Controller&lt;br/&gt;
Wago 750-464 AI (NTC10k specific)&lt;br/&gt;
Wago 750-562 AO 0-10V&lt;br/&gt;
Wago 750-600 End module&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Motor valve with control signal input 0-10V (0-100%)&lt;br/&gt;
NTC10k temperature probe&lt;/p&gt;
&lt;p&gt;So, i measure temperature from the NTC sensor, and when it reaches a specific setpoint (too high temperature) it will start to open the valve, i.e. the voltage will be &amp;gt;0V.&lt;/p&gt;
&lt;p&gt;I thought of testing this first with the HYSTERESIS FB, but it only gives BOOL as output. As i would like to test this also, the question is, &lt;span style="color: underline;"&gt;how to tell that the BOOL value should be 0V when FALSE, and 10V when TRUE?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The final version should be able to open the motor valve in steps, depending on the temperature (as described in my first post), e.g:&lt;/p&gt;
&lt;p&gt;25.0c = 0V&lt;br/&gt;
25.5c = 1V&lt;br/&gt;
26.0c = 2V&lt;br/&gt;
26.5c = 3V&lt;br/&gt;
27.0c = 4V&lt;br/&gt;
27.5c = 5V&lt;br/&gt;
28.0c = 6V&lt;br/&gt;
28.5c = 7V&lt;br/&gt;
29.0c = 8V&lt;br/&gt;
29.5c = 9V&lt;br/&gt;
30.0c = 10V&lt;/p&gt;
&lt;p&gt;A PID-based control is not considered at the moment, because i have no way to be sure the PID control will turn off when the temperature is back to OK again.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#99bf" rel="alternate"/><published>2020-02-27T23:07:55.413000Z</published><updated>2020-02-27T23:07:55.413000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com10665c00a1f0c7ffaddb04ee286a6d1bc1327c79</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes very good possible.&lt;br/&gt;
and very simple to make, you can go even better by pid control or (with   fuzzy)&lt;br/&gt;
just make a flow sheet and i will send you a program as a begin.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Controlling Analog Output with NTC Sensor</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/2a882c4ee4/?limit=25#12b5" rel="alternate"/><published>2020-02-27T23:07:53.781000Z</published><updated>2020-02-27T23:07:53.781000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comade28dd2af707014c9b765f6576a87267b540f4b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Supra^&lt;/p&gt;
&lt;p&gt;Hello again!&lt;/p&gt;
&lt;p&gt;Currently i'm working on a solution for controlling motor valves through temperature. I immediately thought about the Wago 750-881 controller, which i have been using for many other projects. I assume it is possible to control the output value (0-10V) to activate for example from 25-30c? e.g. 25c=0V, 26c=2V, 27=4V.....30=10V. However, i didn't find any functions to do this direct.&lt;/p&gt;
&lt;p&gt;I have already placed an order on the parts for the system, and cards for the Wago controller (4xAO 0-10V, 4xAI NTC), just want to be sure it can be done with the wago, and hopefully relatively simple? Any tips on which functions to use is also appreciated, i usually work with Function Blocks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>