DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-194
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Listed below are the steps to program the Read from Intelligent module function.
Step 1: Load the base number (0-3) into the first byte and the slot number (0-7) into the
second byte of the second level of the accumulator stack.
Step 2: Load the number of bytes to be transferred into the first level of the accumulator stack
(maximum of 128 bytes).
Step 3: Load the address from which the data will be read into the accumulator. This parameter
must be a HEX value.
Step 4: Insert the RD instruction which specifies the starting V-memory location (Vaaa) where
the data will be read into.
Helpful Hint:
S
Use the LDA instruction to convert an octal address to its HEX equivalent
and load it into the accumulator when the HEX format is required.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is ON, the RD instruction will read six bytes of data from
a intelligent module in base 1, slot 2, starting at address 0 in the intelligent module, and copy
the information into V-memory loacations V1400-V1402.
DS32 Used
HPP Used
V aaa
RD
Operand Data Type
DL06 Range
aaa
V-memory
V
See memory map
Discrete Bit Flags
Description
SP54
On when RX, WX RD, WT instructions are executed with the wrong parameters.
Direct SOFT 5
Handheld Programmer Keystrokes
LD
K0102
X1
The constant value K0102
specifies the base number
(01) and the base slot
number (02).
LD
K6
The constant value K6
specifies the number of
bytes to be read.
LD
K0
RD
V1400
V1400 is the starting location
in the CPU where the specified
data will be stored.
Address 2
Address 3
1
9
Address 4
0
Address 5
Address 0
Address 1
3
4
7
V1402
6
V1403
V1404
V1400
V1401
STR
$
SHFT
ANDST
L
3
D
PREV
SHFT
ANDST
L
3
D
6
G
ENT
SHFT
ORN
R
1
B
ENT
0
A
ENT
4
E
0
A
0
A
ENT
SHFT
ANDST
L
3
D
PREV
0
A
0
A
ENT
2
C
CPU
The constant value K0
specifies the starting address
in the intelligent module.
1
2
8
5
0
X X X X
X X X X
12
56
34
78
90
01
{
1
B
PREV
1
B
}
Intelligent Module
Data
3
D
Direct
SOFT
Intelligent I/O Instructions
Read from Intelligent Module (RD)
The Read from Intelligent Module instruction reads a block of
data (1-128 bytes maximum) from an intelligent I/O module into
the CPU’s V-memory. It loads the function parameters into the
first and second level of the accumulator stack and the accumulator
by three additional instructions.