05-15-2014 10:55 AM
Hi,
I can use globals.
but wld like to implement by passing the date read in a preuut callback to main Seq or other Sub-Sequences
05-15-2014 11:27 AM
Your options are this:
1- FileGlobals
2- Functional Globals in a code module
3- Modify the process model so that those other callbacks have the new parameter and then pass it around in the process model
4- StationGlobals
Your best bet is option 1. My rule of thumb is this:
Avoid StationGlobals at all costs. Try not to modify the process model unless you absolutely need to or you are customizing for everyone. Avoid FileGlobals in any blue sequences (normal sequences) as these should be paramaterized.
The problem with option 2 is that you could easily eliminate it from memory by inadvertantly calling unload all modules.
Hope this helps,
05-16-2014 04:22 AM
Thanks Jigg for the response,
currently I am using File globals , but am in the process of optimising the code
therefore the ? .
also as I get it, the Parameters are of no use when data transfer from callbacks to the main seq
---------------------------------------------------------------------------------------------------------------------------------------
well if I have parameters in Preuutloop call back then I do get error message
"" Type of argument expression 'Locals.ModelPluginConfiguration' is incompatible with parameter 'abc'. Expected Number, found Container.""
regards
aparab
05-19-2014 02:01 AM
Hi aparab,
can you elaborate your question and give me one or two screenshots, so I get an idea of your situation.
Best regards,
Christoph
05-19-2014 02:49 AM
Servus Christoph,
as seen in the png file preuut,
I read data from Database in the file-globals (Batt*) so I want to use it in my main seq.
now my christmas-wish is to use parameters instead of file globals .
now if i add a parameter to my preuut callback i get an error as in preuut_error.png
regards
akshay
05-19-2014 08:06 AM
You cannot just add parameters to callbacks like that. You have to go into the process model and update the calls to them if you want to do that. I don't recommend doing that though.
In this case FileGlobals are the best choice.
Regards,
05-19-2014 09:44 AM
hi Jigg,
ya I got that initially.
just wanna explain the issue.
regards
akshay
05-19-2014 11:43 AM
Ok cool. I just want to make sure that you are happy... 🙂
Thanks,