<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CR2513 Module : DANFOSS Valves : checking</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/3d296c66a3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/3d296c66a3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/3d296c66a3/</id><updated>2020-02-27T20:34:01.450000Z</updated><subtitle>Recent posts to CR2513 Module : DANFOSS Valves : checking</subtitle><entry><title>CR2513 Module : DANFOSS Valves : checking</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/3d296c66a3/?limit=25#aa0c" rel="alternate"/><published>2020-02-27T20:34:01.450000Z</published><updated>2020-02-27T20:34:01.450000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com38a136e4052ae28e78969a25ba3fc0752f1e018f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If this is double sorry for that.&lt;br/&gt;
the output of -100 % (same as -1000 permille like in manual ) is 20% of output voltage (so 2 Volts)&lt;br/&gt;
+100 % is 8 volts.&lt;br/&gt;
i do not know the raw count as the setting is not in the manual.&lt;br/&gt;
just try it put a voltmeter on the output and run your setting.&lt;/p&gt;
&lt;p&gt;you will need to set a lot of settings on the ifm to have correct output.&lt;/p&gt;
&lt;p&gt;the output is an integer so you will need some conversion&lt;br/&gt;
all real var&lt;br/&gt;
minoutput :=7&lt;br/&gt;
maxoutput:= 65528&lt;br/&gt;
mininput :=-1000&lt;br/&gt;
maxinput:=1000&lt;/p&gt;
&lt;p&gt;a calc is always in real so conversion must be done&lt;/p&gt;
&lt;p&gt;a:= (maxoutput-minoutput)/(maxinput-mininput)&lt;br/&gt;
b:= minoutput&lt;br/&gt;
in:= (???_TO_REAL(input)-mininput)&lt;/p&gt;
&lt;p&gt;out := (REAL_TO_INT ( a*in + b))&lt;/p&gt;
&lt;p&gt;example input =0&lt;br/&gt;
in = 1000&lt;br/&gt;
in most cases this all is done inside these functionblocks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CR2513 Module : DANFOSS Valves : checking</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/3d296c66a3/?limit=25#e3a8" rel="alternate"/><published>2020-02-27T20:33:57.612000Z</published><updated>2020-02-27T20:33:57.612000Z</updated><author><name>manasa</name><uri>https://forge.codesys.com/u/manasa/</uri></author><id>https://forge.codesys.com15ee0195fdf9d30c56ef6852e73eec970d5979ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;We have a problem with IFM analog Output module CR2513. We are using this module in one of our project for DANFOSS valve 'PVES' type of valves.&lt;/p&gt;
&lt;p&gt;I made a sample program to test this CR2513 Analog Outputs along with CR0032 controller. &lt;br/&gt;
My basic problem is how to force these outputs? IFM manual is saying that &lt;br/&gt;
-1000% = 0.2 Ub&lt;br/&gt;
0 = 0.5Ub&lt;br/&gt;
+1000% = 0.8Ub,&lt;/p&gt;
&lt;p&gt;But I could able to force directly from 0 to 1000% to the channel "%QW130". I could not able to force -1000% as the outputs are "UINT" (Unsigned Integer)data type. Also i am not sure whether i am doing right or not.&lt;br/&gt;
What is the raw counts i need to force to achive the voltage levels between 0.2Ub to 0.8 Ub?&lt;/p&gt;
&lt;p&gt;I could not able to found the rawcoutns of the AI/AO Modules on IFM R360 system manuals.&lt;/p&gt;
&lt;p&gt;Can any one help? &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>