You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Brian <64...@qq.com.INVALID> on 2021/06/23 14:19:57 UTC
回复: 回复: java write REAL TYPE
Hi Chris,
Thank you for your help. I can continue now。
Brian
------------------ 原始邮件 ------------------
发件人: "dev" <christofer.dutz@c-ware.de>;
发送时间: 2021年6月23日(星期三) 晚上10:04
收件人: "dev@plc4x.apache.org"<dev@plc4x.apache.org>;
主题: Re: 回复: java write REAL TYPE
Hi Brian,
sorry for the late reply ... I was traveling for the first time in 1,5
years.
Usually if you have a S7 with a direct Network connection, this is
usually rack 1 and slot 1. However it gets interesting in setup where
you have multiple PLCs or other controllers connected via Profibus or
whatever they use for this and these share a common network-adapter. In
this case you need to address the different PLCs by rack and slot.
But I think you should be able to see these settings in TIA or whatever
engineering tool you are using. If you don't have any access to one of
these engineering tools, I guess the only option you have it to try them
all ... but the number of tests required should be pretty low as you
usually start with 1 and only increment to the next if there are others
in the setup. That means usually you should find something at rack 1 and
slot 1.
Are you now able to continue or do you still need help?
Chris
On 23.06.21 01:39, Brian wrote:
> Hi Ben
> Now I'm connected. My problem is that PLC didn't tell me these two parameters: rack and slot. I tried them out myself.
>
>
> How to judge serial number by remote rack PLC。
>
> How to judge serial number by remote slot PLC。
> How to judge serial number by local slot PLC。
> How to judge serial number by local rack PLC。
>
>
> I'm trying to understand,But I didn't understand。
>
>
>
> Kind Regards
>
> Brian
>
>
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人: "dev" <ben.hutche@gmail.com&gt;;
> 发送时间:&nbsp;2021年6月23日(星期三) 上午7:23
> 收件人:&nbsp;"dev"<dev@plc4x.apache.org&gt;;
>
> 主题:&nbsp;Re: java write REAL TYPE
>
>
>
> Hi Brian,
>
> I'm going to have to pass on this one, as I have no experience with these
> controllers. But I think PLC4X should be able to communicate with an
> S7-1500. Have you tried both versions 0.8 and 0.9-Snapshot?
>
> Ben
>
> On Sun, Jun 20, 2021 at 5:48 AM Brian <644036249@qq.com.invalid&gt; wrote:
>
> &gt; Hi Ben
> &gt;
> &gt;
> &gt; I use plc4x to connect s7-1500 S7 protocol, but return connection
> &gt; terminated by remote.
> &gt;
> &gt;
> &gt; I use plc4x to connect s7-1200 S7 protocol successfully.
> &gt;
> &gt;
> &gt; Have you ever encountered this problem???
> &gt;
> &gt;
> &gt;
> &gt; Kind Regards
> &gt;
> &gt; Brian
> &gt;
> &gt;
> &gt;
> &gt;
> &gt; ------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
> &gt; 发件人:
> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "dev"
> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <
> &gt; ben.hutche@gmail.com&amp;gt;;
> &gt; 发送时间:&amp;nbsp;2021年6月16日(星期三) 上午10:02
> &gt; 收件人:&amp;nbsp;"dev"<dev@plc4x.apache.org&amp;gt;;
> &gt;
> &gt; 主题:&amp;nbsp;Re: java write REAL TYPE
> &gt;
> &gt;
> &gt;
> &gt; Hi Brian,
> &gt;
> &gt; I haven't had any experience with using plc4x with Siemens PLC's, but I did
> &gt; find a comment in the RELEASE_NOTES file about this being fixed in the
> &gt; 0.9-SNAPSHOT version.
> &gt;
> &gt; You will have to add the following to your pom.xml file.
> &gt;
> &gt; <repositories&amp;gt;
> &gt; &amp;nbsp; <repository&amp;gt;
> &gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; <id&amp;gt;apache-snapshots</id&amp;gt;
> &gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; <url&amp;gt;
> &gt; https://repository.apache.org/content/groups/snapshots</url&amp;gt;
> &gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;
> &gt; <snapshots&amp;gt;<enabled&amp;gt;true</enabled&amp;gt;</snapshots&amp;gt;
> &gt; &amp;nbsp; </repository&amp;gt;
> &gt; </repositories&amp;gt;
> &gt;
> &gt; <version&amp;gt;0.9.0-SNAPSHOT</version&amp;gt;
> &gt;
> &gt; Kind Regards
> &gt;
> &gt; Ben
> &gt;
> &gt; On Tue, Jun 15, 2021 at 9:37 PM Brian <644036249@qq.com&amp;gt; wrote:
> &gt;
> &gt; &amp;gt; I use java to send real type to interact with plc1200
> &gt; &amp;gt; Error reporting internal_ error;
> &gt; &amp;gt; But I use java to read the real type and interact with plc1200
> &gt; &amp;gt; successfully.
> &gt; &amp;gt; How to use java to write data to PLC
> &gt; &amp;gt;
>