Memory Access Via Address In Accu 1 - Siemens CPU 948 Programming Manual

Simatic s5 s5-155u
Table of Contents

Advertisement

Memory Access via Address in ACCU 1

9.2
Memory Access via Address in ACCU 1
Application
Operations
9 - 8
The operations listed in this section are suitable primarily for access to
data blocks and other operand areas. You should, however, not access
blocks containing STEP 5 programs (OBs, FBs, PBs and SBs) with
these operations.
To access these areas, you can use various 16 or 32-bit wide registers.
These registers include the accumulators ACCU 1 to ACCU 4 and
other special registers used as resources by the CPU.
Table 9-1
Operations for indirect memory access using registers
Operation
Operand Function
LIR
Register
no.
0 to 15
TIR
Register
no.
0 to 15
LDI
Register
name
TDI
Register
name
The absolute address of the memory word or the first of the two
memory words is located in ACCU 1 in the following representation:
ACCU-1-H
Bit no.
31
0
The following pages explain which registers you can use with the
operations.
Examples explain how to use the operations.
Load the 16-bit register with the content
of a memory word addressed by ACCU 1
(20-bit address).
Load the content of the 16-bit register in
the memory word addressed by ACCU 1
(20-bit address).
Load the 32-bit register with the contents
of the memory words 'n' and 'n+1'
addressed by ACCU 1 (20-bit address).
Load the contents of the 32-bit register in
the memory words 'n' and 'n+1' addressed
by ACCU 1 (20-bit address).
20 19
16 15
Address bits
Address bits 0 to 15
16 to 19
CPU 948 Programming Guide
C79000-G8576-C848-04
ACCU-1-L

Advertisement

Table of Contents
loading

Table of Contents