<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PersistentVars and Webvisu Element</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0e3f597694/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0e3f597694/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/0e3f597694/</id><updated>2025-04-07T15:01:39.048000Z</updated><subtitle>Recent posts to PersistentVars and Webvisu Element</subtitle><entry><title>PersistentVars and Webvisu Element</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0e3f597694/?limit=25#4df7" rel="alternate"/><published>2025-04-07T15:01:39.048000Z</published><updated>2025-04-07T15:01:39.048000Z</updated><author><name>jampid</name><uri>https://forge.codesys.com/u/jampid/</uri></author><id>https://forge.codesys.com0c732dab24515da946ea77c594edc27dc0cbbbec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Bonjour,&lt;br/&gt;
est-ce que les espaces de noms des variables sont bien indiqu  dans les commutateurs ?&lt;br/&gt;
Je viens de faire un petit essai: OK&lt;br/&gt;
{attribute 'qualified_only'}&lt;br/&gt;
VAR_GLOBAL PERSISTENT RETAIN&lt;br/&gt;
    xBit1: BOOL:=1;&lt;br/&gt;
    xbit2: BOOL:=1;&lt;/p&gt;
&lt;p&gt;END_VAR&lt;/p&gt;
&lt;p&gt;Déclaration de variable dans le commutateur (et aussi dans un voyant pour le test) :PersistentVars.xBit1&lt;br/&gt;
Bon développement!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PersistentVars and Webvisu Element</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/0e3f597694/?limit=25#5f09" rel="alternate"/><published>2025-04-03T15:18:01.940000Z</published><updated>2025-04-03T15:18:01.940000Z</updated><author><name>ameba</name><uri>https://forge.codesys.com/u/ameba/</uri></author><id>https://forge.codesys.com40b7786da5bffeacd88c6677fd574b8d94e048f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello everyone&lt;/p&gt;
&lt;p&gt;I would like to try to better understand how persistent variables work.&lt;/p&gt;
&lt;p&gt;I created some boolean variables in the PersistentVars section initialized to the value TRUE.&lt;/p&gt;
&lt;p&gt;I have tied these boolean variables to toggle switches placed inside the HMI interface pages.&lt;/p&gt;
&lt;p&gt;Once the PLC program is started, the lever selectors, if operated, change their state, at least at a graphical level, but the persistent variables do not undergo any variation.&lt;/p&gt;
&lt;p&gt;Initially the above variables were declared as simple global variables, in this case the operation with the levers was correct; I then tried to transform them into persistent ones with the aim of using them as "settings saver"&lt;/p&gt;
&lt;p&gt;Thank you for support&lt;br/&gt;
Bye&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>