background image

Access from the user program

KL5121

39

Version: 3.1.0

• The terminal returns the current value of the code word register in the input data word (byte 1 and byte

2).

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

bin

)

0x00

0x02

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 indicate register number 32 with 10 0000

bin

.

• The output data word (byte 1 and byte 2) contains the new value for the feature register.

 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.

Input data (response from the Bus Terminal)

Byte 0: Status byte

Byte 1: DataIN1, high byte

Byte 2: DataIN1, low byte

0xA0 (1010 0000

bin

)

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.

• The input data word (byte 1 and byte 2) is of no importance after the write access. Any values still

displayed are invalid!

IV. Read Register 32 (check changed feature register)

Output Data

Byte 0: Control byte

Byte 1: DataOUT1, high byte

Byte 2: DataOUT1, low byte

0xA0 (1010 0000

bin

)

0xXX

0xXX

Explanation:

• Bit 0.7 set means: Register communication switched on.

• Bit 0.6 not set means: reading the register.

• Bits 0.5 to 0.0 indicate register number 32 with 10 0000

bin

.

• The output data word (byte 1 and byte 2) has no meaning during read access.

Input Data (answer of the bus terminal)

Byte 0: Status byte

Byte 1: DataIN1, high byte

Byte 2: DataIN1, low byte

0xA0 (1010 0000

bin

)

0x00

0x02

Explanation:

• The terminal returns the value of the control byte as a receipt in the status byte.

• The terminal returns the current value of the feature register in the input data word (byte 1 and byte 2).

Summary of Contents for KL5121

Page 1: ...Documentation KL5121 Incremental encoder interface with programmable Outputs 3 1 0 2020 02 17 Version Date...

Page 2: ......

Page 3: ...nnection 17 3 4 1 Connection system 17 3 4 2 Wiring 20 3 4 3 Shielding 21 3 5 ATEX Special conditions standard temperature range 21 3 6 ATEX Documentation 22 4 Configuration Software KS2000 23 4 1 KS2...

Page 4: ...Table of content KL5121 4 Version 3 1 0...

Page 5: ...tion of products that have already been supplied may be made on the basis of the data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT EtherCAT EtherCAT G EtherCAT G10 Ether...

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

Page 7: ...rinted on the side 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...

Page 8: ...according to the table below If the information is shorter spaces are added to it The data under positions 1 to 4 are always available The following information is contained Item no Type of informatio...

Page 9: ...ters that will replace all other serial number systems at Beckhoff in the long term e g batch designations on IO components previous serial number range for safety products etc The BTN will also be in...

Page 10: ...upplied by an incremental encoder or a pulse generator and switches the outputs at predefined counter states The counter states can be transmitted to the terminal by the higher level automation device...

Page 11: ...consumption via K bus typ 60 mA Bit width in process image input output 2 x 16 bit data 2 x 8 bit control status Weight approx 60 g Permissible ambient temperature range during operation 0 C 55 C Perm...

Page 12: ...gate logic inputs and of the four outputs O1 O2 O3 and O4 Connections The KL5121 has 4 logical 24 V inputs and 4 logical 24 V outputs as well as 8 contacts for the 24 VDC supply of external devices A...

Page 13: ...with 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 t...

Page 14: ...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 a...

Page 15: ...ents 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...

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

Page 17: ...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 mo...

Page 18: ...luggable connection level enables 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 th...

Page 19: ...ors and conductors with a wire end sleeve can be inserted directly into the spring loaded terminal point without tools Wiring HD Terminals The High Density Terminals of the ELx8xx and KLx8xx series do...

Page 20: ...t toggle 2 The wire can now be inserted into the round terminal opening without any force 3 The terminal point closes automatically when the pressure is released holding the wire securely and permane...

Page 21: ...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 explosiv...

Page 22: ...3 6 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 Be...

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

Page 24: ...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 F...

Page 25: ...st to analog input and output terminals the KL5121 always also maps the control and status byte independently of the higher level fieldbus system BK2000 Lightbus Coupler With the BK2000 Lightbus Coupl...

Page 26: ...ytes of output data Fig 14 Mapping for Interbus Coupler sample for KL5121 Other Bus Couplers and further information Further information about the mapping configuration of Bus Couplers can be found in...

Page 27: ...ap themselves in the Bus Coupler depending on the parameters set 5 2 1 Standard format The KL5121 is mapped into the bus coupler depending on the set parameters The terminal always occupies memory spa...

Page 28: ...at can be set Word alignment The terminal is positioned on a word limit in the Bus Coupler CB Control byte appears in the process image of the outputs SB Status byte appears in the process image of th...

Page 29: ...EROM R31 Code word register variable R W RAM R32 Feature register 0x0000 R W SEEROM R33 Pulse duration Ti for channel 1 0x01F4 R W SEEROM R34 Rate time Tv for channel 1 0x1388 R W SEEROMR R35 Period T...

Page 30: ...channel analog terminal has 4 register sets This structure is divided into the following areas Range Register number Process variables 0 to 7 Type register 8 to 15 Manufacturer parameters 16 to 30 Use...

Page 31: ...d R15 Alignment bits RAM The alignment bits are used to place the analog terminal in the Bus Coupler on a byte boundary R16 to R30 Manufacturer parameter area SEEROM The manufacturer parameters are sp...

Page 32: ...for 100 ms the outputs are reset Bit 5 1 1 workpiece encoder input latch is active 1 when there is a positive level at the enable input gate Bit 6 1 1 workpiece encoder input latch is active 1 when th...

Page 33: ...n also be accessed Controller output data CT 0 Control byte 0 D0 0 D1 0 the terminal s input data word 0 Controller input data ST 0 Status byte 0 D0 0 D1 0 the terminal s output data word 0 Control by...

Page 34: ...arily stored in the terminal s RAM Access to this data set is identical to access to the terminal s register set Controller output data CT 1 Control byte 1 D0 1 D1 1 input data word 1 of the terminal...

Page 35: ...l 3 N M O 4 Switch value O channel 3 N M O 5 Switch value 1 channel 4 N M O P 4 Switch value P channel 4 5 5 2 Register communication Register access via process data exchange Bit 7 1 Register mode If...

Page 36: ...re located in the following 2 data bytes The BK2000 is an exception here an unused data byte is inserted after the control or status byte and the register value is therefore placed on a word boundary...

Page 37: ...ple 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 1001bin 0xXX 0xXX Explanation Bit 0 7 set means Register...

Page 38: ...de 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 1111bin 0xXX 0xXX Explanation The t...

Page 39: ...fore changing the values Input data response from the Bus Terminal Byte 0 Status byte Byte 1 DataIN1 high byte Byte 2 DataIN1 low byte 0xA0 1010 0000bin 0xXX 0xXX Explanation The terminal returns a va...

Page 40: ...ecify 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 Da...

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

Page 42: ...sassembling of terminal 15 Fig 6 Power contact on left side 16 Fig 7 Standard wiring 18 Fig 8 Pluggable wiring 18 Fig 9 High Density Terminals 19 Fig 10 Connecting a cable on a terminal point 20 Fig 1...

Reviews: