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 » 4DIAC IDE(4DIAC IDE)
4DIAC IDE [message #1862772] Fri, 29 December 2023 05:43 Go to next message
poer swzx is currently offline poer swzxFriend
Messages: 3
Registered: November 2023
Junior Member
Hi,
I want to add LUA script support in my IDE, but it's more difficult in version 2.1.x than in 2.0.1. Do you have any good suggestions?
Re: 4DIAC IDE [message #1862775 is a reply to message #1862772] Fri, 29 December 2023 08:25 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Hi, currently LUA support in 2.1.x is broken. We would be happy for any support we could get here to get it fixed.
Re: 4DIAC IDE [message #1862777 is a reply to message #1862775] Fri, 29 December 2023 08:36 Go to previous messageGo to next message
poer swzx is currently offline poer swzxFriend
Messages: 3
Registered: November 2023
Junior Member
Currently, 4diac supports converting ST language to LUA to achieve dynamic function block effects. It is also possible to directly write LUA scripts to implement dynamic function blocks. However, I am currently trying to do this, but I am not very familiar with this framework, so it is slower to write.

[Updated on: Fri, 29 December 2023 08:39]

Report message to a moderator

Re: 4DIAC IDE [message #1862778 is a reply to message #1862777] Fri, 29 December 2023 08:42 Go to previous messageGo to next message
poer swzx is currently offline poer swzxFriend
Messages: 3
Registered: November 2023
Junior Member
4diac converts ST code to LUA scripts, and based on the converted XML, it appears that there is some room for optimization of the LUA script, as it may appear a bit bulky.、
Re: 4DIAC IDE [message #1862781 is a reply to message #1862778] Fri, 29 December 2023 09:29 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

No the idea is not to write FBs in LUA script. The only idea is to generate LUA script from FBs.

If we get it working again I'm happy to also get it optimized.
Previous Topic:Float to text conversion
Next Topic:Analog Inputs for NXP
Goto Forum:
  


Current Time: Sat Apr 27 14:37:58 GMT 2024

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

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

Back to the top