<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/</id><updated>2020-02-27T17:36:03.860000Z</updated><subtitle>Recent posts to question trend</subtitle><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#54b0" rel="alternate"/><published>2020-02-27T17:36:03.860000Z</published><updated>2020-02-27T17:36:03.860000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com22554b7555d90f8e80ef94287f41a598909824bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can do the same using a union with an integer and one real.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#2cbf" rel="alternate"/><published>2020-02-27T17:36:02.848000Z</published><updated>2020-02-27T17:36:02.848000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.comf9db6be3b5b122dbadef6eacb25e1dc993fe2619</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is'nt any calculation. We only have told the compiler that the 64 bits are a real number representation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#dd2f" rel="alternate"/><published>2020-02-27T17:36:01.843000Z</published><updated>2020-02-27T17:36:01.843000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com0354b061492e37a86610a061bd3c9bde0097c261</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;very thanks !!!!!!!!!!!!!!!!&lt;/p&gt;
&lt;p&gt;very grateful for your help, now I can from codes and move from one to another.&lt;br/&gt;
Do you know of any place where you can find documentation on how to make these calculations codesys to be able to do them in an excel sheet?&lt;/p&gt;
&lt;p&gt;very very thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#e2cb" rel="alternate"/><published>2020-02-27T17:35:58.976000Z</published><updated>2020-02-27T17:35:58.976000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.coma1bab497d90f1bce2c833f46623cd6c0be7e0ade</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If your real value (a) is strored in an int (intVal). Do:&lt;/p&gt;
&lt;p&gt;B:pointer to real;&lt;/p&gt;
&lt;p&gt;B:=adr(intVal)&lt;/p&gt;
&lt;p&gt;A:=B^&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#c440" rel="alternate"/><published>2020-02-27T17:35:57.897000Z</published><updated>2020-02-27T17:35:57.897000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.comf293fbfc41cf4344bbde23eaf35af449c1e2c574</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi:&lt;br/&gt;
Sorry for not explaining myself well, my English is not good.&lt;br/&gt;
I make a simple application with three variables with the same value (value=10) INT, REAL, LREAL in the visualization it looks perfect all read perfect.&lt;br/&gt;
Now download /var/opt/codesys/Plcprogram/trend/Application.Test.sqlite ( the trend record is called Test).&lt;br/&gt;
open this archive with mozilla firefox sqlite manager.&lt;br/&gt;
The variable INT is record perfect, the records is 10&lt;br/&gt;
The variable REAL, the records is 1092616192&lt;br/&gt;
the variable LREAL, the records is 4621819117588972000&lt;/p&gt;
&lt;p&gt;my problem is that I do not know how to do this conversion and I need to save values with decimals.&lt;br/&gt;
If something does not explain me well, tell me&lt;br/&gt;
thank you very much for taking your time.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: program.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3115"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: sqlite.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3114"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#0859" rel="alternate"/><published>2020-02-27T17:35:54.816000Z</published><updated>2020-02-27T17:35:54.816000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com3d28f8d9fe388c54d4a7273236d91bb32d05e635</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
no clue what you are doning, this should simply work&lt;br/&gt;
with out any probems.&lt;br/&gt;
You need to give more Details or your project otherwise hard to try to help.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#0f14" rel="alternate"/><published>2020-02-27T17:35:53.741000Z</published><updated>2020-02-27T17:35:53.741000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.comc6059da85609aae5fc0831dd8719b6b4ea80ce15</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;jbarrio hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
hello:&lt;br/&gt;
doing tests I have verified that the problem is with the real values since the database in sqlite is built with all the variables in type INT. Someone can help me that the database has the types corresponding to its variables or how to pass the value that gives you from a real variable the database to the real data.&lt;br/&gt;
Thank you very much, it would be very helpful ...&lt;br/&gt;
None? &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Enviado desde mi Plus E mediante Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#1b92" rel="alternate"/><published>2020-02-27T17:35:52.727000Z</published><updated>2020-02-27T17:35:52.727000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com885f6f5bb3d160645b6005435e3136439af05804</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello:&lt;/p&gt;
&lt;p&gt;doing tests I have verified that the problem is with the real values since the database in sqlite is built with all the variables in type INT. Someone can help me that the database has the types corresponding to its variables or how to pass the value that gives you from a real variable the database to the real data.&lt;/p&gt;
&lt;p&gt;Thank you very much, it would be very helpful ...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>question trend</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/b7db4f16e9/?limit=25#ffe9" rel="alternate"/><published>2020-02-27T17:35:49.841000Z</published><updated>2020-02-27T17:35:49.841000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com098402138373330da0d772560cc54e7263413297</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I downloaded a sqlite file from the one that generates the trend ​​register, it gives me the time in TS and the value, but I do not know in what format it is returned because a value of 210 gives me a record of 1131986942 in the value field.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>