<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PI Input value</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5deaae786d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5deaae786d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5deaae786d/</id><updated>2024-01-12T11:22:19.465000Z</updated><subtitle>Recent posts to PI Input value</subtitle><entry><title>PI Input value</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5deaae786d/?limit=25#b19b/fec0" rel="alternate"/><published>2024-01-12T11:22:19.465000Z</published><updated>2024-01-12T11:22:19.465000Z</updated><author><name>CoderHelmut</name><uri>https://forge.codesys.com/u/wehling-h/</uri></author><id>https://forge.codesys.com492145d23fa929b61ec55801ffa01faff30b0ee0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi geoweil,&lt;/p&gt;
&lt;p&gt;have you tried to save changed values to remanent area or using a VAR RETAIN? &lt;/p&gt;
&lt;p&gt;After restart you have to initialize Counter with last remanent value. &lt;/p&gt;
&lt;p&gt;Depending on changes per cycle and the possibilitiy of your control unit to write remanent storage. &lt;/p&gt;
&lt;p&gt;Otherwise you need a buffering system to ensure save backup of last PI_Counter value. &lt;/p&gt;
&lt;p&gt;May you could read this Thread to get further help: &lt;br/&gt;
&lt;a href="https://forge.codesys.com/forge/talk/Engineering/thread/31e1c8349e/#bf48"&gt;https://forge.codesys.com/forge/talk/Engineering/thread/31e1c8349e/#bf48&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PI Input value</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5deaae786d/?limit=25#b19b" rel="alternate"/><published>2023-07-25T07:42:34.945000Z</published><updated>2023-07-25T07:42:34.945000Z</updated><author><name>geoweil</name><uri>https://forge.codesys.com/u/geoweil/</uri></author><id>https://forge.codesys.com0866c5da82eb899f13a367e0bc1b3f12e26d0082</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I am writing a program and is stuck. I am using an incremental encoder to determine angular position. I want the PI_Counter value to be saved when the control unit loses power, and at startup the PI_Counter value should be the previously saved value. I am using an Epec 3606 control unit. Pulse counter is 2-channel directional mode.&lt;/p&gt;
&lt;p&gt;An example of what I am looking for in the program:&lt;br/&gt;
1. Control unit switches on. PI_Counter value is 0.&lt;br/&gt;
2. System operates, counter value adds to 400, system loses power.&lt;br/&gt;
3. System starts back up, counter value is 400.&lt;/p&gt;
&lt;p&gt;If anyone can help with the program, I would greatly appreciate it.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>