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

Page 4

Advertising
background image

Control technology | PROFIBUS communication manual

4

L

DMS 2.2 EN 07/2011 TD17

8

Function libraries

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38

8.1

BusDiag.lib function library

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

8.1.1

DiagGetBusState function block

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

8.1.2

DiagGetState function block

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

41

8.2

NetXPBInfo.lib function library

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

8.2.1

Structure of NETXGETPBINFOSTYP

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

8.2.2

NetXGetPBInfos function

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45

8.3

HilscherNetX.lib function library

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

46

8.3.1

CIFX_PACKET structure

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

46

8.3.2

CIFX_PACKET_HEADER structure

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47

8.3.3

CIFXGetChannelHandle function

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

8.3.4

CIFXPutPacket function

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

8.3.5

CIFXGetPacket function

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

49

8.4

SysLibDPV1Hilscher.lib function library

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

8.4.1

V1State structure

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

8.4.2

DPV1_Read / DPV1_ReadEx function block

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

51

8.4.3

DPV1_Write / DPV1_WriteEx function block

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

8.4.4

Telegram examples of the PROFIdrive parameter data channel (DP-V1)

. . . . .

53

9

Defining the minimum cycle time of the PLC project

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

57

9.1

Calculating the total access time to the peripheral devices (T

Correction

)

. . . . . . . . . . . . .

57

9.2

Detecting the task utilisation of the application (T

Task utilisation

)

. . . . . . . . . . . . . . . . . . . .

58

9.2.1

Display of the system utilisation in the »PLC Designer« with the task editor

. 58

9.2.2

Detecting the task utilisation

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

59

9.3

Calculating the minimum cycle time

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

60

9.4

Optimising the system

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

61

10

Diagnostics

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

62

10.1

Diagnostics in the »PLC Designer«

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

62

10.2

Error messages if communication card MC-PBM is not available

. . . . . . . . . . . . . . . . . . .

62

10.3

LED status displays

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

63

11

Parameter reference

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

64

11.1

Parameters of the MC-PBM communication card in slot 1

. . . . . . . . . . . . . . . . . . . . . . . . .

65

11.2

Parameters of the MC-PBM communication card in slot 2

. . . . . . . . . . . . . . . . . . . . . . . . .

66

12

Index

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

Advertising