
Manual VIPA System 300S SPEED7
Chapter 5 Deployment I/O periphery
HB140E - CPU SC - RE_313-6CF03 - Rev. 07/45
5-33
Every OB 82 call causes an entry in the diagnostic buffer of the CPU
containing error cause and module address.
By using the SFC 59 you may read the diagnostic bytes.
At de-activated diagnostic interrupt you have access to the last recent
diagnostic event.
If you've activated the diagnostic function in your hardware configuration,
the contents of record set 0 are already in the local double word 8 when
calling the OB 82. The SFC 59 allows you to also read the record set 1 that
contains additional information.
After leaving the OB 82 a clear assignment of the data to the last
diagnostic interrupt is not longer possible.
The record sets of the diagnostic range have the following structure:
Byte
Bit 7 ... 0
0
Bit 0: set at module failure
Bit 1: 0 (fix)
Bit 2: set at external error
Bit 3: set at channel error
Bit 4: set when external auxiliary supply is missing
Bit 7 ... 5: 0 (fix)
1
Bit 3 ... 0: Module class
0101b:
Analog
1111b:
Digital
Bit 4: Channel information present
Bit 7 ... 5: 0 (fix)
2
Bit 3 ... 0: 0 (fix)
Bit 4: Failure module internal supply voltage
(output
overload)
Bit 7 ... 5: 0 (fix)
3
Bit 5 ... 0: 0 (fix)
Bit 6: Hardware interrupt lost
Bit 7: 0 (fix)
After the removing error a diagnostic message
going
takes place if the
diagnostic interrupt release is still active.
Record set 0 (Byte 0 to 3):
Byte
Bit 7 ... 0
0
Bit 0: set at module failure
Bit 1: 0 (fix)
Bit 2: set at external error
Bit 3: set at channel error
Bit 4: set when external auxiliary supply is missing
Bit 7 ... 5: 0 (fix)
1
Bit 3 ... 0: Module class
0101b:
Analog
module
1111b:
Digital
Bit 4: Channel information present
Bit 7 ... 5: 0 (fix)
2 00h
(fix)
3 00h
(fix)
Diagnostic interrupt
processing
Record set 0
Diagnostic
incoming
Record set 0
Diagnostic
going
Summary of Contents for 313-6CF03
Page 2: ...Lerrzeichen ...