Delta AH500 Programming Manual page 454

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1213
MBWR
Device X
Y
M
S
n
D
Symbol:
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 16n−1, and
correspond to the range from b0 to b16n−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 - 2 8 6
Operand
S, n, D
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
AH500
S : Matrix source
n : Length of the array
D : Pointer
Writing the matrix bit
L
SM SR
E
PR
AH500
Function
K
16# "$"
DF
-
Word
Word
Word

Advertisement

Table of Contents
loading

Table of Contents