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 » Questions about the sequence of events
Questions about the sequence of events [message #1839166] Tue, 16 March 2021 11:05 Go to next message
ys guo is currently offline ys guoFriend
Messages: 4
Registered: November 2020
Junior Member
This is a test about the sequence of events. There are two test results in the attachment.

The data inputs of F_GT come from two different event -driven data.
Due to two more data conversions, IN1 is not updated. Do I have to wait for all the data to be ready before triggering follow-up function block event?
Re: Questions about the sequence of events [message #1839168 is a reply to message #1839166] Tue, 16 March 2021 11:29 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

I'm not sure if there is a yes/no answer to your question. IEC 61499 defines that on the reception of an input event the data on the FB's inputs is updated, with the latest data values available. So the input event defines the sampling point in time.

In your experiments you have an E_SPLIT that clearly defines that first EO1 and then EO2 is sent. In 4diac FORTE this means that first to top and then the bottom FB is triggered. As 4diac FORTE treats each FB as atomic unit it makes no assumption on any event connections on the FBs. Furthermore your second experiment just tells the relative order between all the FBs. There is no assumption between the to and the bottom event chain. The only guarantee you have is that your F_GT block is triggered after the REAL_2_REAL_1 block. If the completion of the top chain is also important for the correct operation of your application you should explicitly model that. (e.g., by using an E_REND FB).

However in an other application it may be perfectly fine to say I want to take the current value available with out the explicit synchronization.

Therefore I said above there is for me no clear yes/no answer to your question.
Re: Questions about the sequence of events [message #1839229 is a reply to message #1839168] Thu, 18 March 2021 00:19 Go to previous messageGo to next message
xin zhao is currently offline xin zhaoFriend
Messages: 15
Registered: March 2021
Junior Member
thanks for the explanantion.

Yes, you are right from the standard point of view. Now I am trying to guess that there might be fixed execution order because of the software realization.

It is a good clue to read the source code of 4diac.


Regards
tibalt
Re: Questions about the sequence of events [message #1839243 is a reply to message #1839229] Thu, 18 March 2021 07:34 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

You are welcome. In 4diac FORTE we are queuing the events in FIFO queue. This leads to a very deterministic execution. If you are interested in the whys and the implementation details I can recommend my real-time execution for IEC 61499 book.

However in your IEC 61499 applications you should not make any assumptions on this order. Because when you are distributing your FBs differently the event order may also be influenced by the network delay. Modelling order requirements explicitly with events is the way to go to get platform independent IeC 61499 models behaving correctly on all IEC 61499 implementations.
Re: Questions about the sequence of events [message #1839245 is a reply to message #1839243] Thu, 18 March 2021 08:31 Go to previous messageGo to next message
xin zhao is currently offline xin zhaoFriend
Messages: 15
Registered: March 2021
Junior Member
yes, I am reading the book "Real-time execution for IEC61499". It helped so much in reading the code.

Thanks again.
Re: Questions about the sequence of events [message #1839249 is a reply to message #1839245] Thu, 18 March 2021 09:31 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1584
Registered: January 2014
Senior Member

as always, if you find ways to improve it please let us know. Especially if it makes 4diac FORTE faster or smaller .;-)
Previous Topic:Problems to compile FORTE+Modbus
Next Topic:mutiple cycle using
Goto Forum:
  


Current Time: Tue Apr 23 08:28:50 GMT 2024

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

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

Back to the top