background image

Access from the user program

KL400x

32

Version: 4.0

Complete evaluation

The terminal is mapped with control and status byte.

Motorola format

Motorola or Intel format can be set.

Word alignment

The terminal is positioned on a word boundary in the Bus Coupler.

Ch n CB

Control byte for channel n (appears in the process image of the outputs).

Ch n SB

Status byte for channel n (appears in the process image of the inputs).

Ch n D0

Channel n, data byte 0 (byte with the lowest value)

Ch n D1

Channel n, data byte 1 (byte with the highest value)

Res.

Reserved: this byte is assigned to the process data memory, although it has no function.

5.3

Register overview

These registers exist once for each channel.

Address

Name

Default value

R/W

Storage medium

R0…R4

reserved

0x0000

R

RAM

R5 [

}

 33]

Raw DAC value

variable

R

R6 [

}

 33]

Diagnostic register (not used)

0x0000

R

RAM

R7

Command register - not used

0x0000

R

R8 [

}

 33]

Terminal type

e.g. 4002

R

ROM

R9 [

}

 33]

Software version number

0x????

R

ROM

R10 [

}

 33]

Multiplex shift register

0x0218

R

ROM

R11 [

}

 33]

Signal channels

0x0218

R

ROM

R12 [

}

 33]

Minimum data length

0x9800

R

ROM

R13 [

}

 33]

Data structure

0x0000

R

ROM

R14

reserved

0x0000

R

R15 [

}

 33]

Alignment register

variable

R/W

RAM

R16 [

}

 33]

Hardware version number

0x????

R/W

SEEROM

R17 [

}

 33]

Hardware compensation: Offset specific

R/W

SEEROM

R18 [

}

 34]

Hardware compensation: Gain

specific

R/W

SEEROM

R19 [

}

 34]

Manufacturer scaling: Offset

0x0000

R/W

SEEROM

R20 [

}

 34]

Manufacturer scaling: Gain

0x0020

R/W

SEEROM

R21 [

}

 34]

Manufacturer's switch-on value

0x0000

R/W

SEEROM

R22…R30

reserved

0x0000

R/W

SEEROM

R31 [

}

 34]

Code word register

variable

R/W

RAM

R32 [

}

 34]

Feature register

0x0006

R/W

SEEROM

R33 [

}

 34]

User scaling: Offset

0x0000

R/W

SEEROM

R34 [

}

 35]

User scaling: Gain

0x0100

R/W

SEEROM

R35 [

}

 35]

User switch-on value

0x0000

R/W

SEEROM

R36…R47

reserved

0x0000

R/W

SEEROM

5.4

Register description

The registers can be read or written via the register communication. They are used for the parameterization
of the terminal.

R0 to R7: Registers in the internal RAM of the terminal

The process variables can be used in addition to the actual process image. Their function is specific to the
terminal.

Summary of Contents for KL400 Series

Page 1: ...Documentation KL400x Single Dual and Four Channel Analog Output Terminals 0V 10V 4 0 2017 10 20 Version Date ...

Page 2: ......

Page 3: ...D description 19 3 6 KL4004 connection and LED description 20 3 7 ATEX Special conditions standard temperature range 21 3 8 ATEX Special conditions extended temperature range 22 3 9 ATEX Documentation 23 4 Configuration Software KS2000 24 4 1 KS2000 Introduction 24 5 Access from the user program 26 5 1 KL400x terminal configuration 26 5 2 Mapping in the Bus Coupler 28 5 2 1 KL4001 29 5 2 2 KL4002 ...

Page 4: ...Table of contents KL400x 4 Version 4 0 ...

Page 5: ...e data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT EtherCAT Safety over EtherCAT TwinSAFE XFC and XTS 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 The EtherCAT Technology is cov...

Page 6: ...iliar with the applicable national standards Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note The safety instructions must be read carefully and followed without fail DANGER Serious risk of injury Failure to follow the safety instructions associated with this symbol directly endangers the life and health of persons WARNING ...

Page 7: ...001 KL4002 KL4004 FW HW FW HW FW HW 4 0 3D 08 3D 08 3D 04 The firmware and hardware versions delivery state can be found in the serial number printed on the side of the terminal Syntax of the serial number Structure of the serial number WW YY FF HH WW week of production calendar week YY year of production FF firmware version HH hardware version Example with ser no 35 04 1B 01 35 week of production...

Page 8: ... The analog KL400x output terminals generate signals in the range 0 V to 10 V The voltage is supplied to the process level with a resolution of 12 bits and is electrically isolated The output channels of the Bus Terminals have a common ground potential Run LEDs indicate the data exchange with the Bus Coupler ...

Page 9: ...6 bits of data 2 x 8 bit control status optional Output 4 x 16 bits of data 4 x 8 bit control status optional Configuration No address or configuration settings Weight approx 85 g Dimensions W x H x D approx 15 mm x 100 mm x 70 mm width aligned 12 mm Mounting 11 on 35 mm mounting rail conforms to EN 60715 Permissible ambient temperature range during operation 25 C to 60 C extended temperature rang...

Page 10: ...two s complement form integer 1 corresponds to 0xFFFF Alternative presentation types can be selected via the feature register R32 34 Output voltage Process data dec hex 0 V 0 0x0000 5 V 16383 0x3FFF 10 V 32767 0x7FFF Process data The process data arriving from the Bus Coupler are output to the process Y_dac X 1 0 Neither user nor manufacturer scaling is active Y_1 B_h A_h X Y_dac Y_1 1 1 Manufactu...

Page 11: ...tact with highly insulating materials synthetic fibers plastic film etc b Surroundings working place packaging and personnel should by grounded probably when handling with the devices c Each assembly must be terminated at the right hand end with an EL9011 bus end cap to ensure the protection class and ESD protection Fig 2 Spring contacts of the Beckhoff I O components 3 2 Installation on mounting ...

Page 12: ...ck 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 assembled no significant gap should be visible between the housings Note Fixing of mounting rails The locking mechanism of the terminals and couplers extends to the profile of the mounting rail At the ins...

Page 13: ...s 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 and thus represent a supply rail within the bus terminal block The power contacts are supplied via terminals on the Bus Coupler up to 24 V or for higher voltages via power feed terminals Note Power Contacts ...

Page 14: ... 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 line at the Bus Coupler or the Power Feed Terminal In order to decouple further feed points for testing these Power Feed Terminals can be released and pulled at least 10 mm from the group of terminals W...

Page 15: ...e e g an earth terminal or reinforced end clamp The maximum total extension of the terminal segment without coupler is 64 terminals 12 mm mounting with or 32 terminals 24 mm mounting with Avoid deformation twisting crushing and bending of the mounting rail during edging and installation of the rail The mounting points of the mounting rail must be set at 5 cm intervals Use countersunk head screws t...

Page 16: ...r 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 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 he...

Page 17: ...ables concern ing 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 disassembly or wiring of the Bus Terminals Terminals for standard wiring ELxxxx KLxxxx and for pluggable wiring ESxxxx KSxxxx Fig 9 Connecting a cable on a terminal point Up to eight terminal points en...

Page 18: ...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 release with the aid of a screwdriver See the following table for the suitable wire size width Terminal housing High Density Housing Wire size width single core wires 0 08 1 5 mm2 Wire size width fine wire cond...

Page 19: ...al ground internally connected to terminal point 3 Shield 8 PE contact internally connected to terminal point 4 KL4002 connection Terminal point No Comment Output 1 1 Output 1 n c 2 not used GND 3 Internal ground internally connected to terminal point 7 Shield 4 PE contact internally connected to terminal point 8 Output 2 5 Output 2 n c 6 not used GND 7 Internal ground internally connected to term...

Page 20: ...ground internally connected to terminal point 6 Output 3 3 Output 3 GND 4 Internal ground internally connected to terminal point 8 Output 2 5 Output 2 GND 6 Internal ground internally connected to terminal point 2 Output 4 7 Output 4 GND 8 Internal ground internally connected to terminal point 4 LED description KL4004 LED Color Description Run1 LED Run2 LED Run3 LED Run4 LED green On Normal operat...

Page 21: ...ainst 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 sys tem if the supply voltage has been switched off or if a non explosive atmosphere is en sured The connections of the certified components may only be connected or disconnected if the supply voltage has been switc...

Page 22: ...tect 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 sys tem if the supply voltage has been switched off or if a non explosive atmosphere is en sured The connections of the certified components may only be connected or disconnected if the supply voltage has bee...

Page 23: ...the Beckhoff terminal systems in potentially explo sive areas 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 ...

Page 24: ...s 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 documentation purposes you are provided with the breakdown of the terminal station a parts list of modules used and a list of the parameters you have modified After an upload existing fieldbus stations are at your ...

Page 25: ...es 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 possibiliti...

Page 26: ...htbus 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 13 Mapping in the Lightbus coupler example for KL4002 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...

Page 27: ...KL4002 Other Bus Couplers and further information Further information about the mapping configuration of Bus Couplers can be found in the Appendix of the respective Bus Coupler manual under Master configuration The chapter on Mapping in the Bus Coupler 28 contains an overview of possible mapping configurations depending on the configurable parameters Note Parameterization with KS2000 The KS2000 co...

Page 28: ...fault setting in the Bus Coupler Bus Terminal The KS2000 configuration software or a master configuration software e g ComProfibus or TwinCAT System Manager can be used to change this default setting If the terminals are fully evaluated they occupy memory space in the input and output process image The following tables provide information about how the terminals map themselves in the Bus Coupler d...

Page 29: ...hernet coupler and Bus Terminal Controller BCxxxx BXxxxx Conditions Word offset High byte Low byte Complete evaluation yes Motorola format no Word alignment yes 0 Res Ch0 CB SB 1 Ch0 D1 Ch0 D0 2 3 Conditions Word offset High byte Low byte Complete evaluation yes Motorola format yes Word alignment yes 0 Res Ch0 CB SB 1 Ch0 D0 Ch0 D1 2 3 Key Complete evaluation The terminal is mapped with control an...

