|
Re: Guide from migrating from 61131-3 ST application to 61499 [message #1792133 is a reply to message #1792053] |
Thu, 12 July 2018 05:51 |
|
Monika Wenger has been working on how to migrate from 61131-3 to 61499, also in automated ways. She achieved quite promising results.
However what we also learned from that work that you only get a direct representation of the 61131-3 semantics in IEC 61499. This normally does not show the real power of IEC 61499. Therefore it can also be advantageous to analyze your application and redesigning it with the IEC 61499 means. Especially events and the ECCs often allow for simpler applications. For bigger applications this can unfortunately mean quite some effort. However even in that case it is possible to leverage your existing ST code within IEC 61499 basic FBs. 4diac has a quite good ST support for basic FBs. We also allow all functions defined in IEC 61131-3 to be used there and we are working on a concept how to define own ST functions for this use case.
Therefore we are always interested in the limitations of our implementation and where extensions are needed.
I understand that mainting both an IEC 61131-3 and an IEC 61499 version of your code is maybe not feasible. The only thing that I can say is that our list of supported hardware is increasing with each version. Maybe yours is already on the list or is rather easy to support.
|
|
|
Re: Guide from migrating from 61131-3 ST application to 61499 [message #1792204 is a reply to message #1792133] |
Thu, 12 July 2018 14:53 |
|
as a guide ... first you should ask yourself if you want to make an IEC 61499 application or if it is ok for you to make an IEC 61131 application with IEC 61499 elements.
if you are interested in making an IEC 61499 application i would recommend to think about the functionalities you had and how you can express them with IEC 61499. your IEC 61131 application might block your thinking since IEC 61499 is a different thinking than IEC 61131. If you have special algorithms in ST you might be able to reuse them in Algorithms of BFBs, but this depends on your ST code.
if you just want to rebuild your IEC 61131 behavior then you would port all of your FBs. Then you should look at your IEC 61131 Tasks. if you only use free running tasks you basically make a proper event loop. if you use periodic tasks you should use E_CYCLE. for "event" triggered IEC 61131 tasks you have to build a proper FB. put each rebuilt task into an own IEC 61499 Resource.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.33955 seconds