DVP-ES3 Series Programming Manual Example 1. Suppose SM613 is OFF and SM612 is ON when M0 switches from OFF to ON. 2. Suppose the current value in D20 is 45. When M0 is switched from OFF to ON three times, the instruction gives the following execution results. The value in D20 is 46, SM614 is OFF, and SM608 is OFF. The value in D20 is 47, SM614 is ON, and SM608 is OFF. The value in D20 is 47, SM614 is OFF, and SM608 is ON. D0 b0 b15 D1 D2 Ptr _6 D20 Additional remarks 1. If S + n -1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2.
If n is not between 1–256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 3. Instruction flags: SM608: The matrix comparison comes to an end. When the last bits are compared, SM608 is ON. SM611: Matrix pointer error flag. When the value of the pointer exceeds the comparison range, SM611 is ON. SM612: Matrix pointer increasing flag. The current value of the pointer increases by one. SM613: Matrix pointer clearing flag. The current value of the pointer is cleared to zero. SM614: Carry flag for the matrix rotation/shift/output. 6-372 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 0 1 0 1 0 1 45 45