<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to detect a page change in webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/</id><updated>2020-04-15T09:52:38.071000Z</updated><subtitle>Recent posts to How to detect a page change in webvisu</subtitle><entry><title>How to detect a page change in webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/?limit=25#e2f6/748e" rel="alternate"/><published>2020-04-15T09:52:38.071000Z</published><updated>2020-04-15T09:52:38.071000Z</updated><author><name>FabioPD</name><uri>https://forge.codesys.com/u/fabiopd/</uri></author><id>https://forge.codesys.comb53a36571692d45260e7ed251c570a60ee8bdadd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much it works fine!! good job&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to detect a page change in webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/?limit=25#e2f6" rel="alternate"/><published>2020-04-15T00:23:22.698000Z</published><updated>2020-04-15T00:23:22.698000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.comc5de8ba3ec8c69473d1146841eb85bdd01ea5bae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello FabioPD,&lt;br/&gt;
Before posting this idea, I tested it in a standard configuration and it works.&lt;br/&gt;
What is a standard configuration, for me : &lt;br/&gt;
- Periodic MainTask 20 ms calling PLC_PRG&lt;br/&gt;
- Periodic VISU_TASK 100 ms&lt;br/&gt;
- 3 visualization pages.&lt;br/&gt;
- Tests in simulation mode and with CODESYS Soft PLC.&lt;br/&gt;
- Target visualization and Web visualization.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to detect a page change in webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/?limit=25#7e37/2256/1f27" rel="alternate"/><published>2020-04-14T14:19:05.188000Z</published><updated>2020-04-14T14:19:05.188000Z</updated><author><name>FabioPD</name><uri>https://forge.codesys.com/u/fabiopd/</uri></author><id>https://forge.codesys.coma0fbd6b707142a16a9c10f86a454cc5e37de4306</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you JAPIB but did you try it?&lt;br/&gt;
i  think in 1 program cicle is difficult to intercept the new page , but i will try it ! &lt;br/&gt;
My visu task is low speed respect the main program.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to detect a page change in webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/?limit=25#7e37/2256" rel="alternate"/><published>2020-04-11T20:01:31.162000Z</published><updated>2020-04-11T20:01:31.162000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.coma4fde30d6d2587f07a25a66d8a1d50e8a685bdb3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
If you want to knows each page change, you can write something like that :&lt;/p&gt;
&lt;p&gt;PROGRAM PLC_PRG&lt;br/&gt;
VAR&lt;br/&gt;
     stMem_Page_Visu:STRING; (&lt;em&gt;To memorize the name of the last page&lt;/em&gt;)&lt;br/&gt;
     iCompteur:INT; (Only to test th program&lt;em&gt;)&lt;br/&gt;
     END_VAR&lt;br/&gt;
(&lt;/em&gt;Program&lt;em&gt;)&lt;br/&gt;
(&lt;/em&gt;If the current page is different from the last page, you do what you want to do ...&lt;em&gt;)&lt;br/&gt;
IF VisuElems.CURRENTVISU&amp;lt;&amp;gt;stMem_Page_Visu THEN&lt;br/&gt;
    iCompteur:=iCompteur+1; (In this example I add 1 in a counter&lt;/em&gt;)&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;...&lt;br/&gt;
(&lt;em&gt;Here you can have some other parts of you program&lt;/em&gt;)&lt;br/&gt;
...&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;At the end, you memorize the name of the last page, in order to test it on the beginning of the program&lt;/em&gt;)&lt;br/&gt;
stMem_Page_Visu:=VisuElems.CURRENTVISU;&lt;/p&gt;
&lt;p&gt;I used the program PLC_PRG to test my idea, but you can use another program module name.&lt;br/&gt;
BR&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to detect a page change in webvisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/6c63db07b1/?limit=25#7e37" rel="alternate"/><published>2020-04-10T14:01:35.019000Z</published><updated>2020-04-10T14:01:35.019000Z</updated><author><name>FabioPD</name><uri>https://forge.codesys.com/u/fabiopd/</uri></author><id>https://forge.codesys.com377dbbd344802c1108dcc7007398f0faf4e92bcc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;br/&gt;
I need to detect a page change in my project , I have a lot of pages and buttons that change page with a "change shown visualization" event. I know there is a sys variabile "VisuElems.CURRENTVISU" where I can see the current page , but i need to start a timer since the last page change and I need something that tell me if there was one page change.. or something that save the last VisuElems.CURRENTVISU value.  I want precise that in my code i set  VisuElems.CURRENTVISU for  3 pages/10.&lt;br/&gt;
If you can help me will be appreciated. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>