Chapter 6: Instructions
137
Instruction
Mnemonic
Store Absolute Address
Range
Bit
■
Word
STO
DSTO
Store Sr in register at absolute
address D, (D)
←
Sr
■
Double words
Ladder
Store the data contained in the Sr register into the register pointed
to by the absolute address contained in register D.
R0 word absolute address: 0 (decimal)
M0 word absolute address: 192 (decimal)
W0 word absolute address: 512 (decimal)
Description
1. This instruction is useful in storing data patterns from a single input register to a sequential
table of registers in memory. For example, if the process measurements (D0 to D99) from an
input module located at address R001 needed to be stored in register addresses W100 through
W199. The STO instruction can be used to load the data from the source register R001 to the
absolute addresses of W100 to W199 (absolute addresses 612 to 711).
2. In the example below, register W0 is used as the D (destination) register, which contains the
absolute address of the locations to store the process measurements. Initially, W0 contains
612, which is the absolute memory address of register W100. As W0 is incremented, it
successively points to the next higher W register to store data.
3. See Chapter 5, Absolute Address Designation, for a complete table of absolute addresses.
Process
Measurement
Register
(Absolute
Address)
Register
Value
D0
W100 (612)
$34
D1
W101 (613)
$25
D2
W102 (614)
$88
L
L
L
L
L
L
D98
W198 (710)
$17
D99
W199 (711)
$09
Store the process
measurement data ($34,
$25, $88,...,$17, $09)
you get from input
module R001 (word) in
sequence into W100-
W199. See the following
example.
R001 Input
Module
STO
Sr =
D =
R
R
DSTO
Sr =
D =
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...