Access from the user program
KL3311, KL3312, KL3314 and KL3302
34
Version: 4.2
5
Access from the user program
5.1
KL331x, KL3302 - Terminal Configuration
The terminal can be configured and parameterized via the internal register structure. Each terminal channel
is mapped in the Bus Coupler. Mapping of the terminal data in the Bus Coupler memory may differ,
depending on the Bus Coupler type and the set mapping configuration (e.g. Motorola/Intel format, word
alignment etc.). For parameterizing a terminal, the control and status byte also has to be mapped.
BK2000 Lightbus Coupler
In the BK2000 Lightbus Coupler, the control/status byte is always mapped, in addition to the data bytes. This
is always located in the low byte at the offset address of the terminal channel.
Fig. 21: Mapping in the Lightbus Coupler - example for KL3312, KL3302
BK3000 Profibus Coupler
For the BK3000 Profibus Coupler, the master configuration should specify for which terminal channels the
control and status byte is to be inserted. If the control and status byte are not evaluated, the terminals
occupy 2 bytes per channel:
• KL3311: 2 bytes of input data
• KL3312 (KL3302): 4 bytes of input data
• KL3314: 8 bytes of input data
Fig. 22: Mapping in the Profibus Coupler - example for KL3312, KL3302