DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-80
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into
the accumulator using the LDD instruction. The binary value in the accumulator will be
exclusively ORed with 36476A38 using the XORS instruction. The value in the accumulator
is output to V1500 and V1501 using the OUTD instruction.
XO R S
X1
0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0
0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
V1400
2
8
7
A
0 1 1 0 0 0 1 0 0 0 1 1 1 0 0 1
0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
Acc.
Acc.
V1500
4
2
4
2
V1401
5
4
7
E
V1501
6
2
3
9
0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 0
0 0 1 0 1 0 0 0 0 1 1 1 1 0 1 0
0 1 1 0 1 0 1 0 0 0 1 1 1 0 0 0
0 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1
DirectSOFT32
Handheld Programmer Keystrokes
1
B
ENT
1
B
4
E
0
A
0
A
ENT
STR
$
SHFT
ANDST
L
3
D
OUT
GX
SHFT
3
D
1
B
5
F
0
A
0
A
ENT
3
D
OR
Q
SHFT
SET
X
ENT
SHFT
RST
S
Copy the value in the
accumulator to V1500 and V1501
OUTD
V1500
Exclusive OR the value
in the accumulator
with the value in the
first level of the
accumulator stack
LDD
V1400
Load the value in V1400 and
V1401 into the accumulator
36476A38
XOR (1st level of Stack)
XORS
Discrete Bit Flags
Description
SP63
ON if the result in the accumulator is zero.
SP70
ON if the result in the accumulator is negative
DS
Used
HPP Used
Direct
SOFT
Exclusive Or with Stack (XORS)
The XORS instruction is a 32-bit instruction that performs an
Exclusive Or of the value in the accumulator with the first level of
the accumulator stack. The result resides in the accumulator. The
value in the first level of the accumulator stack is removed from the
stack and all values are moved up one level. Discrete status flags
indicate if the result of the XORS is zero or a negative number (the
most significant bit is on).