Delta AS Series Programming Manual page 661

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
API
Instruction code
1212
Device
X
S
n
D
Data
type
S
n
D
Symbol
_6
Explanation
1.
This instruction checks the state of SM613. If SM613 is ON, the instruction clears the value of the pointer D to
zero. The instruction reads the value of the bit specified by the value of the pointer D into SM614, and then checks
the state of SM612. If SM612 is ON, the instruction increments the value of the pointer D by adding one.
2.
When the instruction reads the value of the last bit, SM608 is ON, and the instruction stores the bit number in the
pointer D.
3.
The operand n must be between 1–256.
4.
You specify the value of the pointer. The values are between 0–16n−1, and correspond to the range between b0–
b16n−1. If the value of the pointer exceeds the range, SM611 is set to one, and the instruction is not executed.
Example
1.
Suppose SM613 is OFF and SM612 is ON when X0.0 switches from OFF to ON.
2.
Suppose the current value in D20 is 45. When X0.0 is switched from OFF to ON three times, the instruction gives
the following execution results.
6 - 3 8 2
MBRD
P
Y
M
S
T
C
S : Matrix source
n : Length of the array
D : Pointer
Operand
S, n, D
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
Function
Reading a matrix bit
SR
E
K
16#
"$"
32-bit instruction
AS
F
-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents