Beckhoff KL6021 Documentation
Beckhoff KL6021 Documentation

Beckhoff KL6021 Documentation

Serial interface terminals, rs485 (rs422)
Table of Contents

Advertisement

Quick Links

Documentation | EN
KL6021/KS6021
Serial Interface Terminals, RS485 (RS422)
2022-09-14 | Version: 3.1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KL6021 and is the answer not in the manual?

Questions and answers

Summary of Contents for Beckhoff KL6021

  • Page 1 Documentation | EN KL6021/KS6021 Serial Interface Terminals, RS485 (RS422) 2022-09-14 | Version: 3.1.0...
  • Page 3: Table Of Contents

    Safety instructions .......................... 6 Documentation Issue Status ...................... 7 2 Product overview ............................ 8 KL6021/KS6021 - Introduction ...................... 8 KL6021/KS6021 - Technical data .....................  9 Basic Function Principles ........................  10 3 Mounting and wiring .......................... 11 Instructions for ESD protection .......................  11 Installation on mounting rails......................
  • Page 4 Table of content Version: 3.1.0 KL6021/KS6021...
  • Page 5: Foreword

    , XTS and XPlanar are registered trademarks of and licensed by Beckhoff Automation GmbH. Other designations used in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owners. Patent Pending...
  • Page 6: Safety Instructions

    All the components are supplied in particular hardware and software configurations appropriate for the application. Modifications to hardware or software configurations other than those described in the documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG. Personnel qualification This description is only intended for trained specialists in control, automation and drive engineering who are familiar with the applicable national standards.
  • Page 7: Documentation Issue Status

    Documentation Issue Status Version Comment 3.1.0 • Chapter Technical data updated • Ex markings added to technical data • Chapter Beckhoff Identification Code (BIC) updated • Chapter Disposal added • Document structure updated • New title page 3.0.0 • Migration •...
  • Page 8: Product Overview

    Fig. 1: KL6021 Serial interface RS422/RS485 The KL6021/KS6021 serial interface allows devices with RS422 or RS485 interface to be connected. The device connected to the terminal communicates with the automation device via the Bus Coupler. The active communication channel operates independently of the higher-level bus system in full or half duplex mode at up to 19,200 baud.
  • Page 9: Kl6021/Ks6021 - Technical Data

    Product overview KL6021/KS6021 - Technical data Technical data KL6021, KS6021 Technology RS422/RS485 Data transfer channels TxD and RxD, full duplex (half duplex) Data transfer rate 1200...19200 baud, default: 9600 baud, 8 data bits, no parity and one stop bit are preset (max. 19200 baud)
  • Page 10: Basic Function Principles

    Standard output format for process data In the standard output format, 4 bytes are mapped in the Bus Coupler (3 bytes for user data and 1 control/ status byte). By changing the parameters of the KL6021, up to 5 bytes of user data can be transferred. Reference The chapter on "Access from the user program"...
  • Page 11: Mounting And Wiring

    • Surroundings (working place, packaging and personnel) should by grounded probably, when handling with the devices. • Each assembly must be terminated at the right hand end with a KL9010 bus end terminal, to ensure the protection class and ESD protection. Fig. 4: Spring contacts of the Beckhoff I/O components KL6021/KS6021 Version: 3.1.0...
  • Page 12: Installation On Mounting Rails

    To mount the mounting rails with a height of 7.5 mm under the terminals and couplers, you should use flat mounting connections (e.g. countersunk screws or blind rivets). Version: 3.1.0 KL6021/KS6021...
  • Page 13: Fig. 6 Disassembling Of Terminal

    EL91xx, EL92xx) interrupt the power contacts and thus represent the start of a new supply rail. PE power contact The power contact labeled PE can be used as a protective earth. For safety reasons this contact mates first when plugging together, and can ground short-circuit currents of up to 125 A. KL6021/KS6021 Version: 3.1.0...
  • Page 14: Disposal

    Products marked with a crossed-out wheeled bin shall not be discarded with the normal waste stream. The device is considered as waste electrical and electronic equipment. The national regulations for the disposal of waste electrical and electronic equipment must be observed. Version: 3.1.0 KL6021/KS6021...
  • Page 15: Installation Instructions For Enhanced Mechanical Load Capacity

    • Use countersunk head screws to fasten the mounting rail • The free length between the strain relief and the wire connection should be kept as short as possible. A distance of approx. 10 cm should be maintained to the cable duct. KL6021/KS6021 Version: 3.1.0...
  • Page 16: Connection

    Insert the new component and plug in the connector with the wiring. This reduces the installation time and eliminates the risk of wires being mixed up. The familiar dimensions of the terminal only had to be changed slightly. The new connector adds about 3 mm. The maximum height of the terminal remains unchanged. Version: 3.1.0 KL6021/KS6021...
  • Page 17: Fig. 10 High Density Terminals

    Ultrasonically “bonded” (ultrasonically welded) conductors Ultrasonically “bonded” conductors It is also possible to connect the Standard and High Density Terminals with ultrasonically “bonded” (ultrasonically welded) conductors. In this case, please note the tables concerning the wire-size width [} 18]! KL6021/KS6021 Version: 3.1.0...
  • Page 18: Wiring

    The cables are released, as usual, using the contact release with the aid of a screwdriver. See the following table for the suitable wire size width. Version: 3.1.0 KL6021/KS6021...
  • Page 19: Shielding

    0.14 ... 0.75 mm Wire size width (ultrasonically “bonded" conductors) only 1.5 mm (see notice [} 17]) Wire stripping length 8 ... 9 mm 3.5.3 Shielding Shielding Encoder, analog sensors and actors should always be connected with shielded, twisted paired wires. KL6021/KS6021 Version: 3.1.0...
  • Page 20: Atex - Special Conditions (Standard Temperature Range)

    80°C at the wire branching points, then cables must be selected whose tempera- ture data correspond to the actual measured temperature values! • Observe the permissible ambient temperature range of 0 to 55°C for the use of Beckhoff fieldbus compo- nents standard temperature range in potentially explosive areas! •...
  • Page 21: Continuative Documentation For Atex And Iecex

    Pay also attention to the continuative documentation Ex. Protection for Terminal Systems Notes on the use of the Beckhoff terminal systems in hazardous areas according to ATEX and IECEx, that is available for download within the download area of your product on the Beckhoff homepage www.beckhoff.com!
  • Page 22: Configuration Software Ks2000

    Fieldbus Box modules with the aid of which settings can be modified easily. Alternatively, you have full access to all internal registers of the bus couplers and intelligent terminals. Refer to the register description for the meanings of the registers. Version: 3.1.0 KL6021/KS6021...
  • Page 23 • Process values can be specified in the output image for commissioning of the output modules. All possibilities in the online mode can be used in parallel with the actual fieldbus mode of the terminal station. The fieldbus protocol always has the higher priority in this case. KL6021/KS6021 Version: 3.1.0...
  • Page 24: Access From The User Program

    In the BK2000 Lightbus Coupler, the control/status byte is mapped in addition to the data bytes. This is always in the low byte on the offset address of the terminal channel. With the KL6021/KS6021, the control/ status byte is used exclusively in register mode. The Ser. control/status byte is used for the handshake protocol.
  • Page 25: Fig. 14 Mapping For Profibus Coupler - Example For Kl6021

    Fig. 14: Mapping for Profibus Coupler - example for KL6021 BK4000 Interbus Coupler By default, the BK4000 Interbus Coupler maps the KL6021/KS6021 with 4 bytes of input data and 4 bytes of output data. Parameterization via the fieldbus is not possible. The KS2000 software is required if the terminal is to be reparameterized.
  • Page 26: Mapping In The Bus Coupler

    5.2.1 Standard format In the standard format, the KL6021 is mapped by default with 4 bytes of input and output data (adjustable: 2 to 6 bytes via R35). Note: In the standard format, the Control/Status byte is used for register and process data communication.
  • Page 27 Control byte for the handshake (appears in the process image of the outputs). Ser. SB Status byte for the handshake (appears in the process image of the inputs). D0-D4 Data byte 0 - 4 “-“ This byte is not used or occupied by the terminal. KL6021/KS6021 Version: 3.1.0...
  • Page 28: Register Overview

    It is also possible for functions to be called by means of corresponding parameters. Each logical channel in an intelligent terminal has such a structure (so a 4- channel analog terminal has 4 sets of registers). This structure is divided into the following areas: Version: 3.1.0 KL6021/KS6021...
  • Page 29 The Bus Coupler sees this structure. • R11: Signal channels Related to R10, this contains the number of channels that are logically present. Thus for example a shift register that is physically present can perfectly well consist of several signal channels. KL6021/KS6021 Version: 3.1.0...
  • Page 30 • R32: Feature register This register specifies the operation modes of the terminal. Thus, for instance, a user-specific scaling can be enabled for the analog I/Os. The default values are shown in square brackets. Version: 3.1.0 KL6021/KS6021...
  • Page 31 8 data bits, odd parity Bit 3 0: 1 stop bit [0] 1: 2 stop bits Bit 4 - 15 not used – do not change! • R34: Feature register [0x0003] The feature register specifies the operating modes of the terminal. KL6021/KS6021 Version: 3.1.0...
  • Page 32: Register Communication Kl6021

    High byte = not used • R47 - R63 Extended registers with additional functions. Register communication KL6021 Register access via process data exchange • Bit 7=1: Register mode If bit 7 of the control byte is set, the first two bytes of the user data are not used for process data exchange but written into the register set of the terminal or read from it.
  • Page 33: Fig. 16 Register Mode Control Byte

    Example 1 Reading of register 8 in the BK2000 with a KL6021 and the end terminal: If the following bytes are transferred from the controller to the terminal,...
  • Page 34: Data Exchange, Function

    The handshake for data transmission is provided via this bit. A change of state in TR causes the data set defined via OL0-OL2 (5 bytes maximum) to be loaded into the transmission FIFO. The terminal signals execution of this instruction via TA. Version: 3.1.0 KL6021/KS6021...
  • Page 35 Start data transmission 00000100 0XXXXXXX Initialization is requested by the controller … … … 00000100 00000100 The terminal has completed the initialization 00000000 00000100 The controller requests data exchange … … … 00000000 00000000 The terminal is ready KL6021/KS6021 Version: 3.1.0...
  • Page 36: Examples Of Register Communication

    (0x1235) into Register 31. If a value other than 0x1235 is written into Register 31, write protection is reactivated. Please note that changes to a register only become effective after restarting the terminal (power-off/power-on). Version: 3.1.0 KL6021/KS6021...
  • Page 37 • The terminal returns the current value of the code word register in the input data word (byte 1 and byte III. Write to Register 32 (change contents of the feature register) Output data Byte 0: Control byte Byte 1: DataIN1, high byte Byte 2: DataIN1, low byte 0xE0 (1110 0000 0x00 0x02 KL6021/KS6021 Version: 3.1.0...
  • Page 38 • The terminal returns the current value of the feature register in the input data word (byte 1 and byte 2). V. Write register 31 (reset code word) Output Data Byte 0: Control byte Byte 1: DataOUT1, high byte Byte 2: DataOUT1, low byte 0xDF (1101 1111 0x00 0x00 Explanation: Version: 3.1.0 KL6021/KS6021...
  • Page 39 • The terminal returns a value as a receipt in the status byte that differs only in bit 0.6 from the value of the control byte. • The input data word (byte 1 and byte 2) is of no importance after the write access. Any values still displayed are invalid! KL6021/KS6021 Version: 3.1.0...
  • Page 40: Appendix

    Appendix Beckhoff Identification Code (BIC) The Beckhoff Identification Code (BIC) is increasingly being applied to Beckhoff products to uniquely identify the product. The BIC is represented as a Data Matrix Code (DMC, code scheme ECC200), the content is based on the ANSI standard MH10.8.2-2016.
  • Page 41: Fig. 18 Example Dmc 1P072222Sbtnk4P562D71Kel1809 Q1 51S678294

    Fig. 18: Example DMC 1P072222SBTNk4p562d71KEL1809 Q1 51S678294 An important component of the BIC is the Beckhoff Traceability Number (BTN, position 2). The BTN is a unique serial number consisting of eight characters that will replace all other serial number systems at Beckhoff in the long term (e.g.
  • Page 42: Support And Service

    Please contact your Beckhoff branch office or representative for local support and service on Beckhoff products! The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet pages: https://www.beckhoff.com You will also find further documentation for Beckhoff components there.
  • Page 43 KS2000 configuration software ....................Fig. 13 Mapping for Lightbus Coupler, example: KL6021 ................ Fig. 14 Mapping for Profibus Coupler - example for KL6021 ..............Fig. 15 Mapping for Interbus Coupler - example for KL6021 ..............Fig. 16 Register mode control byte ......................
  • Page 45 More Information: www.beckhoff.com/KL6021 Beckhoff Automation GmbH & Co. KG Hülshorstweg 20 33415 Verl Germany Phone: +49 5246 9630 info@beckhoff.com www.beckhoff.com...

This manual is also suitable for:

Ks6021

Table of Contents