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 » reset the ecc status to start
reset the ecc status to start [message #1838602] Tue, 02 March 2021 10:20 Go to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
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 12:01 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

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 13:00 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
how to do the "RESET" ?
Re: reset the ecc status to start [message #1838625 is a reply to message #1838614] Tue, 02 March 2021 16:10 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

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 07:31 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
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 07:32 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

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 08:24 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
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 20:09 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

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 05:29 Go to previous messageGo to next message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
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 14:31 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1560
Registered: January 2014
Senior Member

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 05:28 Go to previous message
joy woo is currently offline joy wooFriend
Messages: 198
Registered: May 2019
Senior Member
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: Fri Mar 29 05:46:55 GMT 2024

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

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

Back to the top