Mitsubishi — 3.14.3.1 Arithmetic Operation

Chapter 3 Creating and Editing Screens Add up the values contained within the internal memory address $6, $8 and $10, and the grand total is stored in the address $12 (this is an operation of unsigned 32-bit data).  FADD (Floating Addition) Equation Var1 = FADD (Var2, Var3) Explanation Perform the addition on Var2 and Var3, and store the addition result in Var1. Remark  This is the operation of signed 32-bit data.  The calculation result can be stored as signed DWORD. When the data exceeds the length of designated unit, the data out of range will be discarded.  Var1 can be internal memory only. Var2 and Var3 can be internal memory or constant.

Example Add a value of 1.0 to $0 and store the value in $0 (this is a floating point operation of signed 32-bit data). Revision May, 2010 3-309