KL6201/KL6211 at PROFIBUS couplers

Chapter overview

This chapter comprises the following sections:

Selecting the size of the process image

The size of the process image of the AS-i master terminal can be set to 6, 12, 22 or 38 bytes. In the PROFIBUS couplers (BK3120, BK3150, BK3500, BK3520) the process image is selected by selecting the corresponding modules in the DP configuration. This is done automatically by the Bus Coupler.

KL6201/KL6211 at PROFIBUS couplers 1:

Process Images

If the 22-byte or 38-byte process image is to be used under PROFIBUS, the Bus Coupler may require a particular firmware version (see chapter Firmware version of the Bus Coupler). The delivered firmware version is shown on the back of the Bus Coupler (see example below). If required, the firmware can be updated via the serial interface (KS2000 cable required) or via the PROFIBUS (using the FC3101 fieldbus card, if firmware version B8 is already loaded on the Bus Coupler).
The current firmware versions and the program for the firmware update can be found at http://www.beckhoff.de. BK3120 devices with KL6201/KL6211 are supported in TwinCAT from version 2.8 (build 739).

KL6201/KL6211 at PROFIBUS couplers 2:
Specification of the firmware version of the BK3120 PROFIBUS coupler

6-byte process image

Bytes 0 to 5 contain the parameter data block, bytes 6 to 11 contain the process data block. The following DP modules are available:

DP module

Hex code

Description

KL6201 - PRM PAB 6

0xF2, 0x35

Only the 6 bytes of parameter data block are transferred via DP.

12-byte process image

Bytes 0 to 5 contain the parameter data block, bytes 6 to 11 contain the process data block. The following DP modules are available:

DP module

Hex code

Description

KL6201 - PRM PAB 6

0xF2, 0x35

The full 12 bytes are transferred via DP (parameter data block and process data block)

KL6201 - PAB 6

0x35

Only the 6 bytes of the process data block are transferred. Parameter access only via DPV1.

22-byte process image

Bytes 0 to 5 contain the parameter data block, bytes 6 to 21 contain the process data block. The following DP modules are available:

DP module

Hex code

Description

KL6201 - PRM PAB 16

0xF2, 0x3F

The parameter data block and the process data block are transferred.

KL6201 - PAB 16

0x3F

Only the process data block is transferred. Parameter access only via DPV1.

38-byte process image

Bytes 0 to 5 contain the parameter data block, bytes 6 to 37 contain the process data block. The following DP modules are available:

DP module

Hex code

Description

KL6201 - PRM PAB 32

0xF2, 0xC0, 0x1F

The parameter data block and the process data block are transferred.

KL6201 - PAB 32

0xC0, 0x1F

Only the process data block is transferred. Parameter access only via DPV1.

Mapping of the process data

With PROFIBUS, the process data are mapped linearly to the process image, i.e. the process image interface of the KL6201/KL6211 is located in the process image of the PROFIBUS master in the order as described.

Parameter access via DPV1

The parameters of the AS-i master terminal can be accessed via DPV1. The position of the terminal in the Terminal Bus should be specified as the slot number. The first non-digital terminal after the Bus Coupler is allocated slot number 1, the second non-digital terminal slot number 2, etc.

The parameters are addressed via the index. Up to 8 parameters are addressed as a group, i.e. the index is calculated from the parameter number divided by 8. Any length can be specified for reading (DPV1 read) of parameters. For writing (DPV1 write), parameters have to be specified as double words (length must be divisible by 4), or as 8 bytes for masked writing (length must by divisible by 8).

DPV1 Read

The following parameter can be read via DPV1:

Index

AS-i parameters

Length

Description

0x05

0x28

4 bytes

General Information
(byte 0 corresponds to bit 0 to 7 of parameter 0x28)

0x08

0x40 to 0x47

32 bytes

Projected I/O IDs of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x40)

0x09

0x48 to 0x4F

32 bytes

Projected ID codes of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x48)

0x0A

0x50 to 0x57

32 bytes

Activation parameters for the AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x50)

0x0B

0x58 to 0x59

8 bytes

List of the AS-i slaves that are projected at the next start
(byte 0 corresponds to bit 0 to 7 of parameter 0x58)

0x0C

0x60 to 0x61

8 bytes

List of I/O IDs of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x60)

0x0D

0x68 to 0x69

8 bytes

List of ID codes of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x68)

0x0E

0x70 to 0x71

8 bytes

List of extended ID codes 1 of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x70)

0x0F

0x78 to 0x79

8 bytes

List of extended ID codes 2 of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x78)

0x10

0x80 to 0x87

32 bytes

Digital inputs of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x80)

0x12

0x90 to 0x97

32 bytes

Read I/O IDs of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x90)

0x13

0x98 to 0x9F

32 bytes

Read ID codes of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x98)

0x14

0xA0 to 0xA7

32 bytes

Read status of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xA0)

0x15

0xA8 to 0xA9

8 bytes

List of currently projected AS-i slaves (LPS)
(byte 0 corresponds to bit 0 to 7 of parameter 0xA8)

