CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Thu Jan 23, 2020 12:48 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Nov 04, 2010 5:12 pm 

Joined: Fri Jun 25, 2010 12:56 pm
Posts: 13

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.


You do not have the required permissions to view the files attached to this post.

PostPosted: Thu Nov 04, 2010 6:29 pm 
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 410
With 2.3 this could also happen when too many variables were monitored. The most simple solution is to close all Editors except the one you would like to monitor.
With CoDeSys V3 I have not seen this yet. How do you now solve it?
What happens if you close all Windows?
Which device do you have?
Which CoDeSys version do you use?
What happens if you close one of the other CoDeSys IDE instances?

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.


PostPosted: Sun Nov 07, 2010 4:40 am 
Frequent User
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.


In a program some where you defined tMyStruct :MY_STRUCT;

then create a FB Set_Data with the following

tMyStructure : MY_STRUCT;

then in the program create an instance of Set_Data and pass tMyStruct to tMyStructure

MyData :Set_Data;

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.

Steve Pfeifenroth

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)?

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.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 10 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited