Siemens SIMATIC S5-115U User Manual page 393

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

S5-115U Manual
Length Word:
In the length word, the SEND and RECEIVE data handling blocks enter the amount of data (in
bytes) already transferred for a particular job. For the ALL functions, the SEND and RECEIVE blocks
enter the job number for which they were active in the current pass in the low-order byte. Job
number "0" (empty run) means that no job was processed. Table 11-8 shows how the length word
is acted upon.
Set by
HTB/SEND, RECEIVE
(during data exchange)
The contents are calculated
from the current number of
transfers plus the quantity of
(blocked) data already
exchanged.
"Parameter Assignment Error" (PAFE) Byte
Only a flag byte is suitable as a condition code byte.
Various parameter assignment errors are reported in the PAFE byte (in the high-order tetrad).
When assigning parameters, specify the address under which this information can be accessed.
Figure 11-2 describes the individual bits.
7
0
No error
1
Incorrect ORG format, QTYP/ZTYP illegal (PLC or CP)
2
Area not available (no DB or illegal DB)
3
Area too small
4
Time-out (QVZ)/no access possible
5
Wrong job status word
6
No source or destination parameters for SEND/RECEIVE ALL (system error)
7
No such interface
8
Interface not ready
9
Interface overloaded
A
Unassigned
B
Illegal A-NR
C
No acknowledgement or negative acknowledgement from the interface (CP)
D
Parameter/BLGR illegal (first byte)
E
Unassigned
F
Unassigned
EWA 4NEB 811 6130-02b
Table 11-8. Accessing the Length Word
Reset/
Overwritten by
HTB/SEND, RECEIVE
FETCH by over-
writing during the
next job.
0
Figure 11-2. Format of the "PAFE" Byte
Evaluated by
User
(If bit 2, 5, or 6 is set in the job status
word, the current source or
destination length is in the length
word. If bit 3 is set, the length word
contains the amount of data
transferred prior to detection of an
error).
Bit No.
1
Error
0
No error
Integral Blocks
11-19

Advertisement

Table of Contents
loading

Table of Contents