Siemens SIMATIC S5-95F Manual page 245

Table of Contents

Advertisement

S5-95F
Restrictions for the LIR, TIR and TNB Operations
Command
LIR
TIR
TNB
Processing a Field Transfer
A field transfer is processed independently of the RLO.
The parameter indicates the length of the data field (in bytes) that is to be transferred. The field can
be up to 255 bytes long.
The address of the source field is in ACCU 2. The address of the destination field is in ACCU 1.
The higher address of each field must be specified because a field transfer takes place by
decrementing. The bytes in the destination field are overwritten during the transfer.
Example
Transfer a 12-byte
data field (address
FOA2
to FO97
H
H
flag area FY11 ... FY0
(address from
610B
to 6100
.
H
H)
STL
:L
KH
F0A2
:L
KH
610B
:TNB
12
EWA 4NEB 812 6210-02
The following address areas must not be accessed:
4F00
... 4FFF
H
H
5900
... 5C7F
H
H
6400
... 65FF
H
H
7000
... 73FF
H
H
8000
... FFFF
H
H
Access permitted only to flag area and open data blocks
For all source bytes: same restrictions as LIR
For all destination bytes: same restriction as TIR
) to
Load the end address of the source field into ACCU 1.
Load the end adress of the destination field into ACCU 1. The
source address is shifted to ACCU 2.
Transfer the data field to the destination field.
Restriction
Representation
6100
Destination
(flag area)
610B
.
.
.
.
.
.
F097
Source
F0A2
Explanation
STEP 5 Operations
TNB
8-65

Advertisement

Table of Contents
loading

Table of Contents