<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Beckhoff Modbus Slave TCP</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1e662ea23b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1e662ea23b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/1e662ea23b/</id><updated>2020-02-28T12:53:49.096000Z</updated><subtitle>Recent posts to Beckhoff Modbus Slave TCP</subtitle><entry><title>Beckhoff Modbus Slave TCP</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1e662ea23b/?limit=25#d6d6" rel="alternate"/><published>2020-02-28T12:53:49.096000Z</published><updated>2020-02-28T12:53:49.096000Z</updated><author><name>bmg</name><uri>https://forge.codesys.com/u/bmg/</uri></author><id>https://forge.codesys.com3530fff6ea8cceb5d83812bbbf554548d3ff8c9a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Vielen Dank für die Antwort.&lt;br/&gt;
Ich glaub ich habe irgend einen Knopf im Kopf.&lt;br/&gt;
OK, z. B. ein Wort in %MW0.8192 gespeichert, wird mit (Start-)Adresse 2000hex ausgelesen. &lt;br/&gt;
Zumindest mit zwei AC500 funktioniert das tadellos.&lt;br/&gt;
Bei Beckhoff ebenfalls?&lt;br/&gt;
Leider ist mir der Beckhoff ziemlich unbekannt und ich weiß auch nicht was die Fremdfirma da macht.&lt;br/&gt;
Entspricht eigentlich %MX100.0 bei der Beckhoff der Startadresse 64hex? Oder bin ich jetzt schon wieder verkehrt?&lt;br/&gt;
Auch bin ich etwas verwirrt, da mir %MX100.0 eigenartig vorkommt. Bei der ABB AC500 ist bei %MX7.65535.7 Schluß ist.&lt;br/&gt;
Beckhoff hat aber eine zweigliedrige und nicht dreigliedrige Adresse. &lt;br/&gt;
Oder hat Beckhoff nicht die Segmentierung und %MX100.0 wäre gleich ABB %MX0.100.0 gleich Modbusstartadresse 64hex?&lt;br/&gt;
Danke im Vorraus.&lt;br/&gt;
Gruß Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Beckhoff Modbus Slave TCP</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1e662ea23b/?limit=25#9268" rel="alternate"/><published>2020-02-28T12:53:46.358000Z</published><updated>2020-02-28T12:53:46.358000Z</updated><author><name>Oberchefe</name><uri>https://forge.codesys.com/u/oberchefe/</uri></author><id>https://forge.codesys.com7017e14741fd222ec09e4e882baedbc4915a273c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Codesys adressiert normalerweise symbolisch. Für Kommunikation (wie auch I/O) kann aber das Symbol auf eine Speicheradresse gelegt werden:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Digitaleingang_01&lt;/span&gt; &lt;span class="nt"&gt;AT&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nt"&gt;IX10&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;BOOL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Analogeingang_01&lt;/span&gt; &lt;span class="nt"&gt;AT&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nt"&gt;IW256&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Digitalausgang_01&lt;/span&gt; &lt;span class="nt"&gt;AT&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nt"&gt;QX4&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;BOOL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Analogausgang_01&lt;/span&gt; &lt;span class="nt"&gt;AT&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nt"&gt;QW0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt;  &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;WORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;MeinMerker&lt;/span&gt; &lt;span class="nt"&gt;AT&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nt"&gt;MW256&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Im Gegensatz zu Siemens müssen aber die Adressen etwas umgerechnet werden:&lt;/p&gt;
&lt;p&gt;MB4000 (also das Byte) ist deckungsgleich mit dem ersten Byte von MW2000 (Wort/Integer) oder MD1000 (Doppelwort/DINT/Real), demzufolge sollten die MW-Adressen geradzahlig sein und die MD-Adressen durch 4 teilbar. Andernfalls gibt es Ärger (vertauschte Bytes...) wenn man mit anderen Sachen kommuniziert.&lt;/p&gt;
&lt;p&gt;X ist dabei ein Bit&lt;br/&gt;
B ein Byte&lt;br/&gt;
W ein Wort&lt;br/&gt;
D ein Doppelwort&lt;/p&gt;
&lt;p&gt;Wie die Eingänge und Ausgänge (I.. und Q..) abgelegt werden ist etwas herstellerabhängig.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Beckhoff Modbus Slave TCP</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/1e662ea23b/?limit=25#dc94" rel="alternate"/><published>2020-02-28T12:53:39.039000Z</published><updated>2020-02-28T12:53:39.039000Z</updated><author><name>bmg</name><uri>https://forge.codesys.com/u/bmg/</uri></author><id>https://forge.codesys.com4ebef2ebbec32b57d73a98680c52d3926b0a118b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo zusammen,&lt;/p&gt;
&lt;p&gt;ich müßte mit einer ABB AC500 einige Werte aus einer Beckhoffsteuerung per Modbus TCP abholen (AC500 soll Master sein).&lt;br/&gt;
Nun habe ich allerdings ein kleines Problem:&lt;br/&gt;
Ab welcher Adresse sind die Daten in der Beckhoffsteuerung? &lt;br/&gt;
Als Info habe ich folgendes:&lt;/p&gt;
&lt;p&gt;Platzhalter_2 AT%MX100.2 : BOOL; (&lt;em&gt; Netzausfall verzögert &lt;/em&gt;)&lt;br/&gt;
Platzhalter_3 AT%MX100.3 : BOOL; (&lt;em&gt; Betrieb Generator 1 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_4 AT%MX100.4 : BOOL; (&lt;em&gt; Betrieb Generator 2 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_5 AT%MX100.5 : BOOL; (&lt;em&gt; Betrieb Generator 3 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_6 AT%MX100.6 : BOOL; (&lt;em&gt; Betrieb Generator 4 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_7 AT%MX100.7 : BOOL; (&lt;em&gt; Lastabwurf Generator 1 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_8 AT%MX101.0 : BOOL; (&lt;em&gt; Lastabwurf Generator 2 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_9 AT%MX101.1 : BOOL; (&lt;em&gt; Lastabwurf Generator 3 &lt;/em&gt;)&lt;br/&gt;
Platzhalter_10 AT%MX101.2 : BOOL; (&lt;em&gt; Lastabwurf Generator 4 &lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;%MX100.2 in der Beckhoff bedeutet für mich, die Adresse ????&lt;/p&gt;
&lt;p&gt;Ich hoffe es versteht jemand meine Frage und kann mir das Mapping der Beckhoff-SPS erklären.&lt;/p&gt;
&lt;p&gt;Danke.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>