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 » Variable number of inputs/outputs by block name
Variable number of inputs/outputs by block name [message #1863052] Fri, 12 January 2024 17:01 Go to next message
paulo nunes is currently offline paulo nunesFriend
Messages: 10
Registered: January 2024
Junior Member
Hello, i would like to know if there's a way to create a block with a variable number of inputs/outputs like is done with the network blocks without recompiling (ex.: CLIENT_0_3 can be created by copying a CLIENT_0_2 block and adding a third output, without the need for recompiling).
Re: Variable number of inputs/outputs by block name [message #1863249 is a reply to message #1863052] Fri, 19 January 2024 17:01 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

For that you need to create in 4diac FORTE a so called generic FB. The name of such an FB needs to start with GEN_ during creation you will be given the config string and you need to parse it and create the according interface elements.

There is a helper class helping you with that.

For starting you can have a look at the blocks starting with GEN_ in the utils module.
Re: Variable number of inputs/outputs by block name [message #1863252 is a reply to message #1863249] Fri, 19 January 2024 17:18 Go to previous messageGo to next message
paulo nunes is currently offline paulo nunesFriend
Messages: 10
Registered: January 2024
Junior Member
Thanks! will try out and give a feedback here.
Edit: It worked well! Thanks!

[Updated on: Tue, 23 January 2024 19:16]

Report message to a moderator

Re: Variable number of inputs/outputs by block name [message #1863294 is a reply to message #1863252] Wed, 24 January 2024 11:10 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Great to hear!
Previous Topic:Documentation about SubApps
Next Topic:Read values ​​between two resources
Goto Forum:
  


Current Time: Sat Apr 27 17:08:06 GMT 2024

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

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

Back to the top