Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » loop current status in ECC
loop current status in ECC [message #1838586] Mon, 01 March 2021 21:03 Go to next message
Eclipse UserFriend
1. ECC status loop(1 to self)

According to use event driven, when the current status is waiting for the outside condition meet, the current status is set to loop itself, it is recursion, i noticed that on windows the cpu consume is 50%, and the fan is on, if there are several FBs in application with ECC, using loop status itself would cause performance issue?

2.
Too many events connections may cause the application looks not easy to read, any good idea?
Re: loop current status in ECC [message #1838595 is a reply to message #1838586] Tue, 02 March 2021 02:53 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure if I understand your point 1 correctly. with loop with 1 one to itself do you mean a busy waiting loop inside of the FB? If yes this is not allowed in IEC 61499. The execution of an ECC must not block or busy loop! It must end in a short period of time! Or do you mean to have an event feedback loop?

For 2 you can have a look on adapters. These not only reduce the event lines but also better define interactions in your applications. Also you can have a look on typed and untyped subapplications. These help to reduce the number of blocks on one sheet. With the upcoming 1.14. 0 release there will be some improvements on the editors of subapps to make it easier to navigate in an application with many untyped subapplications.
Re: loop current status in ECC [message #1838615 is a reply to message #1838595] Tue, 02 March 2021 08:09 Go to previous messageGo to next message
Eclipse UserFriend
for the first problem, when i execute a event, such as moving an axis, i have to check if the axis reach to place.
how to implement it easily, using E_Cycle to check?
Re: loop current status in ECC [message #1838618 is a reply to message #1838615] Tue, 02 March 2021 09:54 Go to previous messageGo to next message
Eclipse UserFriend
how is the axis value updated? use this event for pinging your checking FB.
Re: loop current status in ECC [message #1838619 is a reply to message #1838618] Tue, 02 March 2021 10:23 Go to previous messageGo to next message
Eclipse UserFriend
axis value is checked by another FB (now updating by cycle)

there are two choice , first one is using a cycle to triger the event of FB, then keep checking another event of reaching
second one is trigerring event once then loop the status (set 1 to status itself) until another event comes

which one is the correct one
Re: loop current status in ECC [message #1838626 is a reply to message #1838619] Tue, 02 March 2021 11:14 Go to previous messageGo to next message
Eclipse UserFriend
The second one violates IEC 61499. According to IEC 61499 as long as an FB is busy the resource MUST NOT deliver new events to the FB. So if you do the 1 loop your FB will not end the execution and with such you will never get new events. With no new events you will also not get new data. So in the end the 1 transition loop will not work.

The only option you have is to have an event informing your checking FB about new axis value.
Re: loop current status in ECC [message #1838650 is a reply to message #1838626] Wed, 03 March 2021 00:06 Go to previous messageGo to next message
Eclipse UserFriend
using cycle to check the reach status then trigger event to this ECC?
Re: loop current status in ECC [message #1838721 is a reply to message #1838650] Thu, 04 March 2021 02:09 Go to previous message
Eclipse UserFriend
Just noticed that my message that I wanted to write yesterday was not taken by the forum. I wrote that with the information I have from you this seems a viable solution.
Previous Topic:1.13.1 can't export fboot file
Next Topic:Problems on replace
Goto Forum:
  


Current Time: Sun Jul 27 09:45:42 EDT 2025

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

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

Back to the top