Skip to main content



      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 07:25 Go to next message
Eclipse UserFriend
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 99 times)
Re: Dynamic Type Loading [message #1840322 is a reply to message #1840318] Mon, 12 April 2021 08:46 Go to previous message
Eclipse UserFriend
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: Sat Jul 19 03:46:34 EDT 2025

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

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

Back to the top