Beckhoff KL6031 Series Documentation
Beckhoff KL6031 Series Documentation

Beckhoff KL6031 Series Documentation

Serial interface terminals
Hide thumbs Also See for KL6031 Series:
Table of Contents

Advertisement

Documentation
KL6031 and KL6041
Serial Interface Terminals
Version:
Date:
2.0.0
2020-01-14

Advertisement

Table of Contents
loading

Summary of Contents for Beckhoff KL6031 Series

  • Page 1 Documentation KL6031 and KL6041 Serial Interface Terminals Version: 2.0.0 Date: 2020-01-14...
  • Page 3: Table Of Contents

    Table of contents Table of contents 1 Foreword .............................. 5 Notes on the documentation...................... 5 Safety instructions .......................... 6 Documentation issue status ...................... 7 2 Product overview............................ 8 KL6031 - Introduction ........................ 8 KL6031 - Technical data........................ 9 KL6031 – Basic function principles.................... 10 KL6041 - Introduction ........................ 11 KL6041 - Technical data........................ 12 KL6041 –...
  • Page 4 Table of contents Version: 2.0.0 KL6031 and KL6041...
  • Page 5: Foreword

    EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702 with corresponding applications or registrations in various other countries. ® EtherCAT is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany. Copyright © Beckhoff Automation GmbH & Co. KG, Germany. The reproduction, distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited.
  • 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

    Foreword Documentation issue status Version Comment 2.0.0 • Migration 1.2.0 • Technical data updated • Extended temperature range • ATEX notes added • Correction - C/S word • Supplement added to description of operation with TwinCAT • Description added to operation with TwinCAT PLC software •...
  • Page 8: Product Overview

    Product overview Product overview KL6031 - Introduction Fig. 1: KL6031 The KL6031 serial interface allows devices with RS232 interface to be connected. It operates in conformity with the CCITT V.28/DIN 66 259-1 standards. The device connected to the KL6031 terminal communicates with the automation device via the Bus Coupler.
  • Page 9: Kl6031 - Technical Data

    Product overview Connections Terminal point Name Signal Signal line (Transmit Data) Signal line (Receive Data) Control line (Request To Send) Control line (Clear To Send) Ground (internally bridged with terminal 7) Ground (internally bridged with terminal 3) Shield Shield (internally bridged with terminal 8) Shield Shield (internally bridged with terminal 4) KL6031 - Technical data Technical data...
  • Page 10: Kl6031 - Basic Function Principles

    Product overview KL6031 – Basic function principles The KL6031 serial interface terminal enables the connection of devices with an RS232 interface (e.g. bar code scanners). Data can be exchanged with the controller in full duplex mode, independent of the higher- level bus system.
  • Page 11: Kl6041 - Introduction

    Product overview KL6041 - Introduction Fig. 2: KL6041 The KL6041 serial interface enables the connection of devices with an RS422 or RS485 interface. The device connected to the KL6041 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 115.2 kbit/s.
  • Page 12: Kl6041 - Technical Data

    Product overview KL6041 - Technical data Technical data KL6041-0000, KS6041-0000 Data transfer channels TxD and RxD, full/half duplex Data transfer rate 9600 bit/s, 8 data bits, no parity and one stop bit are pre-set (max. 115200 bit/s) Bit transfer with differential signal Line impedance 120 Ω...
  • Page 13: Fig. 3 Rs485

    Product overview Process data - standard output format In the standard output format, 22 bytes of user data and 1 Control/Status word are mapped in the Bus Coupler. By changing the parameters of the KL6041, up to 3 or 5 bytes of user data can be transmitted. Connection for RS485 transfer In RS485 mode, data are exchanged in half duplex mode.
  • Page 14: Mounting And Wiring

    Mounting and wiring Mounting and wiring Installation on mounting rails WARNING Risk of electric shock and damage of device! Bring the bus terminal system into a safe, powered down state before starting installation, disassembly or wiring of the bus terminals! Assembly Fig. 5: Attaching on mounting rail The bus coupler and bus terminals are attached to commercially available 35 mm mounting rails (DIN rails...
  • Page 15: Fig. 6 Disassembling Of Terminal

    Mounting and wiring Disassembly Fig. 6: Disassembling of terminal Each terminal is secured by a lock on the mounting rail, which must be released for disassembly: 1. Pull the terminal by its orange-colored lugs approximately 1 cm away from the mounting rail. In doing so for this terminal the mounting rail lock is released automatically and you can pull the terminal out of the bus terminal block easily without excessive force.
  • Page 16: Installation Instructions For Enhanced Mechanical Load Capacity

    Mounting and wiring Fig. 7: Power contact on left side NOTE Possible damage of the device Note that, for reasons of electromagnetic compatibility, the PE contacts are capacitatively coupled to the mounting rail. This may lead to incorrect results during insulation testing or to damage on the terminal (e.g. disruptive discharge to the PE line during insulation testing of a consumer with a nominal voltage of 230 V).
  • Page 17: Connection

    Mounting and wiring Additional installation instructions For terminals with enhanced mechanical load capacity, the following additional installation instructions apply: • The enhanced mechanical load capacity is valid for all permissible installation positions • Use a mounting rail according to EN 60715 TH35-15 •...
  • Page 18: Fig. 9 Pluggable Wiring

    Mounting and wiring Pluggable wiring (ESxxxx / KSxxxx) Fig. 9: Pluggable wiring The terminals of ESxxxx and KSxxxx series feature a pluggable connection level. The assembly and wiring procedure is the same as for the ELxxxx and KLxxxx series. The pluggable connection level enables the complete wiring to be removed as a plug connector from the top of the housing for servicing.
  • Page 19: Wiring

    Mounting and wiring 3.3.2 Wiring WARNING Risk of electric shock and damage of device! Bring the bus terminal system into a safe, powered down state before starting installation, disassembly or wiring of the Bus Terminals! Terminals for standard wiring ELxxxx/KLxxxx and for pluggable wiring ESxxxx/KSxxxx Fig. 11: Connecting a cable on a terminal point Up to eight terminal points enable the connection of solid or finely stranded cables to the Bus Terminal.
  • Page 20: Atex - Special Conditions (Extended 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 -25 to 60°C for the use of Beckhoff fieldbus com- ponents with extended temperature range (ET) in potentially explosive areas! •...
  • Page 21: Atex Documentation

    Notes about operation of the Beckhoff terminal systems in potentially explosive ar- eas (ATEX) Pay also attention to the continuative documentation Notes about operation of the Beckhoff terminal systems in potentially explosive areas (ATEX) that is available in the download area of the Beckhoff homepage http:\\www.beckhoff.com! KL6031 and KL6041...
  • Page 22: Ks2000 Configuration Software

    KS2000 Configuration Software KS2000 Configuration Software KS2000 - Introduction The KS2000 configuration software permits configuration, commissioning and parameterization of bus couplers, of the affiliated bus terminals and of Fieldbus Box Modules. The connection between bus coupler / Fieldbus Box Module and the PC is established by means of the serial configuration cable or the fieldbus. Fig. 12: KS2000 configuration software Configuration You can configure the Fieldbus stations with the Configuration Software KS2000 offline.
  • Page 23: Parameterization With Ks2000

    KS2000 Configuration Software Commissioning The KS2000 software facilitates commissioning of machine components or their fieldbus stations: Configured settings can be transferred to the fieldbus modules by means of a download. After a login to the terminal station, it is possible to define settings in couplers, terminals and Fieldbus Box modules directly online. The same high-level dialogs and register access are available for this purpose as in the configuration phase.
  • Page 24: Fig. 13 Display Of The Fieldbus Station In Ks2000

    KS2000 Configuration Software Fig. 13: Display of the fieldbus station in KS2000 The left-hand KS2000 window displays the terminals of the fieldbus station in a tree structure. The right-hand KS2000 window contains a graphic display of the fieldbus station terminals. In the tree structure of the left-hand window, click on the plus-sign next to the terminal whose parameters you wish to change (item 2 in the example).
  • Page 25: Register

    KS2000 Configuration Software Register Under Register you can directly access the registers of the KL6031/KL6041. The meaning of the register is explained in the Register Overview [} 35]. Fig. 15: Register view in KS2000 KL6031 and KL6041 Version: 2.0.0...
  • Page 26: Kl6031 - Common Settings

    KS2000 Configuration Software KL6031 - Common Settings Common Settings tab for parameterization of the KL6031. Fig. 16: Settings via KS2000 General Take Settings for all channels of this terminal The settings made are adopted for all channels of the terminal (default: deactivated). Process Data Length (R34.7 [} 37]) Here, you can set the user data length (3, 5 or 22 bytes) of the process data image (default: 22 bytes).
  • Page 27: Kl6041 - Common Settings

    KS2000 Configuration Software • XON/XOFF supported receiving data (R34.4 [} 37]), (default: deactivated) • Send FIFO data continuously (R34.6 [} 37]), (default: deactivated) • Extended process data interface (R34.7 [} 37]), (set automatically) • Transfer rate optimization (R34.8 [} 37]), (default: activated) KL6041 - Common Settings Common Settings tab for parameterization of the KL6041.
  • Page 28 KS2000 Configuration Software Communication Parameters (R34) • Half duplex (R34.0 [} 37]), (default: deactivated) • Alternative output format (R34.1 [} 37]), (default: deactivated) • Status byte one cycle later (R34.2 [} 37]), (default: deactivated) • XON/XOFF supported sending data (R34.3 [} 37]), (default: deactivated) •...
  • Page 29: Rs232(485) Interface Parameters

    KS2000 Configuration Software RS232(485) interface parameters RS232(485) Interface Parameters tab for parameterizing the KL6031/KL6041. (The example below shows the KL6031 tab). Fig. 18: Settings via KS2000 Baud rate (R32 [} 37]) You can set the baud rate for the terminal here (default: 9600 bit/s). Data format (R33 [} 37]) Data format setting (default: 8 data bits, no parity).
  • Page 30: Process Data

    KS2000 Configuration Software Process data The Status byte (Status), the Control byte (Ctrl) and the process data (Data) are displayed in a tree structure under ProcData. Fig. 19: ProcData The spectacles mark the data that are currently graphically displayed in the History field. Fig. 20: History field The current input value is displayed numerically in the Value field.
  • Page 31: Fig. 23 Settings

    KS2000 Configuration Software CAUTION Danger for persons, the environment or devices! Note that changing output values (forcing) can have a direct effect on your automation application. Only modify these output values if you are certain that the state of your equipment permits it, and that there will be no risk to people or to the machine! After pressing the Settings button you can set the format of the numerical display to hexadecimal, decimal or binary.
  • Page 32: Access From The User Program

    Access from the user program Access from the user program Control and status word Control word The control word (CW) is located in the output process image, and is transmitted from the controller to the terminal. CW.15 CW.14 CW.13 CW.12 CW.11 CW.10 CW.9 CW.8 CW.7 CW.6 CW.5 CW.4 CW.3 CW.2 CW.1 CW.0 Name OL7 OL2* OL1*...
  • Page 33 Access from the user program Name Description SW.15 IL7 ... IL0  ... 22 If the large process image is used: Number of input bytes available for transfer from the (InLenght*) terminal to the controller. If the small/medium process image is used: not shown SW.7 reserved SW.6...
  • Page 34 Access from the user program Initialization Control word Status word Comment CW.15 ... CW.8 CW.7 ... CW.1 SW.15 ... SW.8 SW.7 ... SW.1 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx Start of data transmission 0000 0000 0000 0100 0000 0000 0000 0000 The controller requests terminal initialization 0000 0000 0000 0100 0000 0000 0000 0100 Command is executed: Terminal initialization is complete 0000 0000 0000 0000...
  • Page 35: Register Overview

    Access from the user program Register overview The registers are used for the parameterization of the interface terminals. They can be read or written by means of the register communication. Register no. Comment Default value Memory Number of data bytes in the send buffer variable R0 [} 36] Number of data bytes in the receive variable...
  • Page 36: Register Description

    Access from the user program Register description All registers can be read or written via register communication. They are used for parameterizing the terminals. R0: Number of data bytes in the send buffer R0 contains the number of data in the transmission FIFO. R1: Number of data bytes in the receive buffer R0 contains the number of data in the receive FIFO.
  • Page 37 Access from the user program R18: Buffer full Register R18 defines the number of data in the input FIFO from which the BUF_F bit is set in the Status word R31-R35: User registers R31: Code word register • If you write values into the user registers without first entering the user code word (0x1235) into the code word register, the terminal will not accept the supplied data.
  • Page 38 Access from the user program Description of the operation mode default R34.15 … R34.9 - reserved R34.8 No transfer rate optimization The data are immediately placed on the bus. Transfer rate optimization After receipt of a byte, the system waits for max. 4 ms for a further byte. If the receive buffer is full, the data are immediately placed on the bus.
  • Page 39: Mapping

    Access from the user program Bit 15 … 15 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Data bytes reserved 22 bytes + 1 Control/Status word in the extended process data image (see R34.7 [} 37]) reserved 5 bytes + 1 Control/Status byte reserved 3 bytes + 1 Control/Status byte R36 - 63: reserved...
  • Page 40 Access from the user program Complex evaluation in Motorola format Address Input data Output data Conditions Word offset High byte Low byte High byte Low byte Complex evaluation: yes Motorola format: yes DataIn 0 DataIn 1 DataOut 0 DataOut 1 Word alignment: any DataIn 2 DataIn 3 DataOut 2 DataOut 3...
  • Page 41 Access from the user program Complex evaluation in Motorola format with word alignment Address Input data Output data Conditions Word offset High byte Low byte High byte Low byte Complex evaluation: yes reserved reserved Motorola format: yes DataIn 0 DataIn 1 DataOut 0 DataOut 1 Word alignment: yes DataIn 2...
  • Page 42 Access from the user program 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 / SW: Status byte / Status word for channel n (appears in the input process image) CB / CW: Control byte for channel n (appears in the output process image) reserved: This byte is assigned to the process data memory, although it has no function.
  • Page 43: Examples Of Register Communication

    Access from the user program Examples of Register Communication The numbering of the bytes in the examples corresponds to the display without word alignment. 5.5.1 Example 1: reading the firmware version from Register 9 Output Data Byte 0: Control byte Byte 1: DataOUT1, high byte Byte 2: DataOUT1, low byte 0x89 (1000 1001...
  • Page 44 Access from the user program Input Data (answer of the bus terminal) Byte 0: Status byte Byte 1: DataIN1, high byte Byte 2: DataIN1, low byte 0x9F (1001 1111 0xXX 0xXX Explanation: • 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.
  • Page 45 Access from the user program Input data (response from the Bus Terminal) Byte 0: Status byte Byte 1: DataIN1, high byte Byte 2: DataIN1, low byte 0xA0 (1010 0000 0xXX 0xXX Explanation: • 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.
  • Page 46: Operation With Twincat Plc Software

    KL6031 and KL6041 in 22-byte mode The Beckhoff KL6031 und KL6041 serial Bus Terminals are operated in the delivered standard version with a 24-byte process image (22 bytes of user data + 1 Control/Status word), so that 22 data bytes can be transferred both from and to the terminal.
  • Page 47: Appendix

    Beckhoff's branch offices and representatives 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: http://www.beckhoff.com You will also find further documentation for Beckhoff components there.
  • Page 48 Table of figures Table of figures Fig. 1 KL6031 ............................Fig. 2 KL6041 ............................Fig. 3 RS485............................Fig. 4 RS422............................Fig. 5 Attaching on mounting rail ......................Fig. 6 Disassembling of terminal......................Fig. 7 Power contact on left side......................Fig. 8 Standard wiring..........................

This manual is also suitable for:

Kl6041 series

Table of Contents