Delta AS Series Programming Manual page 663

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
1213
Device
X
S
n
D
Data
type
S
n
D
Symbol
Explanation
_6
1.
This instruction checks the state of SM613. If SM613 is ON, the instruction clears the value of the pointer D to 0.
The instruction writes the state of SM615 into the bit specified by the value of the pointer D and then checks the
state of SM612. If SM612 is ON, the instruction increments the value in the pointer D by one.
2.
When the instruction writes the state of SM615 into the last bit, sets SM608 is ON, and records the bit number in
the pointer D. If value of the pointer D exceeds the range, SM611 is ON.
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 switches from OFF to ON one time, the instruction gives the
execution result shown below. When the value in D20 is 45, SM615 is OFF, and SM608 is OFF.
6 - 3 8 4
MBWR
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
Writing a matrix bit
SR
E
K
16#
"$"
32-bit instruction
AS
F
-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents