Automationdirect.com DirectLOGIC DL205 Series User Manual page 294

Table of Contents

Advertisement

Or Formatted (ORF)
The Or Formatted instruction logically ORs the binary value
230
in the accumulator and a specified range of discrete bits (1 to
240
32). The instruction requires a starting location (Aaaa) and
250-1
the number of bits (Kbbb) to be ORed. Discrete status flags
indicate if the result is zero or negative (the most significant
260
bit =1).
DS
Used
Operand Data Type
HPP Used
Inputs
Outputs
Control Relays
Stage bits
Timer bits
Counter bits
Special Relays
Global I/O
Constant
Discrete Bit Flags
SP63
SP70
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on the Load Formatted instruction loads C10–C13
(4 binary bits) into the accumulator. The Or Formatted instruction logically ORs the
accumulator contents with Y20–Y23 bit pattern. The Out Formatted instruction outputs the
accumulator's lower four bits to C20–C23.
DirectSOFT
X1
LDF
K4
Load the status of 4
consecutive bits (C10-C13)
into the accumulator
ORF
K4
OR the binary bit pattern
(Y20 - Y23) with the value in
the accumulator
OUTF
K4
Copy the specified number
of bits from the accumulator
to C20-C23
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
F
SHFT
ANDST
3
5
Q
F
SHFT
NEXT
OR
5
GX
F
SHFT
PREV
OUT
5
A
X
Y
C
S
T
CT
SP
GX/GY
K
Will be on if the result in the accumulator is zero
Will be on if the result in the accumulator is negative
C10
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.
0
0
0
0 0
Y20
Y23
Y22
Y21
ON OFF OFF OFF
OR (Y20- - Y23)
Acc.
0
0
0
0 0
C20
B
NEXT
NEXT
NEXT
NEXT
1
C
A
E
ENT
2
0
4
C
A
E
PREV
2
0
4
Chapter 5: Standard RLL Instructions - Logical
DL250-1 Range
aaa
bbb
0–777
0–777
0–1777
0–1777
0–377
0–177
0-777
-
-
1–32
Description
Location
C10
The unused accumulator bits are set to zero
15 14 13 12 11 10 9
0
0
0
0 0
0
0
0
0 0
0
0
0
Y20
0
0
0
0
0 0
0
0
0 0
0
0
0 0
Location
C20
A
E
ENT
0
4
ENT
DL205 User Manual, 4th Edition, Rev. B
ORF
A aaa
K
bbb
DL260 Range
aaa
bbb
0–1777
0–1777
0–3777
0–1777
0–377
0–377
0–777
0-3777
-
1–32
Constant
C13 C12 C11 C10
K4
OFF
ON ON
OFF
8
7 6 5
4 3
2
1
0
0
0 0
0
0
0
0 0
0
0
0
1 1
0
1
0
0
0
0
0
0 0
0
0
0
0 1
1
1
Constant
C23 C22 C21 C20
ON ON ON
OFF
K4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
0
0
B
C
D
5–77

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents

Save PDF