Automationdirect.com DL05 User Manual page 265

Micro plc
Hide thumbs Also See for DL05:
Table of Contents

Advertisement

Write to Intelligent Module (WT)
The Write to Intelligent Module instruction writes a block of
DS32 Used
data (1-128 bytes maximum) to an intelligent I/O module from
HPP
Used
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.
Listed below are the steps to program the Read from Intelligent module function.
Step 1: S 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: S Load the number of bytes to be transferred into the first level of the accumulator
stack (maximum of 128 bytes).
Step 3: S Load the intelligent module address which will receive the data into the accumulator.
This parameter must be a HEX value.
Step 4: S 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.
V-memory ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠V
Discrete Bit Flags
SP54
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.
Direct SOFT 5
X1
LD
K0102
LD
LD
K0
WT
V1400
Operand Data Type
On when RX, WX RD, WT instructions are executed with the wrong parameters.
The constant value K0102
specifies the base number
(01) and the base slot
number (02).
The constant value K6
specifies the number of
K6
bytes to be written.
The constant value K0
specifies the starting address
in the intelligent module.
V1400 is the starting location
in the CPU where the specified
data will be written from.
DL05 Micro PLC User Manual, 6th Edition, Rev. D
Chapter 5: Standard RLL Instructions
DL06 Range
See memory map
Description
CPU
V1377
X
X
X
X
}
3
4
1
2
V1400
8
5
6
V1401
7
0
1
9
0
V1402
V1403
X
X
X
X
V1404
X
X
X
X
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
SHFT
PREV
ANDST
3
L
D
SHFT
PREV
ANDST
3
L
D
SHFT
PREV
ANDST
3
T
B
W
SHFT
MLR
1
ANDN
WT
V aaa
aaa
Intelligent Module
Data
{
12
Address 0
34
Address 1
56
Address 2
78
Address 3
90
Address 4
01
Address 5
B
A
A
C
ENT
1
0
0
2
G
ENT
6
A
ENT
0
E
A
A
ENT
4
0
0
5-119
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
13
13
14
14
A
a
b
B
c
C
D
D

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents