KL3132, KL3142, KL3152, KL3162, KL3172, KL3182 - Mapping

BECKHOFF KL31x2

 
BECKHOFF KL3132, KL3142, KL3152, KL3162, KL3172, KL3182: Access from the user program

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 fieldbus system used

  • the terminal type

  • the parameterization of the bus coupler (conditions) such as
    - compact or full evaluation
    - Intel or Motorola format
    - word alignment switched on or off

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 compact evaluation, the analog input terminals only occupy addresses in the input process image. Control and status bytes cannot be accessed.

Compact evaluation in Intel format

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

  Address Input data Output data
Conditions Word offset High byte Low byte High byte Low byte

Complete evaluation: no
Motorola format: no
Word alignment: any

0 Ch1 D1 Ch1 D0 - -
1 Ch2 D1 Ch2 D0 - -

Compact evaluation in Motorola format

Default mapping for PROFIBUS and Interbus coupler

  Address Input data Output data
Conditions Word offset High byte Low byte High byte Low byte

Complete evaluation: no
Motorola format: yes
Word alignment: any

0 Ch1 D0 Ch1 D1 - -
1 Ch2 D0 Ch2 D1 - -

Complete evaluation

For complete evaluation, the analog input terminals occupy addresses in the input and output process image. Control and status bytes can be accessed.

Complete evaluation in Intel format

  Address Input data Output data
Conditions Word offset High byte Low byte High byte Low byte

Complete evaluation: yes
Motorola format: no
Word alignment: no

0 Ch1 D0 SB1 Ch1 D0 CB1
1 SB2 Ch1 D1 CB2 Ch1 D1
2 Ch2 D1 Ch2 D0 Ch2 D1 Ch2 D0

Complete evaluation in Motorola format

  Address Input data Output data
Conditions Word offset High byte Low byte High byte Low byte

Complete evaluation: yes
Motorola format: yes
Word alignment: no

0 Ch1 D1 SB1 Ch1 D1 CB1
1 SB2 Ch1 D0 CB2 Ch1 D0
2 Ch2 D0 Ch2 D1 Ch2 D0 Ch2 D1

Complete evaluation in Intel format with word alignment

Default mapping for Lightbus, EtherCAT and Ethernet coupler and Bus Terminal Controller (BCxxxx, BXxxxx)

  Address Input data Output data
Conditions 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 Ch1 D1 Ch1 D0 Ch1 D1 Ch1 D0
2 reserved SB2 reserved CB2
3 Ch2 D1 Ch2 D0 Ch2 D1 Ch2 D0

Complete evaluation in Motorola format with word alignment

  Address Input data Output data
Conditions Word offset High byte Low byte High byte Low byte

Complete evaluation: yes
Motorola format: yes
Word alignment: yes

0 reserved SB1 reserved CB0
1 Ch1 D0 Ch1 D1 Ch1 D0 Ch1 D1
2 reserved SB2 reserved CB1
3 Ch2 D0 Ch2 D1 Ch2 D0 Ch2 D1
Key

Complete evaluation: In addition to the process data, the control and status bytes are also mapped in 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).

Ch n D0: channel n, lower-value data byte
Ch n D1: channel n, higher-value data byte

reserved: This byte occupies process data memory, although it has no function.
"-": This byte is not assigned or used by the terminal/module.