Eduardo Try the latest version, I just updated it on the forge site as well. https://www.dropbox.com/s/ql4b4ehxghvrsvc/PRO_JSON%220.127.116.11.library?dl=0 There's some more examples in this version as well, maybe that will help, otherwise my email is in the library, you can send me an example of the issue you're having Tim
what if you did this? FUNCTION SQ VAR_INPUT In: ANY; Out: ANY; END_VAR since the ANY type gives you the size, type, and a pointer to the value, you can write your result to the pointer at Out.pValue. Create a bunch of pointers to whatever data types you want to use, for example: VAR pRealResult: POINTER TO REAL; END_VAR pRealResult:= Out.pValue; //write your REAL answer to pRealResult^
"If you are not happy with my answers, I will let others answer them then..." seems a little aggressive...I'm just trying to understand what you mean. Wouldn't hurt if there was a list of known issues and workarounds somewhere. The people in the field installing this stuff waste a lot of time trying to figure stuff like this out.
OK, except for global variables I guess. Here's a workaround. Declare the array in a GVL with the same name as the variable you want to use in the interface. Do the "Multiply Visu Element" command. Then when you're done, do a Find/Replace and replace "GVL." with nothing.
So, when you say it's not possible to use the interface variables, is that just another way of saying the feature doesn't work at all? Because that seems to me like the only type of variables in a visualization.
I'm trying to use the "Multiply Visu Element" command https://help.codesys.com/api-content/2/core_visualization/18.104.22.168/en/_visu_create_similar_elements_in_many_cases/ Seems like it should be pretty straightforward--configure an element like the attached screenshot, select it, and go to "Visualization/Multiply Visu Element". But I get an error message "command can only be executed if the visu element has at least one configuration entry using an array variable and the array variable uses the index...