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 » Dynamic Type Loading(Dynamic Type Loading Deployment includes the created Function Block.)
Dynamic Type Loading [message #1840318] Mon, 12 April 2021 11:25 Go to next message
Rümeysa Kıvrak is currently offline Rümeysa KıvrakFriend
Messages: 2
Registered: April 2021
Junior Member
Hi everyone,
I built lua-JIT according to the 4diac ide documentation. Then, I configured Cmake options. The new forte.exe was created including the Lua-JIT options. I created my own function block. This function block type is Simple Function Block Type. This Lua Simple function block includes st code this fb will be the toggle current state. I used new forte.exe for launching operation. I used Dynamic Type Loading. When I deploy the project , I had some errors. These errors are Unsopperted Type Error and No Such object .I will add the project image and error messages on this page. Before this porject I worked on Basic Function Block Type, this project was done succesfully. I could see lua code in deployment console. What could be the reason why Simple Function Block Type fails with Lua?

Deployment Console Error:
<FB Name="LuaSimple" Type="LuaSimple"/>
</Request>
<Response ID="6" Reason="UNSUPPORTED_TYPE"/>
<Request Action="CREATE" ID="9">
<Connection Destination="LuaSimple.REQ" Source="E_CYCLE.EO"/>
</Request>
<Response ID="9" Reason="NO_SUCH_OBJECT"/>

ST Code :
STATE :=NOT STATE;

  • Attachment: LuaFB.png
    (Size: 5.51KB, Downloaded 69 times)
Re: Dynamic Type Loading [message #1840322 is a reply to message #1840318] Mon, 12 April 2021 12:46 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1582
Registered: January 2014
Senior Member

Simple Function blocks are currently not yet supported by the Lua code generator. A quick workaround would be a small basic with two states and an algorithm in one.
Previous Topic:Reading a DHT22 Temperature Sensor with an SIFB
Next Topic:SUBSCRIPE can not convert "ANY" to "ANY_INT"
Goto Forum:
  


Current Time: Tue Apr 16 15:04:21 GMT 2024

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

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

Back to the top