Posted 2 May 2022 (edited) Your Result is only one INT. The instruction needs 1 for the answer, 1 for the data pointer and 64 for calculation. You'll need to make your Result (P1_Avg) an array of 66. In standard ladder programming this happens automatically. In a FB, memory must be allocated in the variable. Edited 2 May 2022 by IO_Rack Share this post Link to post Share on other sites