Delta Electronics — 6.13.2 Explanation of Data Processing Instructions

AS Series Programming Manual 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. b0 b15 D0 D1 D2 Ptr D20 Additional remarks _6 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-366 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