I'm trying to work with Recipe Management on Codesys V3.
I showed 3s example to start ("RecipeDemo").
The RecipeManCommands.GetRecipeNames or .SetRecipeValues accept pointer to array of string as parameter.
I use an array of string to read recipe name or save values, but i need convert one by one my parameter to array of string.
I have a struct composed by different parameter and I have to convert Type_to_string.
Is there a function to put values of a struct in array of string and the opposite?
Mystruct.a (INT) = 100 -->int_to_string() array = '100'
Mystruct.b (BOOL) = TRUE -->bool_to_string() array = 'TRUE'
Mystruct.c (STRING) = 'TEST' array = 'TEST'
My struct --> array of string --> recipe file.
For the moment I use a pointer of byte to point on the first element of my instance of struct, and I move the pointer in base of type of data to copy data from array of string to my struct.
I have an other problem, when I read an Integer value by my array of string I read the ASCII character corrispondent (for example char= 'W' int value = 87).
Is possible to convert the ascii character to value code?
Thank to all for your reply.