DVP-ES3 Series Programming Manual Example 1. When M0 is switched from OFF to ON, SM609 is OFF. The search for the bits with different states (SM607 is OFF) starts from the bits specified by the adding one to the current value of the pointer. 2. Suppose the current value in D20 is 2. When M0 is switched from OFF to ON four times, you get the following execution results. The value in D20 is 5, SM610 is ON, and SM608 is OFF. The value in D20 is 45, SM610 is ON, and SM608 is OFF. The value in D20 is 47, SM610 is OFF, and SM608 is ON. The value in D20 is 1, SM610 is ON, and SM608 is OFF. 2 Pointer S 1 b0 b0 D20 b47 MCMP b0 _6 S 2 Additional remarks b47 1. Operation error codes:
If the devices S 1 +n-1 and S 2 +n-1 exceed the range, the MCMP instruction is not executed, SM is ON, and the error code in SR0 is 16#2003. If the value in the operand n is not between 1 and 256, the MCMP instruction is not executed, SM is ON, and the error code in SR0 is 16#200B. 2. Operation flags: Matrix comparison flag. SM607: ON: comparing equivalent values OFF: comparing different values SM608: The matrix comparison ends. When the last bits are compared, SM608 is ON. SM609: ON: the comparison starts from bit 0. SM610: Matrix bit search flag. When the matching bits are found, the comparison stops immediately, and SM610 is ON. SM611: Matrix pointer error flag.
When the value of the pointer exceeds the comparison range, SM611 is ON. 6-34 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1