Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » How does 4diac convert ST into c code?
How does 4diac convert ST into c code? [message #1821985] Tue, 25 February 2020 03:02 Go to next message
Eclipse UserFriend
Hi!
I 'd like to know how does 4diac convert ST into c code. I noticed that 4diac ide can generate a function block which written by structured text into C code.
Re: How does 4diac convert ST into c code? [message #1822008 is a reply to message #1821985] Tue, 25 February 2020 10:46 Go to previous messageGo to next message
Eclipse UserFriend
First of all we are generating C++ code. For that we expect quite some infrastructure provided by 4diac FORTE.

We have two different C++ code generators:
1 . an old one handwritten in Java which takes an IEC 61499 FB and generates for its elements the required 4diac FORTE C++ statements
2. a new experimental generator based on XTend. This one is not fully functional yet. But we hope to have it as default generator for the upcoming 1.12.0 release.

If you are looking for a C code generator for pure IEC 61131-3 ST you may want to have a look on the MATIEC project: https://bitbucket.org/mjsousa/matiec/src/default/
Re: How does 4diac convert ST into c code? [message #1822025 is a reply to message #1822008] Tue, 25 February 2020 21:02 Go to previous messageGo to next message
Eclipse UserFriend
I very much appreciate that you reply to me so quickly. Thank you!
1. There are some other questions whether the one handwritten in java plans to be open source or not?
2. I would like to know is it feasible that our company wants to develop and integrate the compiler which converts ST code to c++ ourselves and work in the 4DIAC environment?

[Updated on: Tue, 25 February 2020 21:38] by Moderator

Re: How does 4diac convert ST into c code? [message #1822075 is a reply to message #1822025] Wed, 26 February 2020 12:30 Go to previous message
Eclipse UserFriend
You are welcome.

Ad 1) we currently don't have FBs with handwritten Java code.
Ad 2) Yes we provide an own extension point for exporters. If you write your plugin to hook into that extension point your exporter will show up in the list and users can choos from that. You can do that in an own independent plugin which is separated from the open source code.
Previous Topic:ECC status change Hook executeEvent
Next Topic:String to insert was empty
Goto Forum:
  


Current Time: Mon Jul 07 08:50:23 EDT 2025

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

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

Back to the top