Delta AH500 — 6.13.2 Explanation of Data Processing Instructions

AH500 Programming Manual Symbol: S : Matrix source Word D : Operation result Word n : Length of the array Word Explanation: 1. The bits in the n devices starting from the device specified by S are inverted, and the inversion result is stored in D . 2. The operand n should be within the range between 1 and 256. Example: When X0.0 is ON, the bits in the three 16-bit registers D0~D2 are inverted, and the inversion result is stored in the 16-bit registers D20~D22. b0 b15 D0 D2 D1 After the instruction is executed D20 b0 b15 D21 D22 Additional remark: 1. If S + n -1 or D + n -1 exceeds the device range, the instruction is not execute, SM0 is ON, and the error code in SR0 is 16#2003. 2.

If n is less than 1, or if n is larger than 256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. 6-284 API Instruction code Operand Function 1211 MINV P S, D, n Inverting the matrix bits Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S         D        n           Pulse instruction 16-bit instruction (7 steps) 32-bit instruction AH500 AH500 - 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 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 0