Saving Momentary Declared Integer Values

Hi,
I am running a function block in only one scan cycle in my Mervis main program. The output of this function block is a set of 8 int numbers. As I am running this FB only in one scan cycle, I am not able to use the outputs of FB in the main program because after the first scan cycle, the output values seem to reset to "no value".
How I can save the results of this FB in the program?
 
Mindful I am not familiar with Mervis but am with Siemens.....

You edit the FB by adding instruction to map the integer values into an area of unused memory.
If you can't edit your FB then you call another FB which runs for the same one scan cycle and map the values in the same way.
If done correctly then you may assume the values stored will not change until next the one scan cycle is run.
 
Hi
HPC,

Can you tell us what kind of device are you working with... Energy meyer/sensor.. Probes.. Instrumentation
Then we can have better overview hence can guide you on this case...
 
Top