I have been "playing" with S7 and have written a small FB that will average a REAL value over a number of samples. The code is attached. My questions is.. Whay do I have to load the data into the DB using L DBD [#dPointer]? I have a STAT declared which is a REAL array of 60 elements - "rSample[1..60] Of Real" but I cannot get the code to accept this, instead I have had to OPN the DB at the start of FB and use L DBD [#dPointer]. It's no big deal to me either way as the code appears to work this is more about learning ..so any criticism will be appreciated
Thanks
Thanks