|
Re: Display current ECC state of a basic function blocks [message #1818856 is a reply to message #1818853] |
Mon, 30 December 2019 16:09 |
|
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 16:10] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03042 seconds