Skip to main content



      Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Display current ECC state of a basic function blocks(Query Forte for current active state of a basic function blocks )
Display current ECC state of a basic function blocks [message #1818853] Mon, 30 December 2019 09:13 Go to next message
Eclipse UserFriend
Please help with the format of management commands to query Forte for the current active state of a basic function block. What is desired is to write a visualiser of the ECC during the execution.
Re: Display current ECC state of a basic function blocks [message #1818856 is a reply to message #1818853] Mon, 30 December 2019 11:09 Go to previous messageGo to next message
Eclipse UserFriend
Although we are currently not able to show internal run-time information of BFBs and Simple FBs in 4diac IDE, we have foreseen the access to internal variables and the ECC's state in 4diac FORTE. For that we allow that you can give the name of the internal variable or $ECC as part of the READ command in the Source information. So if you give the following READ command:

<Request ID="xxx" Action="READ">
<Connection Source="FB.$ECC" Destination="*" " />
</Request>

You should be able to get the current ECC state of your FB. You will get an integer which corresponds to the state as stored in the FB's XML file. As the Request is sent as IEC 61131-3 string it may be necessary to escape the $ in $ECC (i.e., $$ECC). But I haven't tested that yet.

Please be also aware that this infrastructure is only suitable for getting stable ECC states. Transient states may not be visible to the management command infrastructure. Also if your FB is changing state very frequently than you may also not get all states.

I also heard that Jose planned to work on some infrastructure for showing the current ECC state in 4diac IDE. Maybe you can join forces here.

Cheers,
Alois

[Updated on: Mon, 30 December 2019 11:10] by Moderator

Re: Display current ECC state of a basic function blocks [message #1819236 is a reply to message #1818856] Fri, 10 January 2020 05:47 Go to previous messageGo to next message
Eclipse UserFriend
HI,

I got back today fom vacations. Yes, I'm working on showing the current ECC state and the internal variables for BFB. I got to open a new view for each BFB instance, and now I'm working on showing the desired information somehow
Re: Display current ECC state of a basic function blocks [message #1838598 is a reply to message #1819236] Tue, 02 March 2021 04:25 Go to previous message
Eclipse UserFriend
When will it be released?
Previous Topic:Discussion about integrate FB in ECC
Next Topic:build 4diac error
Goto Forum:
  


Current Time: Mon Jul 07 21:04:24 EDT 2025

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

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

Back to the top