background image

Configuration Software KS2000

KL301x, KL302x

28

Version: 4.1

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.

The KS2000 offers access to the process images of the bus couplers and Fieldbus Box modules.

• Thus, the coupler's input and output images can be observed by monitoring.

• 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.

4.2

Sample program for KL register communication via
EtherCAT on KL3314 exemplary

Using the sample programs

This document contains sample applications of our products for certain areas of application. The
application notes provided here are based on typical features of our products and only serve as ex-
amples. The notes contained in this document explicitly do not refer to specific applications. The
customer is therefore responsible for assessing and deciding whether the product is suitable for a
particular application. We accept no responsibility for the completeness and correctness of the
source code contained in this document. We reserve the right to modify the content of this docu-
ment at any time and accept no responsibility for errors and missing information.

Program description / function

This example program (TwinCAT 3) provides change of single register values of the KL3314 as selection of
the element type, characteristical settings of the feature register R32 and user scaling offset and gain (R33/
R34) similar as per KS2000.

Summary of Contents for KL301 Series

Page 1: ...Documentation KL301x KL302x Single and Dual Channel Analog Input Terminals 0 to 20 mA and 4 to 20 mA 4 1 2019 02 15 Version Date...

Page 2: ......

Page 3: ...x Connection and LED description 23 3 7 ATEX Special conditions standard temperature range 24 3 8 ATEX Special conditions extended temperature range 25 3 9 ATEX Documentation 26 4 Configuration Softwa...

Page 4: ...Table of contents KL301x KL302x 4 Version 4 1...

Page 5: ...ata diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT EtherCAT EtherCAT P Safety over EtherCAT TwinSAFE XFC and XTS are registered trademarks of and licensed by Beckhoff Auto...

Page 6: ...trained specialists in control automation and drive engineering who are familiar with the applicable national standards Description of instructions In this documentation the following instructions ar...

Page 7: ...Documen tation Version KL3011 KL3012 KL3021 KL3022 Firmware Hardware Firmware Hardware Firmware Hardware Firmware Hardware 4 1 3C 08 3C 07 3C 08 3C 07 4 0 3C 08 3C 07 3C 08 3C 07 The firmware and hard...

Page 8: ...f 12 bits and is transmitted in an electrically isolated form to the higher level automation device The input channels of the Bus Terminals have differential inputs and possess a common internal groun...

Page 9: ...and is transmitted in an electrically isolated form to the higher level automation device The input channels of the Bus Terminals have differential inputs and possess a common internal ground potentia...

Page 10: ...the K bus I O Input 1 x 16 bits of data 1 x 8 bit control status optional Input 2 x 16 bits of data 2 x 8 bit control status optional Configuration No address or configuration settings Weight approx...

Page 11: ...er 1 corresponds to 0xFFFF Other presentation types can be selected via the feature register R32 38 e g signed amount representation Siemens output format Measured value Output KL3011 KL3012 KL3021 KL...

Page 12: ...Product overview KL301x KL302x 12 Version 4 1 The equations of the straight line are enabled via register R32 37 Fig 3 KL301x KL302x Data flow...

Page 13: ...ith highly insulating materials synthetic fibers plastic film etc Surroundings working place packaging and personnel should by grounded probably when handling with the devices Each assembly must be te...

Page 14: ...he lock clicks onto the mounting rail If the terminals are clipped onto the mounting rail first and then pushed together without tongue and groove the connection will not be operational When correctly...

Page 15: ...ponents The six spring contacts of the K Bus E Bus deal with the transfer of the data and the supply of the Bus Terminal electronics The power contacts deal with the supply for the field electronics a...

Page 16: ...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 For insulation testing disconnect the PE supply lin...

Page 17: ...ent on both sides of the mounting rail with a mechanical fixture e g an earth terminal or reinforced end clamp The maximum total extension of the terminal segment without coupler is 64 terminals 12 mm...

Page 18: ...les the complete wiring to be removed as a plug connector from the top of the housing for servicing The lower section can be removed from the terminal block by pulling the unlocking tab Insert the new...

Page 19: ...es concerning the wire size width below 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 disas...

Page 20: ...hout tools for single wire conductors using the direct plug in technique i e after stripping the wire is simply plugged into the terminal point The cables are released as usual using the contact relea...

Page 21: ...ground internally connected to terminal point 7 Shield 4 PE contact internally connected to terminal point 8 n c 5 not used n c 6 not used GND 7 Internal ground internally connected to terminal point...

Page 22: ...3012 only green On Normal operation Off Watchdog timer overflow has occurred If no process data is transmitted to the bus coupler for 100 ms the green LEDs go out Error1 LED Error2 LED KL3012 only red...

