Delta AH500 — 6.13.2 Explanation of Data Processing Instructions

Chapter 6 Applied Instructions API 1213 Symbol: S : Matrix source Word n : Length of the array Word D : Pointer Word Explanation: 1. When the instruction is executed, the state of SM613 is checked. If SM613 is ON, the value of the pointer D is cleared to 0. The state of SM615 is written into the bit specified by the value of the pointer D . After the state of SM615 is written into the bit, the state of SM612 is checked. If SM612 is ON, the value in the pointer D increases by one. 2. When the state of SM615 is written into the last bit, SM608 is ON, and the bit number is recorded in the pointer D . If value of the pointer D exceeds the range, SM611 is ON. 3.

The operand n should be within the range between 1 and 256. 4. The value of the pointer is specified by users. The values range from 0 to 16 n − 1, and correspond to the range from b0 to b16 n − 1. If the value of the pointer exceeds the range, SM611 is set to 1, and the instruction is not executed. Example: 1. Suppose SM613 is OFF and SM612 is ON when X0.0 is switched from OFF to ON. 2. Suppose the current value in D20 is 45. When X0.0 is switched from OFF to ON one time, users can get the execution result shown below. When the value in D20 is 45, SM615 is OFF, and SM608 is OFF.

6-287 Instruction code Operand Function MBWR P S, n, D Writing the matrix bit Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S        n           D         Pulse instruction 16-bit instruction (7 steps) 32-bit instruction AH500 AH500 -