Mitsubishi — 5.6 Descriptions of the Applied Instructions

AH500 Motion Control Module Manual  S : Initial device; D : Device in which a mean is stored; n : Number of devices  After the values in the n devices starting from S are added up, the mean Explanation of the sum is stored in D .  If a remainder appears in a calculation, it will be left out.  If S is not in a valid range, only the devices in the valid range will be processed.  If KnM/KnS is used, it is suggested that M device numbers/S device numbers should start from a number which is a multiple of 16 in the decimal numeral system, e.g. K1M0 and K4S16 (decimal numeral system).  If n is not in the range of 1 to 64, an operation error will occur.

 n =1~64 Example  When X1.0 is ON, the values in the three registers starting from D0 are added up. After the values are added up, the sum will be divided by 3. The quotient is stored in D10, and the remainder is left out. X1.0 (D0+D1+D2)/3 D10 D0 K100 D1 K113 D10 After the instruction is executed K112 The quotient 2 is left out. D2 K125 5-66 API Instruction code Operand Function 45 D MEAN P S, D, n Mean Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S           D    n       Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (8 steps )    .0 MEAN D0 D10 K3