<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Instanz-Problem</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/</id><updated>2020-02-28T04:44:23.153000Z</updated><subtitle>Recent posts to Instanz-Problem</subtitle><entry><title>Instanz-Problem</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/?limit=25#25cd" rel="alternate"/><published>2020-02-28T04:44:23.153000Z</published><updated>2020-02-28T04:44:23.153000Z</updated><author><name>cas</name><uri>https://forge.codesys.com/u/cas/</uri></author><id>https://forge.codesys.com1aaffeb88e001fb91fab77ec78675b8656554cbb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo und danke für die Infos.&lt;/p&gt;
&lt;p&gt;Die Lösung ist natürlich die VAR_In_Out !&lt;/p&gt;
&lt;p&gt;Ich habe immer nur mir VAR_IN oder/und  VAR_OUT gearbeitet.&lt;/p&gt;
&lt;p&gt;Jetzt gehts. Super.  &lt;/p&gt;
&lt;p&gt;Aber ich hab da noch ne Frage.&lt;/p&gt;
&lt;p&gt;Werde dazu aber einen neuen tropic aufmachen.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Instanz-Problem</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/?limit=25#750e" rel="alternate"/><published>2020-02-28T04:44:21.135000Z</published><updated>2020-02-28T04:44:21.135000Z</updated><author><name>J Schohaus</name><uri>https://forge.codesys.com/u/j-schohaus/</uri></author><id>https://forge.codesys.com7c6c7dc49bb69452e3eebba998ea30baff0d4ed5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Chräshe&lt;/p&gt;
&lt;p&gt;Also willst du eine Variable im Baustein verwenden und das Ergebnis zurückgeben ?&lt;/p&gt;
&lt;p&gt;Dann wäre ein Variable von typ "VAR_IN_OUT" das richtige.&lt;/p&gt;
&lt;p&gt;mfG Jochen&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Instanz-Problem</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/?limit=25#5bcc" rel="alternate"/><published>2020-02-28T04:44:15.438000Z</published><updated>2020-02-28T04:44:15.438000Z</updated><author><name>Chräshe</name><uri>https://forge.codesys.com/u/chraeshe/</uri></author><id>https://forge.codesys.comb387b42c89c3fdf6feda842aa1810756f16dd2ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo cas,&lt;/p&gt;
&lt;p&gt;da kann ich Dir nicht folgen. Am besten du hängst mal dein Programm an, &lt;/p&gt;
&lt;p&gt;dann wird das Problem vielleicht klarer…&lt;/p&gt;
&lt;p&gt;Gruß&lt;/p&gt;
&lt;p&gt;Chräshe&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Instanz-Problem</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b446e421c7/?limit=25#1edd" rel="alternate"/><published>2020-02-28T04:44:13.391000Z</published><updated>2020-02-28T04:44:13.391000Z</updated><author><name>cas</name><uri>https://forge.codesys.com/u/cas/</uri></author><id>https://forge.codesys.comc62611f8d1c255a5c3186620379069274edf042c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;ich programmiere jetzt seit 2 3 Wochen mit Codesys.&lt;/p&gt;
&lt;p&gt;Der Unterschied von Programm, Funktionsblock und Funktion ist klar.&lt;/p&gt;
&lt;p&gt;Folgendes Problem:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Ich deklariere eine Variable im Programm &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ich habe einen Funktionsblock und übergebe diese Variable dem Funktionsblock als Input. &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Der Funktionsblock addiert im Programm immer eine 1 dazu (zur Inputvariablen) &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Wenn das Programm läuft, ist im Funktionsblock dann als Wert eine 1 und im Programm hat die Variable eine 0 ? &lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Würde ich die Variable als Output zurückgeben an die Eingangsvariable, dann funktionierts. Ist aber sehr aufwändig. &lt;/p&gt;
&lt;p&gt;Kurzrum: Muß man einen Funktionsblock-Aufruf per Instanz machen oder geht es auch anders ?&lt;/p&gt;
&lt;p&gt;Ich danke für die Antworten&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>