Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » reset the ecc status to start
reset the ecc status to start [message #1838602] Tue, 02 March 2021 05:20 Go to next message
Eclipse UserFriend
If i have several basic funtion blocks, when the io input reset and stop is set, i want all the fbs' ecc return to Start status, and all the internal viralbes are set to init.
what's the simpest way?
Re: reset the ecc status to start [message #1838610 is a reply to message #1838602] Tue, 02 March 2021 07:01 Go to previous messageGo to next message
Eclipse UserFriend
the simplest way would be to issue a RESET command to all FBs.
Re: reset the ecc status to start [message #1838614 is a reply to message #1838610] Tue, 02 March 2021 08:00 Go to previous messageGo to next message
Eclipse UserFriend
how to do the "RESET" ?
Re: reset the ecc status to start [message #1838625 is a reply to message #1838614] Tue, 02 March 2021 11:10 Go to previous messageGo to next message
Eclipse UserFriend
You can have a look at the EC_KILL_ELEM funtion block. But please be aware that this can be potentially dangerouse.
Re: reset the ecc status to start [message #1839304 is a reply to message #1838625] Fri, 19 March 2021 03:31 Go to previous messageGo to next message
Eclipse UserFriend
after EC_KILL_ELEM , the fb can't trigger again
Re: reset the ecc status to start [message #1839305 is a reply to message #1839304] Fri, 19 March 2021 03:32 Go to previous messageGo to next message
Eclipse UserFriend
that is the idea of Killing the function block. You can either delete it or Reset and Start it.
Re: reset the ecc status to start [message #1839310 is a reply to message #1839305] Fri, 19 March 2021 04:24 Go to previous messageGo to next message
Eclipse UserFriend
i just want to reset the ecc internal virables and the state to the init status
Re: reset the ecc status to start [message #1839398 is a reply to message #1839310] Fri, 19 March 2021 16:09 Go to previous messageGo to next message
Eclipse UserFriend
As i pointed out above this is done with the reset command. However then the fb is in idle mode and therefore you need afterwards a start command
Re: reset the ecc status to start [message #1839403 is a reply to message #1839398] Sat, 20 March 2021 01:29 Go to previous messageGo to next message
Eclipse UserFriend
the reset command, has to implemented by myself or there is already an fb can be used?
Re: reset the ecc status to start [message #1839439 is a reply to message #1839403] Sun, 21 March 2021 10:31 Go to previous messageGo to next message
Eclipse UserFriend
unfortunately the reset is currently not available as FB. But you can just copy modify the start block. beside the name there is most probably only one line in the cpp code to change.
Re: reset the ecc status to start [message #1840996 is a reply to message #1839439] Fri, 30 April 2021 01:28 Go to previous message
Eclipse UserFriend
i think it should be solved as a system solution, otherwise if there are several ecc fbs in one application, that will be hard code in each one
Previous Topic:IEC 61499 Programming Standard: Will it Become Mainstream?:
Next Topic:eclipse and cmake
Goto Forum:
  


Current Time: Sun Jul 06 00:04:10 EDT 2025

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

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

Back to the top