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 Wed Dec 19, 2018 10:14 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Test Manager results
PostPosted: Wed Nov 25, 2015 5:05 pm 
Offline

Joined: Fri Nov 06, 2015 12:10 pm
Posts: 34
When the Test Manager run I have the next failure message: State mismatch. Expected Good but current is NotMonitoredYet

And on an other row: State mismatch. Expected Good but current is NoBP

Where can I found an explanation of the messages from the Test Manager?
What will this mean?


Top
   
 Post subject: Re: Test Manager results
PostPosted: Wed Nov 25, 2015 5:34 pm 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 232
Hi Bakkertje.

These errors occur when the Test Manager waits for or requests data from the PLC.

NotMonitoredYet = No value has been received up to now
NoBP = The variable can only be monitored when the application is halted on an (appropriate) breakpoint, e.g. for stack variables

Which version of CODESYS and CODESYS Test Manager do you use?

What command or element of the test script report theses errors?

BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
 Post subject: Re: Test Manager results
PostPosted: Thu Nov 26, 2015 9:55 am 
Offline

Joined: Fri Nov 06, 2015 12:10 pm
Posts: 34
Hi Keller,

Thanks for your reply.

The next software is used: Codesys V3.5 SP7 Patch 2 and Test Manager 4.0.1.1.

I try to test an FB_TestThis and set some values on the inputs and check the output. Setting of the input is not a problem.
For checking the output, Is use the command: TestManager.Monitoring and CompareVariable
Variable name is: Device.Application.FB_TestThis.q_iResult


Top
   
 Post subject: Re: Test Manager results
PostPosted: Thu Nov 26, 2015 10:18 am 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 232
Hi Bakkertje.

I think the timeout for reading the variable is too small for the case with NotMonitoredYet. The timeout specifies the maximal time which the Test Manager waits for receiving the value of the variable.

The minimal value for the timeout depends on the monitoring cycle of the PLC. Normally you use <monitoring cycle> x 2.5. For the WinV3 SoftPLC you use 500ms because the monitoring cycle is 200ms.

BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
 Post subject: Re: Test Manager results
PostPosted: Thu Nov 26, 2015 10:25 am 
Offline

Joined: Fri Nov 06, 2015 12:10 pm
Posts: 34
I found the problem. I must check the instance of the FB not the definition. :|


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


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