Author |
Message |
laythea
|
PostPosted: Thu Nov 04, 2010 5:12 pm |
|
Joined: Fri Jun 25, 2010 12:56 pm Posts: 13
|
Hi,
When monitoring large arrays of data i occasionally get "<Value of the expression cannot be retrieved>" in the Value columns for the data (See attached screenshot).
Why is this happening and how can I stop it? It seems pretty random as to when I am not able to monitor my data. Restarting CodeSys does not fix it. I should note that I am monitoring a large number of data items, and sometimes have 3 instances of Codesys running online talking to various bits of hardware.
Thanks Laythe
You do not have the required permissions to view the files attached to this post.
|
|
Top |
|
 |
laythea
|
PostPosted: Fri Nov 05, 2010 9:51 am |
|
Joined: Fri Jun 25, 2010 12:56 pm Posts: 13
|
Hi Tim,
The IDE version is CodeSys 3.4 SP1. Two of the instances are talking over the network to windows xpe controller boxes running CodeSys SP RTE v3.4.1.0. The other instance is talking to a locally running CodeSys SP RTE v3.4.1.0.
In terms of a fix, I havn't really found an reliable soloution for this. I'm guessing this is a performance issue but the PC im running is reasonably fast.
I get the same result if I close the other instances of CodeSys or other windows within the instance. However, I found that sometimes closing and restarting the CodeSys instance which I want to monitor works, but again this is only sometimes.
Cheers Laythe
|
|
Top |
|
 |
spfeif
|
PostPosted: Sun Nov 07, 2010 4:40 am |
|
Offline |
Frequent User |
 |
Joined: Mon Jul 25, 2005 8:06 pm Posts: 295
|
In V2.3 you can have a similar problem when trying to retrieve data from a variable of type Var_in_out from with in the FB that the variable / pointer was defined in.
Example
In a program some where you defined tMyStruct :MY_STRUCT;
then create a FB Set_Data with the following
Var_in_out tMyStructure : MY_STRUCT; end_var
then in the program create an instance of Set_Data and pass tMyStruct to tMyStructure
Var MyData :Set_Data; end_var
When online if you selected the instance of the Set_data FB MyData and then looked at the variable tMyStructure the data values will all be ??? . In order to see the data in the structure you need to view the reference in the program.
Also I have had some problems viewing global data.
_________________ Thanks,
Steve Pfeifenroth
|
|
Top |
|
 |
shutten
|
PostPosted: Thu Nov 24, 2011 12:55 am |
|
Joined: Tue Jun 05, 2007 11:10 pm Posts: 2
|
We have been having more and more difficulty monitoring variables online as our project gets bigger. We are using CoDeSys V3.4 SP1 (for STW ESX-3XL = TriCore). Our download is size is about 470K. Variables are being displayed with "???" or "<Value cannot be retrieved: Too many expressions. >". Previously we have closed all windows and restarted CoDeSys and the 3XL controller to see variables again. This is painful and and in any case is no longer as effective.
This problem is slowing down software development/testing and is very frustrating.
Can anyone explain what causes this and help us find a workaround. Is this a resouce issue (CPU power / RAM size / CAN bandwidth) on the controller or PC side? Any clues as to what to experiment with (e.g. slow down PLC scan rate, try a more powerful PC)?
|
|
Top |
|
 |
travlytle
|
PostPosted: Thu Mar 24, 2016 3:29 pm |
|
Joined: Wed Mar 02, 2016 9:22 pm Posts: 9
|
Use the watch window with just the variables you're wanting to monitor.
I don't think the issue is the speed of the computer, but of the canbus and how fast it can pull the information. They probably limit the amount data pulled over the canbus as you still want the bus to be functional for other devices.
|
|
Top |
|
 |