Siemens SIMATIC S5-115U User Manual page 267

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

S5-115U Manual
Loading and Transferring Register Contents
Both accumulators can be addressed as registers. Each register is 16 bits wide. Since the "LIR" and
"TIR" operations transmit data by words, the S5-115U registers are addressed in pairs.
Loading and transferring register contents are independent of the RLO. The processor goes to
ACCUM 1 to get the address of the memory location referenced during data exchange. Conse-
quently, make sure that the desired address is stored in ACCUM 1 before this system operation is
processed.
STL
.
.
L
KH F100
Load the address F100
LIR
0
Load the information from the memory location with the address F100
into ACCUM 1.
Example: Loading the contents of memory locations 1231
bank into ACCUM 2.
Memory location 1231
contains 45
H
Memory location 1232
contains 67
H
STL
L
KH 1231
The constant 1231
LDI
A2
ACCUM 2 contains 4567
locations 1231
Example: Transferring the values 44
second memory bank.
STL
L
KH 4466
The constant 4466
L
KH 1231
ACCUM 1 contains 1231
operation.
TDI
A2
Memory location 1231
1232
EWA 4NEB 811 6130-02b
into ACCUM 1.
H
;
H
.
H
is loaded into ACCUM 1.
H
after this operation, i.e. the contents of memory
H
and 1232
H
H.
and 66
to memory locations 1231
H
H
is loaded into ACCUM 1.
H
and ACCUM 2 contains 4466
H
contains the value 44
H
the value 66
after the transfer operation.
H
H
Explanation
and 1232
in the second memory
H
H
Explanation
Explanation
H
and memory location
H
STEP 5 Operations
H
and 1232
of the
H
H
after this
8-67

Advertisement

Table of Contents
loading

Table of Contents