Siemens CPU 948 Programming Manual page 95

Simatic s5 s5-155u
Table of Contents

Advertisement

Examples of load and
transfer operations
Example 1:
Fig. 3-6 illustrates loading/transferring a byte, word or double word
from/to a memory area organized in
:L IB i
load byte i of the PII into ACCU-1-LL
:L IW j
load bytes j and j+1 of the PII into ACCU-1-L
:L FD k
load flag bytes k to k+3 in ACCU 1
7
Addresses
in
ascending
order
j + 1
k
k + 1
k + 2
k + 3
Fig. 3-6
Load and transfer operations in a byte-oriented memory area
CPU 948 Programming Guide
C79000-G8576-C848-04
bytes (PII, PIQ, flags, I/O).
0
31
0
i
31
0
j
31
k
1)
only with load operations
23
15
1)
1)
1)
0
0
23
15
1)
1)
0
j
23
15
k+1
k+2
Basic Operations
7
0
i
ACCU 1
L IB i
T IB i
7
0
j+1
ACCU 1
L IW j
T IW j
7
0
k+3
ACCU 1
L FD k
T FD k
3 - 23

Advertisement

Table of Contents
loading

Table of Contents