Automationdirect.com DirectLOGIC DL205 Series User Manual page 365

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Table
Set Bit (SETBIT)
1
The Set Bit instruction sets a single bit to one within a range
of V-memory locations.
230
2
240
250-1
3
260
Reset Bit (RSTBIT)
4
The Reset Bit instruction resets a single bit to zero within a
range of V-memory locations.
230
5
240
250-1
6
260
The following description applies to both the Set Bit and Reset Bit table instructions.
Step 1: Load the length of the table (number of V-memory locations) into the first level of the
7
DS
Used
HPP Used
Step 2: Load the starting V-memory location for the table into the accumulator. This parameter must
8
Step 3: Insert the Set Bit or Reset Bit instruction. This specifies the reference for the bit number of
9
Helpful hint: — Remember that each V-memory location contains 16 bits. So, the bits of the
10
first word of the table are numbered from 0 to 17 octal. For example, if the table length is 6
words, then 6 words = (6 x 16) bits, = 96 bits (decimal), or 140 octal. The permissible range
11
of bit reference numbers would be 0 to 137 octal. Flag 53 will be set if the bit specified is
outside the range of the table.
12
13
Discrete Bit Flags
14
SP53
A
NOTE: Status flags are only valid until the end of the scan or another instruction that uses the same flag is
executed.
B
C
D
5–148
DL205 User Manual, 4th Edition, Rev. B
accumulator stack. This parameter must be a HEX value, 0 to FF.
be a HEX value. You can use the LDA instruction to convert an octal address to hex.
the bit you want to set or reset. The bit number is in octal, and the first bit in the table is
number "0".
Operand Data Type
V-memory
On when the bit number which is referred in the Set Bit or Reset Bit exceeds the range of
the table.
DL260 Range
aaa
V
All (See page 3 - 56)
Description
SETBIT
V aaa
RSTBIT
V aaa

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF