EasyManuals Logo

Automationdirect.com DirectLOGIC DL205 Series User Manual

Automationdirect.com DirectLOGIC DL205 Series
587 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
Page #295 background image
DL205 User Manual, 4th Edition, Rev. B
5–78
Chapter 5: Standard RLL Instructions - Logical
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Or with Stack (ORS)
The Or with Stack instruction is a 32-bit instruction that
logically ORs 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 Or
with Stack is zero or a negative number (the most significant
bit is on).
In the following example, when X1 is on, the binary value in the accumulator will be ORed
with the binary value in the first level of the stack. The result resides in the accumulator.
LDD
V1400
0010100001111010
01101010011110100000010000000000
V1400
287A
0111011001111111
0101010001111110
1514131211109876543210
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1631 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
Acc.
Acc.
V1500
6A7A
V1401
547E
V1501
767F
0101010001111110 0010100001111010
01101010001110000 011011001000111
DirectSOFT
X1
Load the value in V1400 and
V1401 in the accumulator
ORS
OR the value in the
accumulator with the value
in the first level of the
accumulator stack
OUTD
V1500
36476A38
OR (top of stack)
Copy the value in the
accumulator to V1500 and
V1501
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
RST
S
ENT
O R S
ý
ý
ý
þ
2
30
240
250-1
260
Discrete Bit Flags Description
SP63 Will be on if the result in the accumulator is zero
SP70 Will be on if the result in the accumulator is negative
DS Used
HPP Used

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DirectLOGIC DL205 Series and is the answer not in the manual?

Automationdirect.com DirectLOGIC DL205 Series Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDirectLOGIC DL205 Series
CategoryController
LanguageEnglish

Related product manuals