Load And Transfer Operations - Siemens SIMATIC S5-95F Manual

Table of Contents

Advertisement

STEP 5 Operations
8.3.2

Load and Transfer Operations

Use these load and transfer operations to address the entire program memory of the programmable
controller. They are used mainly for data exchange between the accumulator and memory locations
that cannot be addressed by operands. Table 8-27 provides an overview of the load and transfer
operations.
Table 8-27. Overview of Load and Transfer Operations
Operation
Operand
LIR
TIR
TNB
T
ID
RS
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 registers are addressed in pairs.
Loading and transferring register contents are independent of the RLO. The processor goes to
ACCU 1 to get the address of the memory location referenced during data exchange. Conse-
quently, make sure that the desired address is stored in ACCU 1 before this system operation is
processed.
STL
.
.
L
KH
F100
LIR
0
8-64
Load the register indirectly
The contents of a memory word are loaded into the specified
register (ACCU 1, 2). The address is in ACCU 1.
Transfer the register indirectly
The contents of the indicated register are transferred to a memory
location. The address is in ACCU 1.
Parameter
0 (for ACCU 1), 2 (for ACCU 2)
Transfer a data field (byte-by-byte)
A memory area is transferred in the program memory as a field.
End address destination area:
End address source area:
Transfer
A word is transferred to the system data area.
Parameter
0 to 255
Load the address 6100
Load the information from the memory location with the address 6100
ACCU 1.
Meaning
Explanation
into ACCU 1.
H
ACCU 1
ACCU 2
EWA 4NEB 812 6210-02
S5-95F
into
H

Advertisement

Table of Contents
loading

Table of Contents