Control technology | ethercat communication manual – Lenze EtherCAT control technology User Manual

Page 4

Advertising
background image

Control technology | EtherCAT communication manual

4

L

DMS 3.1 EN 01/2011 TD17

7

Commissioning of the system

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

42

7.1

Overview of commissioning steps

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

43

7.2

Detailed commissioning steps

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

45

7.2.1

Planning the bus topology

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

45

7.2.2

Installing field devices

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

45

7.2.3

Creating a project folder

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

46

7.2.4

Determining the physical EtherCAT configuration (fieldbus scan)

. . . . . . . . . . .

47

7.2.5

Configuration in the »Engineer«

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

54

7.2.6

Inserting devices available on the fieldbus into the »EtherCAT Configurator«

project

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

55

7.2.7

Creating the configuration in the »EtherCAT Configurator«

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

56

7.2.8

Configuration in the »PLC Designer«

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

68

7.3

Checking the system startup

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

80

7.3.1

Evaluation of the boot-up error message of the SM_DriveBasic.lib library

. . .

80

7.3.2

Evaluation of the Axis_IO_Group state

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

81

7.3.3

Evaluation of the axis state

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

82

7.4

Typical commissioning scenarios

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

83

7.4.1

Switching on a completely configured system

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

83

7.4.2

Switching on a system with an incomplete configuration

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

85

7.4.3

Updating the PLC application while the EtherCAT configuration remains

unchanged

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

87

7.4.4

Stopping and starting the PLC while the configuration remains unchanged

. 89

7.5

Detailed overview of the commissioning steps

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

90

8

EtherCAT with CANopen or PROFIBUS

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

91

8.1

Addressing the PROFIBUS and CANopen stations

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

92

8.2

Addressing EtherCAT nodes using CANopen/PROFIBUS nodes

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

93

9

EtherCAT function libraries

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

96

9.1

Usability

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

96

9.2

Function blocks/functions required for a »PLC Designer« project (overview)

. . . . . . . .

97

9.3

Properties of function blocks

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

98

9.4

The EC_T_STATE structure

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

98

9.5

Function blocks and functions for master/slave states

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

99

9.5.1

ecatStartAsync (FB)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

9.5.2

ecatStopAsync (FB)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

9.5.3

ecatSetMasterStateAsync (FB)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

9.5.4

ecatSetSlaveStateAsync (FB)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

9.5.5

ecatGetMasterState (FUN)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

9.5.6

ecatGetSlaveState (FUN)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

9.5.7

ecatGetSlaveStateAsync (FB)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

Advertising