Page 30: ...ightbus Ethernet coupler and Bus Terminal Controller BCxxxx BXxxxx Conditions Word offset High byte Low byte Complete evaluation yes Motorola format no Word alignment yes 0 Res Ch0 CB SB 1 Ch0 D1 Ch0 D0 2 Res Ch1 CB SB 3 Ch1 D1 Ch1 D0 Conditions Word offset High byte Low byte Complete evaluation yes Motorola format yes Word alignment yes 0 Res Ch0 CB SB 1 Ch0 D0 Ch0 D1 2 Res Ch1 CB SB 3 Ch1 D0 Ch1...

Page 31: ... 1 Ch1 CB SB Ch0 D1 2 Ch1 D1 Ch1 D0 3 Ch2 D0 Ch2 CB SB 4 Ch3 CB SB Ch2 D1 5 Ch3 D1 Ch3 D0 Conditions Word offset High byte Low byte Complete evaluation yes Motorola format yes Word alignment no 0 Ch0 D1 Ch0 CB SB 1 Ch1 CB SB Ch0 D0 2 Ch1 D0 Ch1 D1 3 Ch2 D1 Ch2 CB SB 4 Ch3 CB SB Ch2 D0 5 Ch3 D0 Ch3 D1 Default mapping for Lightbus Ethernet coupler and Bus Terminal Controller BCxxxx BXxxxx Conditions...

Page 32: ...M R10 33 Multiplex shift register 0x0218 R ROM R11 33 Signal channels 0x0218 R ROM R12 33 Minimum data length 0x9800 R ROM R13 33 Data structure 0x0000 R ROM R14 reserved 0x0000 R R15 33 Alignment register variable R W RAM R16 33 Hardware version number 0x R W SEEROM R17 33 Hardware compensation Offset specific R W SEEROM R18 34 Hardware compensation Gain specific R W SEEROM R19 34 Manufacturer sc...

Page 33: ...ster Meaning 0x00 Terminal with no valid data type 0x01 Byte array 0x02 Structure 1 byte n bytes 0x03 Word array 0x04 Structure 1 byte n words 0x05 Double word array 0x06 Structure 1 byte n double words 0x07 Structure 1 byte 1 double word 0x08 Structure 1 byte 1 double word 0x11 Byte array with variable logical channel length 0x12 Structure 1 byte n bytes with variable logical channel length e g 6...

Page 34: ...er The user parameters are stored in a serial EEPROM in the terminal and are retained in the event of voltage drop out The user area is write protected by a code word Note R31 Code word register in RAM The code word 0x1235 must be entered here so that parameters in the user area can be modified If any other value is entered into this register the write protection is active When write protection is...

Page 35: ...e 36 REG 1bin or in process data exchange 35 REG 0bin 5 5 1 Process data exchange Control byte in process data exchange REG 0 A gain and offset calibration of the terminal can be carried out with the control byte The code word must be entered in R31 so that the terminal calibration can be carried out The gain and offset of the terminal can then be calibrated The parameter will only be saved perman...

Page 36: ...nce the status byte in the input process image has returned an acknowledgment 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 0bin Process data exchange REG 1bin Access to register structure W R 0bin Read register W R 1bin Write register A5 A0 register ad...

Page 37: ...the terminal returns the register address with bit 7 for register access as acknowledgment Byte Byte 3 Byte 2 Byte 1 Byte 0 Name DataIN 1 DataIN 0 Not used Status byte Value 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 version from Register 9 Output Data B...

Page 38: ...1bin 0x12 0x35 Explanation Bit 0 7 set means Register communication switched on Bit 0 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 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 1...

Page 39: ...ple The bits of the feature register change the properties of the terminal and have a different meaning depending 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 Input data response from the Bus Terminal Byte 0 Status byte Byte 1 DataIN1 high byte Byte 2 Da...

Page 40: ...OUT1 low byte 0xDF 1101 1111bin 0x00 0x00 Explanation Bit 0 7 set means Register communication switched on Bit 0 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 answer of the bus terminal Byte 0 Status byte Byte 1 DataIN1 high byte Byte 2 DataIN1 lo...

Page 41: ... 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 Support offers you comprehensive technical assistance helping you not only with the application of individual Beckhoff products but also with other wide ranging services support design programming and commis...

Page 42: ...Standard wiring 16 Fig 7 Pluggable wiring 16 Fig 8 High Density Terminals 16 Fig 9 Connecting a cable on a terminal point 17 Fig 10 KL4001 KL4002 connection and LEDs 19 Fig 11 KL4004 connection and LEDs 20 Fig 12 KS2000 configuration software 24 Fig 13 Mapping in the Lightbus coupler example for KL4002 26 Fig 14 Mapping in the Profibus coupler example for KL4002 26 Fig 15 Mapping in the Interbus c...

Reviews: