Write to buffer for moving average and total values
This FP instruction writes the data specified by s into the buffer for moving average and total values specified by d_Start.
Input
Data area or equivalent constant for storing data to write in the buffer
Output
Starting data area of the buffer
If this instruction is executed when the writing pointer is indicating the final address in the buffer (n_Words defined by FP_AVERAGE_BUFFER_DEFINE), the writing pointer will be set to 0.
if the size (n_Words) of the buffer specified by d_Start is n_Words = 0, or when n_Words > 30000.
if the number of stored data items of the buffer = 0.
if the number of stored data items of the buffer > buffer size (n_Words).
if the writing pointer > buffer size (n_Words).
if the writing pointer is 30000 (16#7530) or higher after the data has been written.
if the size (n_Words) of the buffer specified by d_Start is n_Words = 0, or when n_Words > 30000.
if the number of stored data items of the buffer = 0.
if the number of stored data items of the buffer > buffer size (n_Words).
if the writing pointer > buffer size (n_Words).
if the writing pointer is 30000 (16#7530) or higher after the data has been written.
Please refer to the example of FP_AVERAGE_BUFFER_DEFINE.