DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-195
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 intelligent module address which will receive the data into the accumulator.
This parameter must be a HEX value.
Step 4: Insert the WT instruction which specifies the starting V-memory location (Vaaa)
where the data will be written from in the CPU.
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 WT instruction will write six bytes of data to an
intelligent module in base 1, slot 2,starting at address 0 in the intelligent module, and copy the
data from V-memory locations V1400-V1402.
V aaa
WT
DS32 Used
HPP Used
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 written.
LD
K0
WT
V1400
V1400 is the starting location
in the CPU where the specified
data will be written from.
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
ANDN
W
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
MLR
T
V1377
X X X X
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
Write to Intelligent Module (WT)
The Write to Intelligent Module instruction writes a block of data
(1-128 bytes maximum) to an intelligent I/O module from a block
of V-memory in the CPU. The function parameters are loaded
into the first and second level of the accumulator stack and the
accumulator by three additional instructions.