0x16

0xB0 to 0xB1

8 bytes

List of detected AS-i slaves (LDS)
(byte 0 corresponds to bit 0 to 7 of parameter 0xB0)

0x17

0xB8 to 0xB9

8 bytes

List of activated AS-i slaves (LAS)
(byte 0 corresponds to bit 0 to 7 of parameter 0xB8)

0x18

0xC0 to 0xC1

8 bytes

List of slaves that support the extended ID codes (ID codes 1 and 2)
(byte 0 corresponds to bit 0 to 7 of parameter 0xC0)

0x19

0xC8

4 bytes

List of slaves that support extended addressing (as B slaves with addresses greater than 32) (byte 0 corresponds to bits 0 to 7 of parameter 0xC8)

0x1A

0xD0 to 0xD7

32 bytes

Read extended ID codes 1 of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xD0)

0x1B

0xD8 to 0xDF

32 bytes

Read extended ID codes 2 of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xD8)

0x1C

0xE0 to 0xE7

32 bytes

Currently projected extended ID codes 1 of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xE0)

0x1D

0xE8 to 0xEF

32 bytes

Currently projected extended ID codes 2 of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xE8)

0x1E

0xF0

4 bytes

List of analog slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xF0)

0x1F

0xF8

4 bytes

List of safety slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0xF8)

0x20

0x100

8 bytes

AS-i command interface, response
(byte 0 corresponds to the response for parameter 0x100)

0x24

0x120 to 0x12F

2 bytes

Startup status (0: no error)

2 bytes

Status of automatic project configuration (0: no error)

0x121 to 0x127

28 bytes

reserved

0x25

0x128 to 0x12F

32 bytes

reserved

0x28

0x140 to 0x147

32 bytes

Physical fault counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x140)

0x29

0x148 to 0x14F

32 bytes

Physical fault counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x148)

0x2A

0x150 to 0x157

32 bytes

Physical fault counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x150)

Index

AS-i parameters

Length

Description

0x2B

0x158 to 0x15F

32 bytes

Physical fault counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x158)

0x2C

0x160 to 0x167

32 bytes

Timeout counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x160)

0x2D

0x168 to 0x16F

32 bytes

Timeout counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x168)

0x2E

0x170 to 0x177

32 bytes

Timeout counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x170)

0x2F

0x178 to 0x17F

32 bytes

Timeout counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x178)

0x30

0x180 to 0x187

32 bytes

Response counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x180)

0x31

0x188 to 0x18F

32 bytes

Response counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x188)

0x32

0x190 to 0x197

32 bytes

Response counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x190)

0x33

0x198 to 0x19F

32 bytes

Response counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x198)

0x34

0x1A0 to 0x1A7

32 bytes

Leave DataExch counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x1A0)

0x35

0x1A8 to 0x1AF

32 bytes

Leave DataExch counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x1A8)

0x36

0x1B0 to 0x1B7

32 bytes

Leave DataExch counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x1B0)

0x37

0x1B8 to 0x1BF

32 bytes

Leave DataExch counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x1B8)

0x38

0x1C0 to 0x1C7

32 bytes

DataExch failed counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x1C0)

0x39

0x1C8 to 0x1CF

32 bytes

DataExch failed counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x1C8)

0x3A

0x1D0 to 0x1D7

32 bytes

DataExch failed counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x1D0)

0x3B

0x1D8 to 0x1DF

32 bytes

DataExch failed counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x1D8)

0x40

0x200 to 0x207

32 bytes

16 empty bytes and input data of AS-i analog slave 1
(byte 0 corresponds to bit 0 to 7 of parameter 0x200)



see mapping table

0x41

0x208 to 0x20F

32 bytes

Input data, AS-i analog slaves 1 and 2
(byte 0 corresponds to bit 0 to 7 of parameter 0x208)

...

...

...

...

0x4F

0x278 to 0x27F

32 bytes

Input data, AS-i analog slaves 30 and 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x278)

0x60

0x300

4 bytes

Cycle times
(byte 0 corresponds to bit 0 to 7 of parameter 0x300)

0x62

0x310

8 bytes

Statistics
(byte 0 corresponds to bit 0 to 7 of parameter 0x310)

0x64

0x320 to 0x327

32 bytes

Timeout statistics, AS-i slave 0 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x320)

0x65

0x328 to 0x32F

32 bytes

Timeout statistics, AS-i slave 32 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x328)

0x68

0x340 to 0x347

32 bytes

Data exchange repeat counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x340)

0x69

0x348 to 0x34F

32 bytes

Data exchange repeat counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x348)

0x6A

0x350 to 0x357

32 bytes

Data exchange repeat counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x350)

0x6B

0x358 to 0x35F

32 bytes

Data exchange repeat counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x358)

DPV1 Write (normal write)

The following parameters can be written via DPV1:

Index

AS-i parameters

Length

Description

0x08

0x40 to 0x47

32 bytes

Projected I/O IDs of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x40)

0x09

