Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu
FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu [message #1784754] Tue, 03 April 2018 15:39 Go to next message
agostino a is currently offline agostino aFriend
Messages: 7
Registered: April 2018
Junior Member
Hello,

I am a newbie and since a day I have been trying to make an example work. When you click a button, a random number should be generated and sent back to GUI.
I use under 4DIAC1.8.4 Ubuntu. The problem is that I cannot understand how to make FB_RANDOM_0 get the event that I have clicked the button on GUI. In fact, the INDicator of the Subscriber Function Block is updated by 1 each time I click the button, but it seems that FB_RANDOM_0 does not generate anything.

Thank you in advance for your help!

Here is what I have:
index.php/fa/32522/0/index.php/fa/32523/0/index.php/fa/32524/0/
  • Attachment: 1.png
    (Size: 162.54KB, Downloaded 276 times)
  • Attachment: 2.png
    (Size: 148.04KB, Downloaded 315 times)
  • Attachment: 3.png
    (Size: 165.33KB, Downloaded 307 times)
Re: FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu [message #1784765 is a reply to message #1784754] Tue, 03 April 2018 18:37 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Hi,

first of please migrate to 4diac-ide 1.9.0 RC3. You can easily open your 1.8.4 projects by using the File -> Import -> General -> existing projects into workspace wizard. 4diac 1.9.0 is now much more stable.

I think the problem is that the FORTE you are using does not have the FB_RANDOM FB type included. When you downloaded your application was there an error reported in the deployment console?
Re: FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu [message #1784792 is a reply to message #1784765] Wed, 04 April 2018 08:35 Go to previous messageGo to next message
agostino a is currently offline agostino aFriend
Messages: 7
Registered: April 2018
Junior Member
Thank you for reply!

I am using the types library given with 4diac 1.9.0RC3 and this is what I get (I have build FORTE 1.9.0RC2) . I only report the part with errors:
<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="241">
<FB Name="FB_RANDOM" Type="FB_RANDOM"/>
</Request>

<Response ID="241" Reason="UNSUPPORTED_TYPE"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="WRITE" ID="242">
<Connection Destination="FB_RANDOM.SEED" Source="#11"/>
</Request>

<Response ID="242" Reason="NO_SUCH_OBJECT">

</Response>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="243">
<Connection Destination="SUBSCRIBE_START.INIT" Source="START.COLD"/>
</Request>

<Response ID="243"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="244">
<Connection Destination="SUBSCRIBE_START.INIT" Source="START.WARM"/>
</Request>

<Response ID="244"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="245">
<Connection Destination="PUBLISH_RANDOM.REQ" Source="F_REAL_TO_WSTRING.CNF"/>
</Request>

<Response ID="245"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="246">
<Connection Destination="F_REAL_TO_WSTRING.REQ" Source="FB_RANDOM.CNF"/>
</Request>

<Response ID="246" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="247">
<Connection Destination="FB_RANDOM.INIT" Source="SUBSCRIBE_START.INITO"/>
</Request>

<Response ID="247" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="248">
<Connection Destination="FB_RANDOM.REQ" Source="SUBSCRIBE_START.IND"/>
</Request>

<Response ID="248" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="249">
<Connection Destination="PUBLISH_RANDOM.SD_1" Source="F_REAL_TO_WSTRING.OUT"/>
</Request>

<Response ID="249"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="250">
<Connection Destination="F_REAL_TO_WSTRING.IN" Source="FB_RANDOM.VAL"/>
</Request>

<Response ID="250" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="START" ID="251"/>

<Response ID="251"/>
Re: FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu [message #1784793 is a reply to message #1784765] Wed, 04 April 2018 08:36 Go to previous messageGo to next message
agostino a is currently offline agostino aFriend
Messages: 7
Registered: April 2018
Junior Member
Thank you for reply!

I am using the types library given with 4diac 1.9.0RC3 and this is what I get (I have build FORTE 1.9.0RC2) . I only report the part with errors:
<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="241">
<FB Name="FB_RANDOM" Type="FB_RANDOM"/>
</Request>

<Response ID="241" Reason="UNSUPPORTED_TYPE"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="WRITE" ID="242">
<Connection Destination="FB_RANDOM.SEED" Source="#11"/>
</Request>

<Response ID="242" Reason="NO_SUCH_OBJECT">

</Response>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="243">
<Connection Destination="SUBSCRIBE_START.INIT" Source="START.COLD"/>
</Request>

<Response ID="243"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="244">
<Connection Destination="SUBSCRIBE_START.INIT" Source="START.WARM"/>
</Request>

<Response ID="244"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="245">
<Connection Destination="PUBLISH_RANDOM.REQ" Source="F_REAL_TO_WSTRING.CNF"/>
</Request>

<Response ID="245"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="246">
<Connection Destination="F_REAL_TO_WSTRING.REQ" Source="FB_RANDOM.CNF"/>
</Request>

<Response ID="246" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="247">
<Connection Destination="FB_RANDOM.INIT" Source="SUBSCRIBE_START.INITO"/>
</Request>

<Response ID="247" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="248">
<Connection Destination="FB_RANDOM.REQ" Source="SUBSCRIBE_START.IND"/>
</Request>

<Response ID="248" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="249">
<Connection Destination="PUBLISH_RANDOM.SD_1" Source="F_REAL_TO_WSTRING.OUT"/>
</Request>

<Response ID="249"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="CREATE" ID="250">
<Connection Destination="F_REAL_TO_WSTRING.IN" Source="FB_RANDOM.VAL"/>
</Request>

<Response ID="250" Reason="NO_SUCH_OBJECT"/>


<!-- 127.0.0.1:61499: EMB_RES -->
<Request Action="START" ID="251"/>

<Response ID="251"/>
Re: FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu [message #1784855 is a reply to message #1784793] Wed, 04 April 2018 20:35 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Oh I just noticed that FB_RANDOM is missing in from 1.9.x repo. We need to readd it for the final 1.9.0 release.
Re: FB_RANDOM_0 inputs - 4DIAC1.8.4 Ubuntu [message #1785615 is a reply to message #1784855] Tue, 17 April 2018 14:11 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

As reported in this bug report [1] I just pushed the FB_RANDOM implementation into the 1.9.x branch.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=513323
Previous Topic:Composite Function Block
Next Topic:Eclipse 4diac 1.9.0
Goto Forum:
  


Current Time: Fri Apr 19 20:12:38 GMT 2024

Powered by FUDForum. Page generated in 0.03206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top