beautypg.com

Profibus communication – Lenze I/O system 1000 System Manual User Manual

Page 422

background image

PROFIBUS communication

Parameterising the temperature measurement
Four (two) analog inputs for resistance tests − EPM−S404

9

l

422

EDSIO1000 EN 7.0

Diagnostic alarm processing:

Using SFB 52 you can read out the diagnostic bytes. If the diagnostic alarm is deactivated,
you can access the last diagnostic event in each case.

If you have activated the diagnostic function in your hardware configuration, OB 82 is
called automatically. Here you can react on the diagnostics accordingly. With the SFB 52
you can additionally read out data set 1 which contains further information.

After exiting OB 82, the data ca no longer be clearly assigned to the last diagnostic alarm.

Data set 1 is structured as follows:

Data set 1, diagnostics

incoming

Byte

Bit 7 ... 0

0

Bit 0: Set if module fault
Bit 1: 0 (fixed)
Bit 2: Set in the case of an external error
Bit 3: Set in the case of a channel error
Bit 6 ... 4: 0 (fixed)
Bit 7: Parameterisation error

1

Bit 3 ... 0: Module class, 1000

b

: function module

Bit 4: Channel information available
Bit 7 ... 5: 0 (fixed)

2

0 (fixed)

3

Bit 5 ... 0: 0 (fixed)
Bit 6: Process alarm lost
Bit 7: 0 (fixed)

4

Bit 6 ... 0: Channel type, 76h: counter module
Bit 7: Further channel types available, 0: no, 1: yes

5

Number of diagnostic bits output by the module per channel (here 08

h

)

6

Number of channels of a module (here 01

h

)

7

Bit 0: Error in channel group 0 (counter)
Bit 7 ... 1: 0 (fixed)

8

Diagnostic alarm due to process alarm lost to ...
Bit 0: Hardware gate open
Bit 1: Hardware gate closed
Bit 2: Overflow/underflow/final value
Bit 3: Comparison value reached
Bit 4: Latch value
Bit 7 ... 5: 0 (fixed)

9 ... 15

0 (fixed)

Data set 1, diagnostics

outgoing

After the error recovery a diagnostic message

outgoing is effected