<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Funktionsblock für Seitenwechsel in der Visualisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/ae42b49245/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/ae42b49245/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/ae42b49245/</id><updated>2020-02-28T20:54:41.166000Z</updated><subtitle>Recent posts to Funktionsblock für Seitenwechsel in der Visualisierung</subtitle><entry><title>Funktionsblock für Seitenwechsel in der Visualisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/ae42b49245/?limit=25#a1c9" rel="alternate"/><published>2020-02-28T20:54:41.166000Z</published><updated>2020-02-28T20:54:41.166000Z</updated><author><name>Steppingwulf</name><uri>https://forge.codesys.com/u/steppingwulf/</uri></author><id>https://forge.codesys.combb5630524472fb64e42b25c4f37c0e666b44d823</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Vielen Dank&lt;/p&gt;
&lt;p&gt;Geht super und doch so einfach&lt;/p&gt;
&lt;p&gt;MfG&lt;/p&gt;
&lt;p&gt;Marc&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Funktionsblock für Seitenwechsel in der Visualisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/ae42b49245/?limit=25#9b9b" rel="alternate"/><published>2020-02-28T20:54:38.219000Z</published><updated>2020-02-28T20:54:38.219000Z</updated><author><name>Benni85</name><uri>https://forge.codesys.com/u/benni85/</uri></author><id>https://forge.codesys.comee4ed30e1100c5b00d61c955b451270e796caca1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Deklaration FB:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;FUNCTION_BLOCK VISU&lt;/p&gt;
&lt;p&gt;VAR_INPUT&lt;/p&gt;
&lt;p&gt;xVarInput : BOOL;&lt;/p&gt;
&lt;p&gt;strVarInput : STRING;&lt;/p&gt;
&lt;p&gt;END_VAR&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Programm FB:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;IF xVarInput THEN&lt;/p&gt;
&lt;p&gt;CurrentVisu := strVarInput;&lt;/p&gt;
&lt;p&gt;END_IF&lt;/p&gt;
&lt;p&gt;(&lt;em&gt; &lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;&lt;em&gt;*&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt; *)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Deklaration PLC_PRG (PRG):&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;PROGRAM PLC_PRG&lt;/p&gt;
&lt;p&gt;VAR&lt;/p&gt;
&lt;p&gt;Taste_1 : BOOL;&lt;/p&gt;
&lt;p&gt;Taste_2 : BOOL;&lt;/p&gt;
&lt;p&gt;Visu1 : VISU;&lt;/p&gt;
&lt;p&gt;Visu2 : VISU;&lt;/p&gt;
&lt;p&gt;END_VAR&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Programm FB:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;fbVisu1(xVarInput := Taste_1, strVarInput := 'TEST1');&lt;/p&gt;
&lt;p&gt;fbVisu2(xVarInput := Taste_2, strVarInput := 'TEST2');&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Funktionsblock für Seitenwechsel in der Visualisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/ae42b49245/?limit=25#512c" rel="alternate"/><published>2020-02-28T20:54:29.748000Z</published><updated>2020-02-28T20:54:29.748000Z</updated><author><name>Steppingwulf</name><uri>https://forge.codesys.com/u/steppingwulf/</uri></author><id>https://forge.codesys.com8d0e28a9e9cdc0cc3ad741eee85ba58f519943b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;HY Leute,&lt;/p&gt;
&lt;p&gt;ich bin noch nicht so gewannt in der Programierung und Erstellung von FB und Programmen in der Codesys.&lt;/p&gt;
&lt;p&gt;Vielleicht könnt ihr mir ja helfen!&lt;/p&gt;
&lt;p&gt;Um eine Visu Seite aufzurufen mache ich das so:&lt;/p&gt;
&lt;p&gt;IF Taste_1 THEN&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;CurrentVisu&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'TEST1'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;END_IF;&lt;/p&gt;
&lt;p&gt;das Funktioniert auch aber als FB bekomme ich es nicht gebacken!&lt;/p&gt;
&lt;p&gt;Der FB sollte folgendermaßen aussehen:&lt;/p&gt;
&lt;p&gt;VarInput =&amp;gt; Bool&lt;/p&gt;
&lt;p&gt;VarInput =&amp;gt; String (Um die Visuseite z.B. TEST1 oder eine andre Seite aufzurufen)&lt;/p&gt;
&lt;p&gt;Das CurrentVisu müsste ja dan im Bausein Verarbeite werden und einen &lt;/p&gt;
&lt;p&gt;VarOutput benötige ich ja nicht!&lt;/p&gt;
&lt;p&gt;Ich hoffe ihr könnt mir weiterhelfen und vielen Dank im voraus.&lt;/p&gt;
&lt;p&gt;Marc&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>