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 Movers (assignment) ( Variable Movers (assignment) )
Variable Movers (assignment) [message #1862979] Tue, 09 January 2024 17:01 Go to next message
André Soçva is currently offline André SoçvaFriend
Messages: 83
Registered: November 2023
Member
Is it possible to do Variable Movers (assignment) in 4diac? For example, it would be like a MOVE in the PLC.
Re: Variable Movers (assignment) [message #1862982 is a reply to message #1862979] Tue, 09 January 2024 20:32 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Can you explain the use case. I'm not sure if that is needed or how it would be done best in IEC 61499.
Re: Variable Movers (assignment) [message #1862983 is a reply to message #1862982] Wed, 10 January 2024 01:33 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 83
Registered: November 2023
Member
index.php/fa/43900/0/
Hello Alois, its like the command MOVE of a PLC. In the image there's an example.
Re: Variable Movers (assignment) [message #1862987 is a reply to message #1862983] Wed, 10 January 2024 07:50 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

I know what the move block does. I don't think you need a move block in IEC 61499. In IEC 61499 FBs are sampling their inputs based on input events. Therefore you have a good control over when variables are copied. Using a move block would most probably be just a waste of CPU resources and memory. Therefore I wanted to ask what you want to do with it.

However I checked and our IEC 61131-3 library has an implementation of the MOVE function.

In general all FBs and Functions defined in the IEC 61131-3 standard are available in Eclipse 4diac. Please search in the IEC 61131-3 lib folder. All IEC 61131-3 functions are also available for writing ST Algorithms when developing your own FBs.
Re: Variable Movers (assignment) [message #1862997 is a reply to message #1862987] Wed, 10 January 2024 16:52 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 83
Registered: November 2023
Member
Hello Alois, in this case I am developing a circuit and the client wants equipment with some PLC functionalities. I saw in blocks 61131 that there is MOVE, but only for integer values. This functionality is a requirement of my client. In this case, I can create this to accept any type of variable and pass it to any other variable in the set of blocks. Is this possible to do in 4diac?
Re: Variable Movers (assignment) [message #1862998 is a reply to message #1862997] Wed, 10 January 2024 17:17 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

I just check in the latest development version there is an F_MOVE with type ANY. That should do the work. I also strongly recommend to use the latest RC builds for 4diac IDE and 4diac FORTE.

You also are always showing LD screenshots. Eclipse 4diac has no support for LD!
Re: Variable Movers (assignment) [message #1863002 is a reply to message #1862998] Wed, 10 January 2024 20:23 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 83
Registered: November 2023
Member
What's the latest version?
Re: Variable Movers (assignment) [message #1863005 is a reply to message #1863002] Wed, 10 January 2024 20:50 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

The best you can for now use is this one: https://download.eclipse.org/4diac/updates/rc/
Re: Variable Movers (assignment) [message #1863012 is a reply to message #1863005] Wed, 10 January 2024 21:29 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 83
Registered: November 2023
Member
It's the 2.0.1? That's i'm using.
Re: Variable Movers (assignment) [message #1863013 is a reply to message #1863012] Wed, 10 January 2024 21:59 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

No this is the pre 3.0.0 version. You can see this at the date in the version number.
Re: Variable Movers (assignment) [message #1863015 is a reply to message #1863013] Wed, 10 January 2024 22:06 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 83
Registered: November 2023
Member

index.php/fa/43902/0/

Nothing to download appeared in my version in the software installation tab.
Re: Variable Movers (assignment) [message #1863016 is a reply to message #1863015] Wed, 10 January 2024 22:23 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

The new version is too different therefore upgrading in that we is unfortunately not working. You need to download the full package for your OS which you can also find at that location. From then on automatic updates work.

Please also not that we can open existing projects but you need to use a different workspace.
Previous Topic:Discover the name of a block
Next Topic:Auxiliary variables
Goto Forum:
  


Current Time: Sun Apr 28 01:57:46 GMT 2024

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

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

Back to the top