EasyManuals Logo

AutomationDirect DL205 User Manual

Default Icon
598 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 #301 background imageLoading...
Page #301 background image
DL205 User Manual, 4th Edition, Rev. D
5-77
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Or Formatted (ORF)
The Or Formatted instruction logically ORs the binary value
in the accumulator and a specified range of discrete bits (1 to
32). The instruction requires a starting location (Aaaa) and
the number of bits (Kbbb) to be ORed. Discrete status flags
indicate if the result is zero or negative (the most significant
bit =1).
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.
bbbK
ORFAaaa
X1
K4C10
00000000000001100000000000000000
15 14 13 12 11 10 98765 4 3210
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.
Y20Y21Y22Y23
The unused accumulatorbitsare settozero
OR (Y20--Y23)
0000000000001110
1000
000000000000
0
00 0Acc.
Constant
C20
K4
ON ON ON
OFF
OFF
OFFON ON
C13 C12 C11 C10
C23 C22 C21 C20
ON OFF OFF OFF
Location
Constant
Location
LDF C10
K4
ORF Y20
K4
OUTF C20
K4
Load the status of 4
consecutive bits (C10-C13)
into the accumulator
OR the binary bit pattern
(Y20 - Y23) with the value in
the accumulator
Copy the specified number
of bits from the accumulator
to C20-C23
Handheld Programmer Keystrokes
1
B
ENT
1
B
4
E
0
A
0
A
ENT
STR
$
SHFT
ANDST
L
3
D
OUT
GX
SHFT
5
F
5
F
OR
Q
SHFT
5
F
NEXT NEXT NEXT NEXT
NEXT
2
C
4
E
ENT
PREV PREV
0
A
2
C
4
E
ENT
DirectSOFT
230
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
Operand Data Type DL250-1 Range DL260 Range
A aaa bbb aaa bbb
Inputs X 0–777 0–1777
Outputs Y 0–777 0–1777
Control Relays C 0–1777 0–3777
Stage bits S 0–1777 0–1777
Timer bits T 0–377 0–377
Counter bits CT 0–177 0–377
Special Relays SP 0-777 0–777
Global I/O GX/GY - 0-3777
Constant K - 1–32 - 1–32
DS Used
HPP Used

Table of Contents

Other manuals for AutomationDirect DL205

Questions and Answers:

Question and Answer IconNeed help?

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

AutomationDirect DL205 Specifications

General IconGeneral
BrandAutomationDirect
ModelDL205
CategoryController
LanguageEnglish

Related product manuals