KL6201/KL6211 at PROFIBUS couplers
Chapter overview
This chapter comprises the following sections:
- Selecting the size of the process image
- Mapping of the process data
- Parameter access via DPV1 services
- DPV1 Read
- DPV1 Write (normal write)
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.
![]() | 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). |

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 | 4 bytes | General Information | |
0x08 | 32 bytes | Projected I/O IDs of all AS-i slaves | |
0x09 | 32 bytes | Projected ID codes of all AS-i slaves | |
0x0A | 32 bytes | Activation parameters for the AS-i slaves | |
0x0B | 8 bytes | List of the AS-i slaves that are projected at the next start | |
0x0C | 8 bytes | List of I/O IDs of all AS-i slaves to be checked | |
0x0D | 8 bytes | List of ID codes of all AS-i slaves to be checked | |
0x0E | 8 bytes | List of extended ID codes 1 of all AS-i slaves to be checked | |
0x0F | 8 bytes | List of extended ID codes 2 of all AS-i slaves to be checked | |
0x10 | 32 bytes | Digital inputs of all AS-i slaves | |
0x12 | 32 bytes | Read I/O IDs of all AS-i slaves | |
0x13 | 32 bytes | Read ID codes of all AS-i slaves | |
0x14 | 32 bytes | Read status of all AS-i slaves | |
0x15 | 8 bytes | List of currently projected AS-i slaves (LPS) | |
0x16 | 8 bytes | List of detected AS-i slaves (LDS) | |
0x17 | 8 bytes | List of activated AS-i slaves (LAS) | |
0x18 | 8 bytes | List of slaves that support the extended ID codes (ID codes 1 and 2) | |
0x19 | 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 |
0x1B | 32 bytes | Read extended ID codes 2 of all AS-i slaves | |
0x1C | 32 bytes | Currently projected extended ID codes 1 of all AS-i slaves | |
0x1D | 32 bytes | Currently projected extended ID codes 2 of all AS-i slaves | |
0x1E | 4 bytes | List of analog slaves | |
0x1F | 4 bytes | List of safety slaves | |
0x20 | 8 bytes | AS-i command interface, response | |
0x24 | 2 bytes | Startup status (0: no error) | |
2 bytes | Status of automatic project configuration (0: no error) | ||
28 bytes | reserved | ||
0x25 | 32 bytes | reserved | |
0x28 | 32 bytes | Physical fault counter, AS-i slave 0 to 15 | |
0x29 | 32 bytes | Physical fault counter, AS-i slave 16 to 31 | |
0x2A | 32 bytes | Physical fault counter, AS-i slave 32 to 47 |
Index | AS-i parameters | Length | Description | |
---|---|---|---|---|
0x2B | 32 bytes | Physical fault counter, AS-i slave 48 to 63 | ||
0x2C | 32 bytes | Timeout counter, AS-i slave 0 to 15 | ||
0x2D | 32 bytes | Timeout counter, AS-i slave 16 to 31 | ||
0x2E | 32 bytes | Timeout counter, AS-i slave 32 to 47 | ||
0x2F | 32 bytes | Timeout counter, AS-i slave 48 to 63 | ||
0x30 | 32 bytes | Response counter, AS-i slave 0 to 15 | ||
0x31 | 32 bytes | Response counter, AS-i slave 16 to 31 | ||
0x32 | 32 bytes | Response counter, AS-i slave 32 to 47 | ||
0x33 | 32 bytes | Response counter, AS-i slave 48 to 63 | ||
0x34 | 32 bytes | Leave DataExch counter, AS-i slave 0 to 15 | ||
0x35 | 32 bytes | Leave DataExch counter, AS-i slave 16 to 31 | ||
0x36 | 32 bytes | Leave DataExch counter, AS-i slave 32 to 47 | ||
0x37 | 32 bytes | Leave DataExch counter, AS-i slave 48 to 63 | ||
0x38 | 32 bytes | DataExch failed counter, AS-i slave 0 to 15 | ||
0x39 | 32 bytes | DataExch failed counter, AS-i slave 16 to 31 | ||
0x3A | 32 bytes | DataExch failed counter, AS-i slave 32 to 47 | ||
0x3B | 32 bytes | DataExch failed counter, AS-i slave 48 to 63 | ||
0x40 | 32 bytes | 16 empty bytes and input data of AS-i analog slave 1 |
| |
0x41 | 32 bytes | Input data, AS-i analog slaves 1 and 2 | ||
... | ... | ... | ... | |
0x4F | 32 bytes | Input data, AS-i analog slaves 30 and 31 | ||
0x60 | 4 bytes | Cycle times | ||
0x62 | 8 bytes | Statistics | ||
0x64 | 32 bytes | Timeout statistics, AS-i slave 0 to 31 | ||
0x65 | 32 bytes | Timeout statistics, AS-i slave 32 to 63 | ||
0x68 | 32 bytes | Data exchange repeat counter, AS-i slave 0 to 15 | ||
0x69 | 32 bytes | Data exchange repeat counter, AS-i slave 16 to 31 | ||
0x6A | 32 bytes | Data exchange repeat counter, AS-i slave 32 to 47 | ||
0x6B | 32 bytes | Data exchange repeat counter, AS-i slave 48 to 63 |
DPV1 Write (normal write)
The following parameters can be written via DPV1:
Index | AS-i parameters | Length | Description |
---|---|---|---|
0x08 | 32 bytes | Projected I/O IDs of all AS-i slaves | |
0x09 | 32 bytes | Projected ID codes of all AS-i slaves | |
0x0A | 32 bytes | Activation parameters for the AS-i slaves | |
0x0B | 8 bytes | List of the AS-i slaves that are projected at the next start | |
0x0C | 8 bytes | List of I/O IDs of all AS-i slaves to be checked | |
0x0D | 8 bytes | List of ID codes of all AS-i slaves to be checked | |
0x0E | 8 bytes | List of extended ID codes 1 of all AS-i slaves to be checked | |
0x0F | 8 bytes | List of extended ID codes 2 of all AS-i slaves to be checked | |
0x10 | 32 bytes | Digital outputs of all AS-i slaves | |
0x1C | 32 bytes | List of extended ID codes 1 of all AS-i slaves to be checked | |
0x1D | 32 bytes | List of extended ID codes 2 of all AS-i slaves to be checked | |
0x20 | 4 bytes | AS-i command interface, request | |
0x21 | 4 bytes | General command interface | |
0x28 | 32 bytes | Physical fault counter, AS-i slave 0 to 15 | |
0x29 | 32 bytes | Physical fault counter, AS-i slave 16 to 31 | |
0x2A | 32 bytes | Physical fault counter, AS-i slave 32 to 47 | |
0x2B | 32 bytes | Physical fault counter, AS-i slave 48 to 63 | |
0x2C | 32 bytes | Timeout counter, AS-i slave 0 to 15 | |
0x2D | 32 bytes | Timeout counter, AS-i slave 16 to 31 | |
0x2E | 32 bytes | Timeout counter, AS-i slave 32 to 47 | |
0x2F | 32 bytes | Timeout counter, AS-i slave 48 to 4F | |
0x30 | 32 bytes | Response counter, AS-i slave 0 to 15 | |
0x31 | 32 bytes | Response counter, AS-i slave 16 to 31 | |
0x32 | 32 bytes | Response counter, AS-i slave 32 to 47 | |
0x33 | 32 bytes | Response counter, AS-i slave 48 to 63 | |
0x34 | 32 bytes | Leave DataExch counter, AS-i slave 0 to 15 | |
0x35 | 32 bytes | Leave DataExch counter, AS-i slave 16 to 31 | |
0x36 | 32 bytes | Leave DataExch counter, AS-i slave 32 to 47 | |
0x37 | 32 bytes | Leave DataExch counter, AS-i slave 48 to 63 | |
0x38 | 32 bytes | DataExch failed counter, AS-i slave 0 to 15 | |
0x39 | 32 bytes | DataExch failed counter, AS-i slave 16 to 31 |
Index | AS-i parameters | Length | Description | |
---|---|---|---|---|
0x3A | 32 bytes | DataExch failed counter, AS-i slave 32 to 47 | ||
0x3B | 32 bytes | DataExch failed counter, AS-i slave 48 to 63 | ||
0x40 | 32 bytes | 16 empty bytes and output data of AS-i analog slave 1 |
| |
0x41 | 32 bytes | Output data, AS-i analog slaves 1 and 2 | ||
... | ... | ... | ... | |
0x4F | 32 bytes | Output data, AS-i analog slaves 30 and 31 | ||
0x60 | 4 bytes | Cycle times | ||
0x62 | 8 bytes | Statistics | ||
0x64 | 32 bytes | Timeout statistics, AS-i slave 0 to 31 | ||
0x65 | 32 bytes | Timeout statistics, AS-i slave 32 to 63 | ||
0x68 | 32 bytes | Data exchange repeat counter, AS-i slave 0 to 15 | ||
0x69 | 32 bytes | Data exchange repeat counter, AS-i slave 16 to 31 | ||
0x6A | 32 bytes | Data exchange repeat counter, AS-i slave 32 to 47 | ||
0x6B | 32 bytes | Data exchange repeat counter, AS-i slave 48 to 63 |