Control technology | profibus communication manual – Lenze PROFIBU PC-based Automation User Manual

Page 42

Advertising
background image

Control technology | PROFIBUS communication manual

Function libraries

BusDiag.lib function library

42

L

DMS 2.2 EN 07/2011 TD17

Example: Diagnostics information of Servo Drives 9400 in ’EXTENDEDINFO’

EXTENDEDINFO

ARRAY [0...129]

OF BYTE

Contains the slave-specific diagnostics information.

Byte 0 Station status 1
Byte 1 Station status 2
Byte 2 Station status 3
Byte 3 Master station number
Byte 4 Manufacturer's identification mark (high byte)
Byte 5 Manufacturer's identification mark (low byte)

Byte 6 ... n Slave-specific diagnostics information (see documentation of the

slave)

Byte in

EXTENDEDINFO

Meaning

6

Bit 0: Station does not exist (set by the master).

Bit 1: Slave is not ready for data exchange.

Bit 2: Configuration data do not match each other.

Bit 3: Slave has extended diagnostic data.

Bit 4: Requested service is not supported by the slave.

Bit 5: Slave response is invalid (set by the master)

Bit 6: Incorrect parameter setting

Bit 7: Slave is parameterised by another master (set by the master).

7

Bit 0: Slave has to be parameterised again.

Bit 1: Static diagnostics

Bit 2: Fixedly set to "1".

Bit 3: Watchdog active

Bit 4: Freeze command received.

Bit 5: Sync command received.

Bit 6: Reserved

Bit 7: Slave is deactivated (set by the master).

8

Bit 7: Diagnostics overflow - amount of diagnostics data present in the slave is too large to fit

into one telegram.

9

Bits 0 ... 7: Master address after parameter setting ("0xFF" without parameterisation)

10

Bits 0 ... 7: ID number (high byte)

11

Bits 0 ... 7: ID number (low byte)

12

Header

• The header contains the block length of extended diagnostics and the header byte.

• In this case, the value of the entry is "0x0A" (bytes 6 ... 15 = 10 bytes).

13

Status_Type

• The value of this entry is fixed. For the following bit assignment it is "0x81":

–Bit 7 = 1: "status"

–Bit 0 = 1: "status message"

–Values of all other bits = 0

14

Slot_Number

• Value of the slot number: "0x00"

15

Specifier

• A detected error is entered in the specifier with the identification "0x0" (status coming).

• An eliminated error is entered in the specifier with the identification "0x02" (status going).

• If no errors are indicated, the entry in the specifier has the value "0x00" (no further

differentiation).

16

PROFIsafe, error number of the safety module

• If an error occurs in the safety module, byte 10 (low byte) and byte 11 (high byte) contain the

corresponding error number.

• More information can be found in the documentation of the corresponding safety module.

17

Identifier/data type

Meaning/possible settings

Advertising