Mitsubishi — 3.14.3.1 Arithmetic Operation

Chapter 3 Creating and Editing Screens Multiply the value of $8 by $10 and store the value in $12 (this is an operation of signed 32-bit data).  Repeated Addition) ADDSUMW ( Equation Var1 = ADDSUMW (Var2, Var3) Explanation Perform the addition on Var3 consecut ive registers starting at register Var2 and store the repeated addition result in Var1. Remark  This is the operation of unsigned data.  The calculation result can be stored as unsigned WORD and DWORD. Whe n the data exceed s the length of designated unit, the data out of range will be discarded.  Var1 and V ar2 can be internal memory only. Var3 can be internal memory or constant.

Example Add up the values contained within the internal memory address $0, $1, $2, $3 and $4, and the g rand total is stored in the address $5 (this is an operation of unsigned 16-bit data). 3-308 Revision May, 2010