Siemens CPU 948 Programming Manual page 430

Simatic s5 s5-155u
Table of Contents

Advertisement

Multiprocessor Communication
Evaluation of the code byte
10 - 26
The first byte in the field of the output parameters (condition code
byte) also indicates whether or not a function has been correctly and
completely executed. This byte contains detailed information about
the cause of termination of a function.
Assuming that at least the pointer to the data field contains a correct
value, this byte is always relevant.
If the function has been executed correctly and completely, all the bits
are cleared (= 0), and all other output parameters are relevant.
If the function is aborted with a warning (bit number 7 = 1), only the
condition code for the transmitting/receiving capacity is relevant,
other output parameters (if they exist) are unchanged.
If the function is aborted owing to an error (bit number 6 = 1) or an
initialization conflict (bit number 5 = 1), all other output parameters
remain unchanged.
The identifiers 'W', 'E' and 'I' indicate the significance of the
numbers.
Apart from this bit-by-bit evaluation, it is also possible to interpret the
whole condition code byte as a fixed point number without sign. If
you interpret the condition code byte as a byte, the groups of numbers
have the following significance:
Table 10-2
Code byte for the communication OBs/number groups
Number group
0
Function executed correctly and completely
33 to 42
Function aborted owing to an initialization
conflict
65 to 73
Function aborted owing to an error
129 to 130
Function aborted owing to a warning
Errors are detected and indicated in the ascending order of the error
numbers. This means that several errors may have occurred although
(currently) only one is indicated. The other errors are then indicated by
further calls.
Significance
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents