Mitsubishi — 3.14.3.1 Arithmetic Operation

Chapter 3 Creating and Editing Screens Add a value of $4 to $2 and store the value in $6 (this is a floating point operation of signed 32-bit data).  FSUB (Floating Subtraction) Equation Var1 = FSUB (Var2, Var3) Explanation Perform the subtraction of Var2 and Var3, and store the subtraction 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 Subtract a value of 1.0 from $0 and store the value in $0 (this is a floating point operation of signed 32-bit data). 3-310 Revision May, 2010