arkansascontrols
Lifetime Supporting Member
Ok, I've been battling with this all morning and I've finally come to the conclusion that some of my FC's are not being exectued. Here is the scenario;
I have a Function that begins by reading real_array[1] value (via an FC call) then adds the value to a Memory_Real then scales the result and writes it back out to Different_real_array[1] (via a different FC call). Then steps to the next element of the array and repeats until it reaches the last element of the array (8 elements total)
The primary function is continuously running via an unconditional call from OB1, (however jumps out if the enable_bit is not set)the two subsidiary functions (Read Array Real) and (Write Array Real) are not in OB1, but are called as needed from the primary function.
I've confirmed values are being written to Real_Array (via HMI)but the primary function is not reading the values or writing the computed values to the second array. Can anyone explain this to me? Surely the FC's don't have to be continuously called from OB1 in order to work?
Eric
I have a Function that begins by reading real_array[1] value (via an FC call) then adds the value to a Memory_Real then scales the result and writes it back out to Different_real_array[1] (via a different FC call). Then steps to the next element of the array and repeats until it reaches the last element of the array (8 elements total)
The primary function is continuously running via an unconditional call from OB1, (however jumps out if the enable_bit is not set)the two subsidiary functions (Read Array Real) and (Write Array Real) are not in OB1, but are called as needed from the primary function.
I've confirmed values are being written to Real_Array (via HMI)but the primary function is not reading the values or writing the computed values to the second array. Can anyone explain this to me? Surely the FC's don't have to be continuously called from OB1 in order to work?
Eric