Load And Transfer Operations - Siemens SIMATIC S5 Manual

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

STEP 5 Operations
3.3.2

Load and Transfer Operations

Use these load and transfer operations to address the entire program memory of the CPU. They
are used mainly for data exchange between the accumulator and memory locations that cannot
be addressed by operands. Table 3-27 provides an overview of the load and transfer operations.
Note
Load and transfer operations may only access memory area B000
TNB).
Table 3-27. Overview of Load and Transfer Operations
Operation
Operand
LIR
TIR
TNB
T
ID
BS
(System data)
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-115F 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.
Consequently, make sure that the desired address is stored in ACCUM 1 before this system
operation is processed.
3-66
Load the register indirectly.
The contents of the memory word whose address is in ACCUM 1 are
loaded into the specified register.
Transfer the register indirectly.
The contents of the indicated register are transferred to the
memory location whose address is in ACCUM 1.
Parameter
0 (for ACCUM 1), 2 (for ACCUM 2)
Transfer a data block (byte by byte).
A memory area is transferred in the program memory as a block:
ACCUM 1
ACCUM 2
Parameter
Transfer
A word is transferred to the system data range.
Parameter = Word No. in system data area.
Parameter
0 to 255
Meaning
=
Destination address
=
Source address
=
Length in bytes
S5-115F Manual
to C3FF
(LIR, TIR,
H
H
EWA 4NEB 811 6149-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents