Mitsubishi — 3.14.3.8 Communication

Chapter 3 Creating and Editing Screens Remark  The calculation result can be stored as unsigned WORD.  Var1 and Var2 can be internal memory only. Var3 can be internal memory or constant. Example The starting address is for calculation $0, the data length is set to 2. After the communication, the calculated checksum through addition calculation is stored in $2 (this is an operation of unsigned 16-bit data).  XORSUM (Use XOR to Calculate Checksum) Equation Var1 = XORSUM (Var2, Var3) Explanation This command uses XOR to calculate checksum. Var1 is the value after calculation, Var2 is the starting address for calculation and Var3 is data length.

Remark  The calculation result can be stored as unsigned WORD.  Var1 and Var2 can be internal memory only. Var3 can be internal memory or constant. Example The starting address is for calculation $0, the data length is set to 2. After the communication, the calculated checksum through XOR calculation is stored in $2 (this is an operation of unsigned 16-bit data). Revision May, 2010 3-357