DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
9. The 16-bit comparison values used in the 16-bit instruction are signed values. The comparison
values used in the 32-bit instruction are 32-bit signed values (M1162=OFF), or floating-point
numbers (M1162=ON).
10. The 16-bit data or 32-bit data is written into D. If the data length is less than 16 bits or 32 bits,
the bit which does not have a corresponding value is 0. For example, if n is K8, bit0~7 have
corresponding values, and bit8~bit15 or bit8~bit31 are 0.
11. If the comparison result meets the comparison condition, the corresponding bit is 1. If the
comparison result does not meet the comparison condition, the corresponding bit is 0.
Program example:
When M0 = ON, compare the 16-bit value in D0~D7 with D20~D27 and store the results in D100.
 Content in D0~D7:
 Content in D20~D27:
 After the comparison of CMPT instruction, the associated bit will be 1 if two devices have the
same value, and other bits will all be 0. Therefore the results in D100 will be as below:
D100