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 » Different text for unknown values of ports(Get values of watches)
Different text for unknown values of ports [message #1784084] Thu, 22 March 2018 10:37 Go to next message
Luca Hollkosse is currently offline Luca HollkosseFriend
Messages: 10
Registered: March 2018
Junior Member
Dear all,

I created simple projects in 4diac ide with only one function block. As long as no REQ event has been sent to this function block its input and output ports show either "����", "����s" or "����l". I know that the values of these ports are unknown so it cannot show a valid value. I wonder about the difference between the shown values.

index.php/fa/32416/0/

I also tried to get the values with forte monitoring, but the result is the same:

index.php/fa/32418/0/

Is this a bug or is there any sensible reason for this behavoir?


Thank you.

Best Regards

[Updated on: Fri, 18 May 2018 11:27]

Report message to a moderator

Re: Different text for unknown values of ports [message #1784114 is a reply to message #1784084] Thu, 22 March 2018 15:58 Go to previous messageGo to next message
Martin Melik-Merkumians is currently offline Martin Melik-MerkumiansFriend
Messages: 45
Registered: March 2016
Member
Is the F_ADD FB Ins and Outs connected to something? Because the Ins and Outs are of Type ANY_BIT, which is not a concrete type, which could be the reason for the shown garbage data
Re: Different text for unknown values of ports [message #1784128 is a reply to message #1784114] Thu, 22 March 2018 17:09 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 636
Registered: January 2014
Senior Member
I think Martin is right with his assessment of the ANY_BIT type. On option you can have to test is to specify typed literals at the inputs (e.g., INT#10) and see if you still get the problem.
Re: Different text for unknown values of ports [message #1784140 is a reply to message #1784114] Thu, 22 March 2018 19:23 Go to previous messageGo to next message
Luca Hollkosse is currently offline Luca HollkosseFriend
Messages: 10
Registered: March 2018
Junior Member
Hello Martin and Alois,

Thank you for your fast replies.

As you see in the first row, third column of the screenshot below the "garbage data" is also shown if I configure the input ports correctly with INT#1 and INT#2:

index.php/fa/32426/0/

It looks like FORTE chooses every second randomly between these three values ("����", "����s" or "����l"). Without changing anything I got this results a few seconds later:

index.php/fa/32427/0/

I had expected FORTE always returns the same value to me if one or more I / O ports are improperly configured.
So why do I get these random "garbage data" instead of returning always the same value like "����"?


Thank you.

Best regards

[Updated on: Fri, 18 May 2018 11:28]

Report message to a moderator

Re: Different text for unknown values of ports [message #1784194 is a reply to message #1784140] Fri, 23 March 2018 12:01 Go to previous messageGo to next message
Martin Melik-Merkumians is currently offline Martin Melik-MerkumiansFriend
Messages: 45
Registered: March 2016
Member
I would guess, that the IDE creates these random symbols, as it does not know how to interpret the received data.
You are always getting some valid data from FORTE, otherwise "����" + "����" would most likely not result in 0, like in your second example.
Perhaps some IDE monitoring specialist can confirm or reject this hypothesis?
Re: Different text for unknown values of ports [message #1784200 is a reply to message #1784194] Fri, 23 March 2018 13:05 Go to previous messageGo to next message
Jose Maria Jesus Cabral Lassalle is currently offline Jose Maria Jesus Cabral LassalleFriend
Messages: 103
Registered: February 2016
Senior Member
Hi,

can you tell us the version of forte and 4diac you're using. I tested now with the 1.9.x of forte and the nightly version of 4diac and I just get blank spaces for IN1 and IN2 and after req I get a 0 in OUT
Re: Different text for unknown values of ports [message #1784216 is a reply to message #1784200] Fri, 23 March 2018 15:57 Go to previous messageGo to next message
Luca Hollkosse is currently offline Luca HollkosseFriend
Messages: 10
Registered: March 2018
Junior Member
Hi,

I don't use the nightly version so maybe this issue is fixed now. Maybe first of all I should try this. Where can I find that version?

I have used the newest versions I found here: https://www.eclipse.org/4diac/en_dow.php

4diac-ide 1.9.0 RC2 (1.9.0.201802131428)
4diac-rte 1.9.0 RC2


Best regards

[Updated on: Fri, 18 May 2018 11:28]

Report message to a moderator

Re: Different text for unknown values of ports [message #1784231 is a reply to message #1784216] Fri, 23 March 2018 21:35 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 636
Registered: January 2014
Senior Member
I spent some further time on investigating this and also found one issue in FORTE that can cause it [1]. As you can see in the bug report I already fixed it. The problem was that for derived ANY types (e.g., ANY_INT) the monitoring always sent an empty string as value back. This somehow confused the IDE. I don't know how to handle this in the ide as I could also not reproduce the strange output that you saw on your machine. But at least it helped us to track down a strange issue in FORTE. Furthermore FORTE's execution was not harmed by this issue and always the same data was sent from FORTE to the IDE. Why the values where changing I don't know.

In order that this is not coming back I also added a set of unit tests to check that now the behavior on FORTE is as intended.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=532845
Re: Different text for unknown values of ports [message #1784276 is a reply to message #1784231] Mon, 26 March 2018 07:44 Go to previous message
Luca Hollkosse is currently offline Luca HollkosseFriend
Messages: 10
Registered: March 2018
Junior Member
Hi Alois,

I am happy to hear that I have been able to help uncover a bug. Now forte works as expected:
index.php/fa/32444/0/

Thank you for your quick action :-)

Best regards

[Updated on: Fri, 18 May 2018 11:28]

Report message to a moderator

Previous Topic:Reading Applications/Programs from FORTE device
Next Topic:FBRT pallet missing
Goto Forum:
  


Current Time: Tue Sep 25 11:48:49 GMT 2018

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

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

Back to the top