EasyManua.ls Logo

Delta AH500 - Page 454

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AH500 Programming Manual
6-286
API
Instruction code Operand Function
1213 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
-
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 16n1, and
correspond to the range from b0 to b16n1. 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.

Table of Contents

Other manuals for Delta AH500

Related product manuals