I just use ST OMRON ST PLC, the instructions are not very familiar, in the project will be transplanted AB, found the following problems.
SumValue, BufferLength is INT type, OUTPUT_Value is REAL type.
Which command should I use to convert the results of the INT type operation in ST to the REAL type.
OUTPUT_Value:= SumValue / (BufferLength + 1);