Page 23: ...ground internally connected to terminal point 7 Shield 4 PE contact internally connected to terminal point 8 n c 5 not used n c 6 not used GND 7 Internal ground internally connected to terminal point...

Page 24: ...e permissible ambient temperature range of 0 to 55 C for the use of Beckhoff fieldbus compo nents standard temperature range in potentially explosive areas Measures must be taken to protect against th...

Page 25: ...protect against the rated operating voltage being exceeded by more than 40 due to short term interference voltages The individual terminals may only be unplugged or removed from the Bus Terminal syste...

Page 26: ...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...

Page 27: ...bus Box Modules can be prepared before the commissioning phase Later on this configuration can be transferred to the terminal station in the commissioning phase by means of a download For documentatio...

Page 28: ...tocol always has the higher priority in this case 4 2 Sample program for KL register communication via EtherCAT on KL3314 exemplary Using the sample programs This document contains sample applications...

Page 29: ...oupler e g BK1120 or embedded PC KL3314 KL9010 Download https infosys beckhoff com content 1033 kl301x_kl302x Resources zip 5996114571 zip Preparations for starting the sample programs tnzip file Twin...

Page 30: ...configuration of the example Checking NetId the EtherCAT tab of the EtherCAT device shows the configured NetId The first 4 numbers have to be identical with the project NetId of the target system The...

Page 31: ...tatus 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 18 Mapping in the Lightbus coupler example for KL3012...

Page 32: ...meterizations via the serial interface of the Bus Coupler independent of the fieldbus system 5 2 Mapping in the Bus Coupler As already described in the Terminal Configuration section each Bus Terminal...

Page 33: ...yte Complete evaluation yes Motorola format yes Word alignment yes 0 Res Ch1 CB SB 1 Ch1 D0 Ch1 D1 2 3 Key Complete evaluation The terminal is mapped with control and status byte Motorola format Motor...

Page 34: ...o Word alignment yes 0 Res Ch1 CB SB 1 Ch1 D1 Ch1 D0 2 Res Ch2 CB SB 3 Ch2 D1 Ch2 D0 Conditions Word offset High byte Low byte Complete evaluation yes Motorola format yes Word alignment yes 0 Res Ch1...

Page 35: ...iable R W RAM R16 37 Hardware version number 0x R W SEEROM R17 37 Hardware compensation Offset specific R W SEEROM R18 37 Hardware compensation Gain specific R W SEEROM R19 37 Manufacturer scaling Off...

Page 36: ...iplexed shift registers and their length in bits 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...

Page 37: ...the manufacturer s equation of the straight line Eq 1 3 11 The straight line equation is activated via register R32 38 1 corresponds to register value 0x0400 R21 Over range limit OVRL 16 bits signed i...

Page 38: ...ter1 active 0 For filter properties see R37 39 Bits 12 to 15 Reserved don t change If the Siemens output format is selected the lowest three bits are used for status evaluation The process data is rep...

Page 39: ...f frequency fg approx 1 kHz The implemented IIR filters do not have any notch behavior i e they do not explicitly suppress any frequency 0x0200 1st order IIR filter cut off frequency fg approx 100 Hz...

Page 40: ...scription Bit 7 0bin Bit 6 1bin Terminal compensation function is enabled Bit 5 reserved Bit 4 1bin Gain calibration Bit 3 1bin Offset calibration Bit 2 0bin slower cycle 1000 ms 1bin fast cycle 50 ms...

Page 41: ...ent see example Bit 0 to 5 Address The address of the register to be addressed is entered in bits 0 to 5 of the control byte Control byte in register mode REG 1 MSB REG 1 W R A5 A4 A3 A2 A1 A0 REG 0bi...

Page 42: ...alue 0x00 0x00 0x00 0x9F 5 6 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 versio...

Page 43: ...number 31 with 01 1111bin 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...

Page 44: ...er of your terminal chapter Register description regarding the meaning of the individual bits before changing the values Input data response from the Bus Terminal Byte 0 Status byte Byte 1 DataIN1 hig...

Page 45: ...6 set means writing to the register Bits 0 5 to 0 0 specify the register number 31 with 01 1111bin The output data word byte 1 and byte 2 contains 0x0000 for reactivating write protection Input Data...

Page 46: ...off components there Beckhoff Headquarters Beckhoff Automation GmbH Co KG Huelshorstweg 20 33415 Verl Germany Phone 49 0 5246 963 0 Fax 49 0 5246 963 198 e mail info beckhoff com Beckhoff Support Supp...

Page 47: ...cting a cable on a terminal point 19 Fig 12 KL3011 KL3012 Connection and LEDs 21 Fig 13 KL3211 KL3022 Connection and LEDs 23 Fig 14 KS2000 configuration software 27 Fig 15 Settings of KL3314 via visua...

Reviews: