Beckhoff KS31 2 Series Manual

Two channel accurate analog terminals
Table of Contents

Advertisement

Quick Links

Documentation | EN
KL31x2/KS31x2
Two Channel Accurate Analog Terminals
2023-01-31 | Version: 2.6.0

Advertisement

Table of Contents
loading

Summary of Contents for Beckhoff KS31 2 Series

  • Page 1 Documentation | EN KL31x2/KS31x2 Two Channel Accurate Analog Terminals 2023-01-31 | Version: 2.6.0...
  • Page 3: Table Of Contents

    Examples of Register Communication ....................  54 5.6.1 Example 1: Reading the firmware version from register 9 .......... 54 5.6.2 Example 2: Writing to an user register ................ 54 6 Appendix .............................. 58 Beckhoff Identification Code (BIC) .................... 58 KL31x2/KS31x2 Version: 2.6.0...
  • Page 4 Table of contents Support and Service........................ 60 Version: 2.6.0 KL31x2/KS31x2...
  • 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

    Foreword Documentation issue status Version Comment 2.6.0 • Chapter Basic function principles updated • Reference to the further documentation I/O Analog Manual added • Revision status updated 2.5.0 • Chapter Technical data updated • Document structure updated • Chapter Instructions for ESD protection added •...
  • Page 8 Foreword Firmware and hardware versions Documen- KL3132, KL3142, KL3152, KL3162, KL3172, KL3172-0500, KL3182, tation, KS3132 KS3142 KS3152 KS3162 KS3172 KS3172-0500, KS3182 Version KL3172-1000, KS3172-1000 Firmw Hardw Firmw Hardw Firmw Hardw Firmw Hardw Firmw Hardw Firmw Hardw Firmw Hardw 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0...
  • Page 9: Product Overview

    Product overview Product overview KL3132, KL3162, KL3172, KL3182 2.1.1 Introduction Fig. 1: KL3132 Two-channel analog terminals with voltage inputs (0.05% accuracy) The analog input terminals KL3132, KL3162, KL3172 and KL3182 process signals in the range -10 V to +10 V. The voltage is digitized to a resolution of 16 bits, and is transmitted, electrically isolated, to the higher- level automation device.
  • Page 10: Technical Data

    Product overview 2.1.2 Technical data Technical data KL3132-0000, KL3162-0000, KL3172-0000, KL3172-0500, KL3172-1000, KL3182-0000, KS3132-0000 KS3162-0000 KS3172-0000 KS3172-0500 KS3172-1000 KS3182-0000 Number of inputs Input signal -10 V ... +10 V 0 ... 10 V 0 ... 2 V 0 ... 500 mV 0 ... 1 V -2 V ... +2 V Input resistance > 70 kΩ...
  • Page 11: Kl3142, Kl3152

    Product overview KL3142, KL3152 2.2.1 Introduction Fig. 2: KL3142 Two-channel analog terminals with current inputs (0.05% accuracy) The KL3142 and KL3152 analog input terminals handle signals in the range between 0 and 20 mA, and between 4 and 20 mA respectively. The current is digitized to a resolution of 16 bits (default: 15 bits), and is transmitted, in an electrically isolated form, to the higher-level automation device.
  • Page 12: Technical Data

    Product overview 2.2.2 Technical data Technical data KL3142-0000, KS3142-0000 KL3152-0000, KS3152-0000 Number of inputs Signal current 0 ... 20 mA 4 ... 20 mA Internal resistance 100 Ω measuring resistance Common-mode voltage U ±10 V Resolution 16 bit Conversion time 140 ms, configurable Measuring error (full measuring range) ±0.05% of the full scale value, self-calibration Bit width in the K-Bus I/O 2 x 16 bit user data (optionally 2 x 8 bit control/status)
  • Page 13: Leds

    Product overview LEDs Fig. 3: LEDs Display K-bus power Power supply (5 V) available on the K-bus (green) OFF No power supply (5 V) available on the K-bus K-Bus Run Data transmission on the K-bus is active (green) OFF Data transmission on the K-bus is not active Run 1 Channel 1 active: (green)
  • Page 14: Basic Function Principles

    Product overview Basic function principles The high-precision KL3172 analog input terminals can measure two voltages (KL3132, KL3162, KL3172, KL3182) or two currents (KL3142, KL3152) and display them with a resolution of 16 bits (65535 steps). High- precision measurements are ensured through cyclic self-calibration. By default, the inputs are switched as differential inputs.
  • Page 15 Product overview Legend Name Name Unit Register Output value of the A/D converter Process data for controller Vendor calibration: offset (can be deactivated via bit R32.5 [} 50] of the R17 [} 49] feature register) Vendor calibration: gain (always active) [1 x 2 + 1] R18 [} 49] Calibration: offset (can be activated via bit R32.5 [} 50] of the feature R1 [} 48]...
  • Page 16 Product overview Fluctuating measuring signals interfere with self-calibration In the calibration phase, the terminal uses a stabilization check to verify that the input signal is sta- ble. Strongly fluctuating measuring signals prevent a termination of the self-calibration, it stops with Error=1 and Overload/Underload=1, see chapter Basics of the function/ Calibration [} 15] and Access from the user program/ Status byte 1 (for process data mode) [} 44].
  • Page 17: Continuative Documentation For I/O Components With Analog In And Outputs

    I/O Analog Manual Notes on I/O components with analog inputs and outputs, which is available for download on the Beckhoff homepage https://www.beckhoff.com on the respective product pages! It explains the basics of sensor technology and contains notes on analog measured values.
  • Page 18: 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. 5: Spring contacts of the Beckhoff I/O components Version: 2.6.0 KL31x2/KS31x2...
  • Page 19: Installation On Mounting Rails

    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. 6: Attaching on mounting rail The bus coupler and bus terminals are attached to commercially available 35 mm mounting rails (DIN rails according to EN 60715) by applying slight pressure: 1.
  • Page 20: Fig. 7 Disassembling Of Terminal

    Mounting and wiring Disassembly Fig. 7: 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 21: Disposal

    Mounting and wiring Fig. 8: 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 22: Connection

    Mounting and wiring Connection 3.4.1 Connection system 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! Overview The bus terminal system offers different connection options for optimum adaptation to the respective application: •...
  • Page 23: Fig. 11 High Density Terminals

    Mounting and wiring A tab for strain relief of the cable simplifies assembly in many applications and prevents tangling of individual connection wires when the connector is removed. Conductor cross sections between 0.08 mm and 2.5 mm can continue to be used with the proven spring force technology.
  • Page 24: Wiring

    Mounting and wiring 3.4.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. 12: 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 25: Shielding

    Mounting and wiring Terminal housing High Density Housing Wire size width (single core wires) 0.08 ... 1.5 mm Wire size width (fine-wire conductors) 0.25 ... 1.5 mm Wire size width (conductors with a wire end sleeve) 0.14 ... 0.75 mm Wire size width (ultrasonically “bonded" conductors) only 1.5 mm (see notice [} 23]) Wire stripping length 8 ...
  • Page 26: Contact Assignment

    Mounting and wiring 3.4.4 Contact assignment WARNING Risk of injury through electric shock and damage to the device! Bring the Bus Terminals system into a safe, de-energized state before starting mounting, disassembly or wiring of the Bus Terminals! Fig. 13: KL3132 - Contact assignment Fig. 14: KL3142 - Contact assignment Version: 2.6.0 KL31x2/KS31x2...
  • Page 27 Mounting and wiring Terminal point No. Connection for Input 1+ + input channel 1 Input 1- - input channel 1 Internal ground (internally connected to terminal point 7) Shield PE contact (internally connected to terminal point 8) Input 2+ + input channel 2 Input 2- - input channel 2 Internal ground (internally connected to terminal point 3)
  • Page 28: 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 29: 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 30: Application Example For Kl3172-0000

    Mounting and wiring Application example for KL3172-0000 WARNING Risk of injury through electric shock and damage to the device! Bring the Bus Terminals system into a safe, de-energized state before starting mounting, disassembly or wiring of the Bus Terminals! Monitoring the cell voltages of a battery with several KL3172. Fig. 15: KL3172-0000 - application example NOTE Do not exceed the dielectric strength!
  • Page 31: Configuration Software Ks2000

    Configuration Software KS2000 Configuration Software KS2000 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. 16: KS2000 configuration software Configuration You can configure the Fieldbus stations with the Configuration Software KS2000 offline.
  • Page 32 Configuration Software KS2000 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 33: Parameterization With Ks2000

    Configuration Software KS2000 Parameterization with KS2000 Connect the configuration interface of your fieldbus coupler with the serial interface of your PC via the configuration cable and start the KS2000 Configuration Software. Click on the Login button. The configuration software will now load the information for the connected fieldbus station.
  • Page 34: Fig. 18 Ks2000 Branch For Channel 1 Of The Kl3172

    Configuration Software KS2000 Fig. 18: KS2000 branch for channel 1 of the KL3172 For the KL3172, the branches Register, Settings and ProcData are displayed: • Register [} 35] enables direct access to the KL3172 registers. • A dialog mask for the parameterization of the KL3172 can be found under Settings [} 36]. •...
  • Page 35: Register

    Configuration Software KS2000 Register You can access the registers of the KL3172 directly under Register. The meaning of the register is explained in the register overview [} 47]. Fig. 19: Register view in KS2000 KL31x2/KS31x2 Version: 2.6.0...
  • Page 36: Settings

    Configuration Software KS2000 Settings The dialog mask for the parameterization of the KL3172 can be found under Settings. Fig. 20: Settings via KS2000 Operation mode Channel disabled (R32.11 [} 50]) Here you can disable this channel, in order facilitate a faster cycle time for the other channel (default: not disabled).
  • Page 37 Configuration Software KS2000 Siemens output format (R32.4 [} 50]) You can activate Siemens output format here (default: deactivated). Calibration active (R32.5 [} 50]) You can deactivate the calibration here (default: activated). Differential measurement (R32.6 [} 50]) You can deactivate the differential measurement here (default: activated). Stabilization of calibration active (R32.7 [} 50]) You can deactivate the stabilization of the calibration here (default: activated).
  • Page 38: Sample Program For Register Communication Via Ethercat On Kl3314 Exemplary

    Configuration Software KS2000 Limit value 2 (R36 [} 52]) You can specify the limit value 2 here (default: 0). Filter constant (R37.11-R37.4 [} 52]) The filter constant SF specifies the 3dB limit frequency of the sinc filter (default: 860 (TM) Fast-Step Mode enabled (R37.0 [} 52]) You can activate Fast Step Mode here (default: deactivated).
  • Page 39: Fig. 21 Settings Of Kl3314 Via Visualization Of Twincat 3

    [coupler (e.g. BK1120) or embedded PC] + KL3314 + KL9010. Download: https://infosys.beckhoff.com/content/1033/kl31x2/Resources/5996114571/.zip Preparations for starting the sample programs (tnzip file / TwinCAT 3) • Click on the download button to save the Zip archive locally on your hard disk, then unzip the *.tnzip archive file in a temporary folder.
  • Page 40: Fig. 23 Search Of The Existing Hw Configuration For The Ethercat Configuration Of The Example

    Configuration Software KS2000 • Select the .tnzip file (sample program). • A further selection window opens. Select the destination directory for storing the project. • For a description of the general PLC commissioning procedure and starting the program please refer to the terminal documentation or the EtherCAT system documentation.
  • Page 41: Data Structures

    Data structures Data structures Process image The terminals KL3132, KL3162, KL3142, KL3152 KL3172 and KL3148 are represented in the process image with a maximum of 6 bytes of input data and 6 bytes of output data. These are organized as follows: Format Input data Output data...
  • Page 42: Mapping

    Data structures KL3172-0000 Voltage Decimal Hexadecimal 0 V 0x0000 2 V 65535 0xFFFF KL3172-0500 Voltage Decimal Hexadecimal 0 V 0x0000 500 mV 65535 0xFFFF KL3172-1000 Voltage Decimal Hexadecimal 0 V 0x0000 1 V 65535 0xFFFF KL3182-0000 Voltage Decimal Hexadecimal -2 V -32768 0x8000 +2 V +32767 0x7FFF Mapping The Bus Terminals occupy addresses within the process image of the controller.
  • Page 43 Data structures Address Input data Output data Requirements Word offset High byte Low byte High byte Low byte Complete evaluation: no Ch1 D1 Ch1 D0 Motorola format: no Ch2 D1 Ch2 D0 Word alignment: any Compact evaluation in Motorola format Default mapping for PROFIBUS and Interbus coupler Address Input data...
  • Page 44: Control And Status Byte

    Data structures Complete evaluation in Motorola format with word alignment Address Input data Output data Requirements Word offset High byte Low byte High byte Low byte Complete evaluation: yes reserved reserved Motorola format: yes Ch1 D0 Ch1 D1 Ch1 D0 Ch1 D1 Word alignment: yes reserved...
  • Page 45 Data structures Name Description SB1.7 RegAccess Acknowledgment for process data mode SB1.6 Error no error detected KL3142 up to firmware 2B • Overload (bit SB1.1 [} 44] is set) or KL3142 with firmware 2C or higher and R32.14 [} 50] = 1 • Underload (bit SB1.0 [} 44] is KL3132, KL3152, KL3162, KL3172, set) KL3182 up to firmware 2A...
  • Page 46 Data structures Status byte 1 (in register communication) The status byte 1 (SB1) is located in the input image [} 41] and is transmitted from terminal to the controller. SB1.7 SB1.6 SB1.5 SB1.4 SB1.3 SB1.2 SB1.1 SB1.0 Name RegAccess R/W Reg. no. Name Description SB1.7...
  • Page 47: Register Overview

    Data structures Register overview The registers are used for the parameterization of the Bus Terminals and are available for each channel. They can be read or written by means of register communication [} 45]. Register no. Comment Default value Memory Raw ADC value 0x0000 R0 [} 48] Calibration value: Offset...
  • Page 48: Register Description

    Data structures Register no. Comment Default value Memory User offset 0x0000 SEEPROM R33 [} 52] User gain 0x0100 SEEPROM R34 [} 52] Limit value 1 0x0000 SEEPROM R35 [} 52] Limit value 2 0x0000 SEEPROM R36 [} 52] Filter constants of the A/D converter, and configuration bits 0x35C0 13760 SEEPROM...
  • Page 49 Data structures Command 0x7000: Restore Factory Settings Entering 0x7000 in register R7 restores the factory settings for the following registers of both channels: KL3162, KL3172, KL3142, KL3152: KL3132, KL3182: R32: 0x0180 (384 R32: 0x0182 (386 R33: 0x0000 (0 R33: 0x0000 (0 R34: 0x0100 (256 R34: 0x0100 (256 R35: 0x0000 (0 R35: 0x0000 (0 R36: 0x0000 (0...
  • Page 50 Data structures R19: Manufacturer scaling - offset: This register contains the offset of the manufacturer scaling. Can be activated via R32.1 [} 50] in the feature register (16 bit signed integer). R20: Manufacturer scaling - gain: This register contains the gain of the manufacturer scaling. Can be activated via R32.1 [} 50] in the feature register (16 bit unsigned integer x 2- + 1).
  • Page 51 Data structures Name Description default R32.15* CallibrationDisplay During the calibration, the terminal sets the overload bit SB1.1 [} 44] and the underload bit SB1.0 [} 44].  Compatibility mode: During calibration, the terminal sets the error bit SB1.6 [} 44]. R32.14* Display StabilityError 0 Stability error is not displayed.
  • Page 52 Data structures For lower firmware versions, bits R32.14 and R32.15 are not evaluated. These terminals always set the error bit SB1.6 [} 44] during the calibration and cannot indicate the stability error! R33: User scaling - offset This register contains the offset of the user scaling. The user scaling can be activated in the feature register through bit R32.0 [} 50] (16 bit signed integer).
  • Page 53 Data structures Name Description Default R37.1 SkipFIR FIR filter is active. FIR filter is bypassed. R37.0 Fast Fast Step Mode is not active. Fast Step Mode is active: a fast reaction will follow jumps at the input, in spite of the filter stage being active. In this case the filter is bypassed! Examples Value in R37...
  • Page 54: Examples Of Register Communication

    Data structures Examples of Register Communication The numbering of the bytes in the examples corresponds to the display without word alignment. 5.6.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 0xXX...
  • Page 55 Data structures • The output data word (byte 1 and byte 2) contains the code word (0x1235) for deactivating write protection. 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...
  • Page 56 Data structures CAUTION Observe the register description! The value of 0x0002 given here is just an example! The bits of the feature register change the properties of the terminal and have a different meaning, depend- ing on the type of terminal. Refer to the description of the feature register of your terminal (chapter Register description) regarding the meaning of the individual bits before changing the values.
  • Page 57 Data structures 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 58: 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 59: Fig. 25 Example Dmc 1P072222Sbtnk4P562D71Kel1809 Q1 51S678294

    Fig. 25: 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 60 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 61 KL3142............................Fig. 3 LEDs ............................Fig. 4 Differential measuring ........................Fig. 5 Spring contacts of the Beckhoff I/O components ................. Fig. 6 Attaching on mounting rail......................Fig. 7 Disassembling of terminal ......................Fig. 8 Power contact on left side ......................
  • Page 63 More Information: www.beckhoff.com/KL3xxx 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:

Kl31 2 seriesKl3132Kl3162Kl3172Kl3182

Table of Contents