<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CoDeSys Variablen mit Visual Basic schreiben/lesen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/be009c8a50/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/be009c8a50/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/be009c8a50/</id><updated>2020-02-28T15:49:21.899000Z</updated><subtitle>Recent posts to CoDeSys Variablen mit Visual Basic schreiben/lesen</subtitle><entry><title>CoDeSys Variablen mit Visual Basic schreiben/lesen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/be009c8a50/?limit=25#e7b9" rel="alternate"/><published>2020-02-28T15:49:21.899000Z</published><updated>2020-02-28T15:49:21.899000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.come97372347e60bde54bec44c57f7f565a9caeb96e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; RM&lt;/p&gt;
&lt;p&gt;Wollte nur mitteilen, dass sich das Problem erledigt hat.&lt;/p&gt;
&lt;p&gt;Noch mal danke!  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys Variablen mit Visual Basic schreiben/lesen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/be009c8a50/?limit=25#4cb2" rel="alternate"/><published>2020-02-28T15:49:13.950000Z</published><updated>2020-02-28T15:49:13.950000Z</updated><author><name>RolandWagner</name><uri>https://forge.codesys.com/u/rowa/</uri></author><id>https://forge.codesys.comb9b8dac359fdd0e42a8b830bd17b6eb15a4d62ff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;der 3S-Support hat für Probleme dieser Art ein kleines "Paket" bestehend aus einem CoDeSys-Projekt, einem Excel-File und einer Anleitung.&lt;/p&gt;
&lt;p&gt;Ich habe mir das Projekt und die Dokumentation zwar nicht angesehen, es sollte aber helfen.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=129" rel="nofollow"&gt;GatewayDDEServer_Example.zip &lt;span&gt;&lt;span&gt;[67.81 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys Variablen mit Visual Basic schreiben/lesen</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/be009c8a50/?limit=25#d5b6" rel="alternate"/><published>2020-02-28T15:49:11.012000Z</published><updated>2020-02-28T15:49:11.012000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com01d752158fae923dccb4d4193790e0b86ab57b0f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; RM&lt;/p&gt;
&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;ich habe folgendes Problem:&lt;/p&gt;
&lt;p&gt;Ich möchte Variblen von Codesys über VB schreiben und lesen. Ich habe es mit dem DDE Gateway probiert, aber funktioniert nicht. Folgende Anweisung habe ich in VB benutzt: &lt;/p&gt;
&lt;p&gt;Sub Lesen()&lt;/p&gt;
&lt;p&gt;Channel = Application.DDEInitiate("GATEWAYDDESERVER", "Test.pro")&lt;/p&gt;
&lt;p&gt;Value = Application.DDERequest(Channel, PLC_PRG.variableX)&lt;/p&gt;
&lt;p&gt;........&lt;/p&gt;
&lt;p&gt;Application.DDETerminate Channel&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Sub Schreiben()&lt;/p&gt;
&lt;p&gt;Channel = Application.DDEInitiate("GATEWAYDDESERVER", "Test.pro")&lt;/p&gt;
&lt;p&gt;Application.DDEPoke Channel, PLC_PRG.variableX, 1&lt;/p&gt;
&lt;p&gt;Application.DDETerminate Channel&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Der GatewayDDEServer von CoDeSys ist auch korrekt Eingestellt. &lt;/p&gt;
&lt;p&gt;Vielleicht weiß ja jemand was mein Problem ist oder hat einen besseren Vorschlag, wie man Variablen mit VB schreiben/lesen kann.&lt;/p&gt;
&lt;p&gt;Danke&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>