0x48 to 0x4F

32 bytes

Projected ID codes of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x48)

0x0A

0x50 to 0x57

32 bytes

Activation parameters for the AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x50)

0x0B

0x58 to 0x59

8 bytes

List of the AS-i slaves that are projected at the next start
(byte 0 corresponds to bit 0 to 7 of parameter 0x58)

0x0C

0x60 to 0x61

8 bytes

List of I/O IDs of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x60)

0x0D

0x68 to 0x69

8 bytes

List of ID codes of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x68)

0x0E

0x70 to 0x71

8 bytes

List of extended ID codes 1 of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x70)

0x0F

0x78 to 0x79

8 bytes

List of extended ID codes 2 of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0x78)

0x10

0x80 to 0x87

32 bytes

Digital outputs of all AS-i slaves
(byte 0 corresponds to bit 0 to 7 of parameter 0x80)

0x1C

0xE0 to 0xE7

32 bytes

List of extended ID codes 1 of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0xE0)

0x1D

0xE8 to 0xEF

32 bytes

List of extended ID codes 2 of all AS-i slaves to be checked
(byte 0 corresponds to bit 0 to 7 of parameter 0xE8)

0x20

0x100

4 bytes

AS-i command interface, request
(byte 0 corresponds to the task for parameter 0x100)

0x21

0x108

4 bytes

General command interface
(byte 0 corresponds to bit 0 to 7 of parameter 0x108)

0x28

0x140 to 0x147

32 bytes

Physical fault counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x140)

0x29

0x148 to 0x14F

32 bytes

Physical fault counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x148)

0x2A

0x150 to 0x157

32 bytes

Physical fault counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x150)

0x2B

0x158 to 0x15F

32 bytes

Physical fault counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x158)

0x2C

0x160 to 0x167

32 bytes

Timeout counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x160)

0x2D

0x168 to 0x16F

32 bytes

Timeout counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x168)

0x2E

0x170 to 0x177

32 bytes

Timeout counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x170)

0x2F

0x178 to 0x17F

32 bytes

Timeout counter, AS-i slave 48 to 4F
(byte 0 corresponds to bit 0 to 7 of parameter 0x178)

0x30

0x180 to 0x187

32 bytes

Response counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x180)

0x31

0x188 to 0x18F

32 bytes

Response counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x188)

0x32

0x190 to 0x197

32 bytes

Response counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x190)

0x33

0x198 to 0x19F

32 bytes

Response counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x198)

0x34

0x1A0 to 0x1A7

32 bytes

Leave DataExch counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x1A0)

0x35

0x1A8 to 0x1AF

32 bytes

Leave DataExch counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x1A8)

0x36

0x1B0 to 0x1B7

32 bytes

Leave DataExch counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x1B0)

0x37

0x1B8 to 0x1BF

32 bytes

Leave DataExch counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x1B8)

0x38

0x1C0 to 0x1C7

32 bytes

DataExch failed counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x1C0)

0x39

0x1C8 to 0x1CF

32 bytes

DataExch failed counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x1C8)

Index

AS-i parameters

Length

Description

0x3A

0x1D0 to 0x1D7

32 bytes

DataExch failed counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x1D0)

0x3B

0x1D8 to 0x1DF

32 bytes

DataExch failed counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x1D8)

0x40

0x200 to 0x207

32 bytes

16 empty bytes and output data of AS-i analog slave 1
(byte 0 corresponds to bit 0 to 7 of parameter 0x200)




see mapping table

0x41

0x208 to 0x20F

32 bytes

Output data, AS-i analog slaves 1 and 2
(byte 0 corresponds to bit 0 to 7 of parameter 0x208)

...

...

...

...

0x4F

0x278 to 0x27F

32 bytes

Output data, AS-i analog slaves 30 and 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x278)

0x60

0x300

4 bytes

Cycle times
(byte 0 corresponds to bit 0 to 7 of parameter 0x300)

0x62

0x310

8 bytes

Statistics
(byte 0 corresponds to bit 0 to 7 of parameter 0x310)

0x64

0x320 to 0x327

32 bytes

Timeout statistics, AS-i slave 0 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x320)

0x65

0x328 to 0x32F

32 bytes

Timeout statistics, AS-i slave 32 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x328)

0x68

0x340 to 0x347

32 bytes

Data exchange repeat counter, AS-i slave 0 to 15
(byte 0 corresponds to bit 0 to 7 of parameter 0x340)

0x69

0x348 to 0x34F

32 bytes

Data exchange repeat counter, AS-i slave 16 to 31
(byte 0 corresponds to bit 0 to 7 of parameter 0x348)

0x6A

0x350 to 0x357

32 bytes

Data exchange repeat counter, AS-i slave 32 to 47
(byte 0 corresponds to bit 0 to 7 of parameter 0x350)

0x6B

0x358 to 0x35F

32 bytes

Data exchange repeat counter, AS-i slave 48 to 63
(byte 0 corresponds to bit 0 to 7 of parameter 0x358)