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 Mon Feb 17, 2020 12:03 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Feb 13, 2020 10:10 pm 
Offline

Joined: Tue Jun 04, 2019 4:53 pm
Posts: 7
Hi all,
I'm having problems with the method SetRecipeValues of the Function block RecipeManCommands.

I really don't get why it return 0 (success) even if the content of the arry passed as argument isn't actually written in the recipe (see attachment)

Does anyone have a working example of this method?
(The example available in the store give hundreds of compilation error I can't fix)


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


Top
   
PostPosted: Fri Feb 14, 2020 8:52 am 
Offline
Frequent User
Frequent User

Joined: Fri Feb 23, 2018 3:41 pm
Posts: 180
Online help feel erroneous for this function.
help wrote:
pStrings POINTER TO ARRAY [] OF STRINGS Pointer to STRING data types where the names of recipe variables are saved


Is GetRecipeValues working ?

BTW, did you had a look at https://store.codesys.com/recipe-management-example.html ?


Top
   
PostPosted: Fri Feb 14, 2020 10:40 am 
Offline

Joined: Tue Jun 04, 2019 4:53 pm
Posts: 7
Hi,
Thank you for your answer.
yes GetRecipeValues is working correctly.
I don't know where did you get that documentation...the one I can see in the library make sense to me (see pic).

I think it's a bug because SetRecipeValues return success even if I try to write a string in a LREAL field (but nothing actually change in the recipe).


Of course I had a look at the store example but unfortunately it's impossible to build it...it returns hundreds of errors even trying to download the missing library and updating the target device...


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


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

All times are UTC+01:00


Who is online

Users browsing this forum: Carlos BarrĂ­a and 2 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