Load And Transfer Operations - Siemens SIMATIC S5-115U User Manual

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

STEP 5 Operations
8.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 8-27 provides an overview of the load and transfer operations.
Table 8-27. Overview of Load and Transfer Operations
Operation
Operand
LIR
TIR
LDI
TDI
Code
A1 (for ACCUM 1)
A2 (for ACCUM 2)
TNB
T
ID
RS
8-66
Load the register indirectly
The contents of a memory word are loaded into the specified
register (ACCUM 1, 2). The address is in ACCUM 1.
Transfer the register indirectly
The contents of the indicated register are transferred to a
memory location. The address is in ACCUM 1.
Parameter
0 (for ACCUM 1), 2 (for ACCUM 2)
Load register indirect
The contents of a memory word, whose address is in ACCUM 1,
are loaded into the specified accumulator (ACCUM 1, 2) (access
to the second memory bank; CPU 944 only).
Transfer register indirect
The accumulator specified (ACCUM 1, 2) is transferred to a
memory location, whose address is in ACCUM 1, (access to the
second memory bank; CPU 944 only).
Transfer a data block (byte by byte)
A memory area is transferred in the program memory as a block.
End address destination area:
End address source area:
Transfer
A word is transferred to the system data range.
Parameter
0 to 255
S5-115U Manual
Meaning
ACCUM 1
ACCUM 2
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents