Mapping

The Bus Terminals occupy addresses within the process image of the controller. The assignment of process data (input and output data) and parameterization data (control and status bytes) to the control addresses is called mapping. The type of mapping depends on:

The Bus Couplers (BKxxxx, LCxxxx) and Bus Terminal Controllers (BCxxxx, BXxxxx) are supplied with certain default settings. The default setting can be changed with the KS2000 configuration software or with a master configuration software (e.g. TwinCAT System Manager or ComProfibus).

The following tables show the mapping depending on different conditions. For information about the contents of the individual bytes please refer to the pages Process image and Control and status byte.

Compact evaluation

For operation with compact process image, you must configure your Bus Coupler to compact mapping and bit R32.6 of the feature register of the KL5152-0000 (KL5151-0050) must be 1bin.

In this configuration the control bytes are suitable only for process data operation. Register communication is not possible!

Compact evaluation in Intel format

Default mapping for CANopen, CANCAL, DeviceNet, ControlNet, Modbus, RS232 and RS485 coupler

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: no

Motorola format: no

Word alignment: n/a

0

DataIN1 D1

DataIN1 D0

reserved

CB1PD

1

DataIN1 D3

DataIN1 D2

reserved

CB2PD

2

DataIN2 D1

DataIN2 D0

DataOUT D1

DataOUT D0

3

DataIN2 D3

DataIN2 D2

DataOUT D3

DataOUT D2

Compact evaluation in Motorola format

Default mapping for PROFIBUS and Interbus coupler

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: no

Motorola format: yes

Word alignment: n/a

0

DataIN1 D2

DataIN1 D3

CB2PD

reserved

1

DataIN1 D0

DataIN1 D1

CB1PD

reserved

2

DataIN2 D2

DataIN2 D3

DataOUT D2

DataOUT D3

3

DataIN2 D0

DataIN2 D1

DataOUT D0

DataOUT D1

Complete evaluation

For operation with complete process image, you must configure your Bus Coupler to complete mapping and bit R32.6 of the feature register of the KL5151-0050 must be 0bin.

In this configuration you can use the control and status bytes alternatively for register communication or process data operation.

Complete evaluation in Intel format

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: no

Word alignment: no

0

DataIN1 D0

SB1

DataOUT1 D0

CB1

1

DataIN1 D2

DataIN1 D1

DataOUT1 D2

DataOUT1 D1

2

SB2

DataIN1 D3

CB2

DataOUT1 D3

3

DataIN2 D1

DataIN2 D0

DataOUT2 D1

DataOUT2 D0

4

DataIN2 D3

DataIN2 D2

DataOUT2 D3

DataOUT2 D2

Complete evaluation in Motorola format

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: yes

Word alignment: no

0

DataIN1 D3

SB1

DataOUT1 D3

CB1

1

DataIN1 D1

DataIN1 D2

DataOUT1 D1

DataOUT1 D2

2

SB2

DataIN1 D0

CB2

DataOUT1 D0

3

DataIN2 D2

DataIN2 D3

DataOUT2 D2

DataOUT2 D3

4

DataIN2 D0

DataIN2 D1

DataOUT2 D0

DataOUT2 D1

Complete evaluation in Intel format with word alignment

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: no

Word alignment: yes

0

reserved

SB1

reserved

CB1

1

DataIN1 D1

DataIN1 D0

DataOUT1 D1

DataOUT1 D0

2

DataIN1 D3

DataIN1 D2

DataOUT1 D3

DataOUT1 D2

3

reserved

SB2

reserved

CB2

4

DataIN2 D1

DataIN2 D0

DataOUT2 D1

DataOUT2 D0

5

DataIN2 D3

DataIN2 D2

DataOUT2 D3

DataOUT2 D2

Complete evaluation in Motorola format with word alignment

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: yes

Word alignment: yes

0

reserved

SB1

reserved

CB1

1

DataIN1 D2

DataIN1 D3

DataOUT1 D2

DataOUT1 D3

2

DataIN1 D0

DataIN1 D1

DataOUT1 D0

DataOUT1 D1

3

reserved

SB2

reserved

CB2

4

DataIN2 D2

DataIN2 D3

DataOUT2 D2

DataOUT2 D3

5

DataIN2 D0

DataIN2 D1

DataOUT2 D0

DataOUT2 D1

Compact process image on Bus Coupler that is set to complete process image

If the KL5152-0000 (KL5151-0050) is operated on a Bus Coupler that is set by default to complete process image (e.g. Lightbus), but bit R32.6 of the feature register is 1bin (default setting), the following process image results:

In this configuration you have different control and status bytes for register communication and process data operation. These are only suitable for the respectively specified purpose!

Intel format

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: no

Word alignment: no

0

DataIN1 D0

SB1RC

CB1PD

CB1RC

1

DataIN1 D2

DataIN1 D1

CB2PD

reserved

2

SB2RC

DataIN1 D3

CB2RC

reserved

3

DataIN2 D1

DataIN2 D0

DataOUT D1

DataOUT D0

4

DataIN2 D3

DataIN2 D2

DataOUT D3

DataOUT D2

Motorola format

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: yes

Word alignment: no

0

DataIN1 D3

SB1RC

reserved

CB1RC

1

DataIN1 D1

DataIN1 D2

reserved

CB2PD

2

SB2RC

DataIN1 D0

CB2RC

CB1PD

3

DataIN2 D2

DataIN2 D3

DataOUT D2

DataOUT D3

4

DataIN2 D0

DataIN2 D1

DataOUT D0

DataOUT D1

Intel format with word alignment

Default mapping for Lightbus, EtherCAT and Ethernet coupler as well as Bus Terminal Controllers (BCxxxx, BXxxxx)

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: no

Word alignment: yes

0

reserved

SB1RC

reserved

CB1RC

1

DataIN1 D1

DataIN1 D0

reserved

CB1PD

2

DataIN1 D3

DataIN1 D2

reserved

CB2PD

3

reserved

SB2RC

reserved

CB2RC

4

DataIN2 D1

DataIN2 D0

DataOUT D1

DataOUT D0

5

DataIN2 D3

DataIN2 D2

DataOUT D3

DataOUT D2

Motorola format with word alignment

Parameterization
of the Bus Coupler

Address

Input data

Output data

Word offset

High byte

Low byte

High byte

Low byte

Complete evaluation: yes

Motorola format: yes

Word alignment: yes

0

reserved

SB1RC

reserved

CB1RC

1

DataIN1 D2

DataIN1 D3

CB2PD

reserved

2

DataIN1 D0

DataIN1 D1

CB1PD

reserved

3

reserved

SB2RC

reserved

CB2RC

4

DataIN2 D2

DataIN2 D3

DataOUT D2

DataOUT D3

5

DataIN2 D0

DataIN2 D1

DataOUT D0

DataOUT D1

Key

Complete evaluation: In addition to the process data, the control and status bytes are also mapped into the address space.
Motorola format: Motorola or Intel format can be set.
Word alignment: In order for the channel address range to commence at a word boundary, empty bytes are inserted into the process image as appropriate.

SB n: Status byte for channel n (appears in the input process image).
CB n: Control byte for channel n (appears in the output process image).

SB n PD: Status byte for channel n, to be used only for process data operation (appears in the input process image)
CB n PD: Control byte for channel n, to be used only for process data operation (appears in the output process image)

SB n RC: Status byte for channel n, to be used only for register communication (appears in the input process image)
CB n RC: Control byte for channel n, to be used only for register communication (appears in the output process image)

DataIN n D0: Channel n, input double word, lowest significant data byte
DataIN n D1: Channel n, input double word, ...
DataIN n D2: Channel n, input double word, ...
DataIN n D3: Channel n, input double word, highest significant data byte

DataOUT n D0: Channel n, output double word, lowest significant data byte
DataOUT n D1: Channel n, output double word, ...
DataOUT n D2: Channel n, output double word, ...
DataOUT n D3: Channel n, output double word, highest significant data byte

reserved: This byte occupies process data memory, although it has no function.