background image

Access from the user program

KL2521

33

Version: 2.1

R32: Feature register

[0x0030]
This register specifies the operation modes of the terminal. Thus, for instance, a user-specific scaling
can be enabled for the analog I/Os.

Feature bit no.

Description of the operation mode

Bit 0…Bit1

-

No function

Bit 2

0

[0] Watchdog timer active
In the delivery state, the watchdog timer is switched on. Either the manufacturer's
of the user's switch-on value is output if the watchdog overflows.

Bit 3

1

[0] Signed amount representation
Signed amount representation is active instead of two's complement representa-
tion. (-1 = 0x8001).

Bit 4

1

[1] The counter is cleared on a positive edge of the Counter_Clear bit in the con-
trol byte (Control.5)

Bit 5

1

[1] Ramp function active

Bit 6

0/1

[0] Ramp base frequency

• 0:10 Hz / s

• 1: 1000 Hz / s

Bit 7

0/1

[0] Input mode

• 0:relative

• 1: direct

Bit 8

0/1

[0] Behavior when watchdog triggered

• 0:Manufacturer's switch-on value

• 1: User switch-on value

Bit 9

1

[0] Travel distance control active

Bit 10

0/1

[0] Counter

• 0: delete

• 1: set

Bit 11…12

-

No function

Bit 13…15

Pos. logic

Neg. logic

[000] Operation mode

Range of values

000

100

Frequency modulation

0 - 500 kHz

001

101

Pulse-direction control

010

110

Incremental encoder

R35: User switch-on value

If the user switch-on value has been enabled with bit 

R32.8 [

}

 33]

 of the feature register, the terminal

sets its output to the user switch-on value in place of the manufacturer switch-on value on the
occurrence of a system reset or a watchdog timer overflow (terminal has not received any process data
for 100 ms).

R36: Base frequency 1 (low word)

This register contains the low word of the base frequency 1.
The base frequency 1 is used if

◦ the ramp function is deactivated and

◦ the Frequency_Selection bit (Control.0) is 0.

R37: Base frequency 1 (high word)

This register contains the high word of the base frequency 1.
The base frequency 1 is used if

◦ the ramp function is deactivated and

◦ the Frequency_Selection bit (Control.0) is 0.

R38: Base frequency 2 (low word)

This register contains the low word of the base frequency 2.
The base frequency 2 is used if

◦ the ramp function is deactivated and

◦ the Frequency_Selection bit (Control.0) is 1.

Summary of Contents for KL2521 Series

Page 1: ...Documentation KL2521 One Channel Pulse Train Output Terminals RS422 24 V DC 2 1 2018 01 31 Version Date...

Page 2: ......

Page 3: ...Connection 17 3 4 1 Connection system 17 3 4 2 Wiring 19 3 4 3 Shielding 20 3 5 KL2521 xxxx Connection and LED description 21 3 6 ATEX Special conditions standard temperature range 25 3 7 ATEX Docume...

Page 4: ...Table of contents KL2521 4 Version 2 1...

Page 5: ...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 Gm...

Page 6: ...liar 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...

Page 7: ...10 KL2521 0024 Firmware Hardware Firmware Firmware Firmware Firmware 4F 08 4A 08 4F 4F 2 0 4F 08 4F 4F The firmware and hardware versions delivery state of the terminal can be found in the serial numb...

Page 8: ...onnection to RS422 receivers and for the direct connection of an optocoupler without external supply voltage default mode The terminal KL2521 0010 contains additional outputs 230 VAC DC 100 mA instead...

Page 9: ...nced mechanical load capacity EMC immunity emission conforms to EN 61000 6 2 EN 61000 6 4 Protection class IP20 Installation position variable Approval CE ATEX 25 CULus CE CULus dependent on the hardw...

Page 10: ...ir resolution of 1 Hz per bit GF1 registers 36 37 or GF2 registers 38 39 The terminal operates internally at 16 MHz with a resolution of 32 bits This corresponds to a theoretical minimum step size of...

Page 11: ...equency to zero In order to travel to a destination with precision it is necessary that the time constant for the falling ramp is greater than that of the rising ramp by a certain factor This is neces...

Page 12: ...2 and 6 simulate an incremental encoder and enable the direct connection of an evaluation unit This also includes a servo drive or a frequency converter with an incremental encoder input Operating mo...

Page 13: ...ct 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 mu...

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

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

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: ...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 deforma...

Page 18: ...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 reduc...

Page 19: ...bles 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 di...

Page 20: ...ools 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 wit...

Page 21: ...21 0010 Output T GND T Z 4 Signal ground for the outputs A 5 Output A B 6 Output B Z 7 Input Z KL2521 0010 Output Z Shield 8 Shield KL2521 xxxx LED description LED Color Description Signal LED A B Inp...

Page 22: ...s apply to output B KL2521 0000 KL2521 0010 The outputs A and B of the EL2521 can be used in different connection modes An integrated DC DC converter supplies the output stage of the two channels A an...

Page 23: ...0000 for this up to hardware version 03 From hardware version 04 this is only possible with the special variant KL2521 0024 which was specially optimized for this application However since the KL2521...

Page 24: ...151 and KL5152 incremental encoder interface ter minals require the switching of the positive voltage Because the terminal points A and B of the KL2521 0024 are bridged internally the KL2521 0024 cann...

Page 25: ...inst 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 s...

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

Page 27: ...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 p...

Page 28: ...s 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 Fi...

Page 29: ...0 Hz maximum selected output frequency Process data 0x00FF 255dec Output frequency 778 22 Hz Process data Output value 0x0000 0dec 0 DC 0x3FFF 16383dec 50 of the base frequency rotation to the right 0...

Page 30: ...R R15 32 Alignment register variable R W RAM R16 32 Hardware version number 0x0003 3dec R W EEPROM R17 R30 reserved 0x0000 0dec R W R31 32 Code word register variable R W RAM R32 33 Feature register...

Page 31: ...wing registers R32 0x0030 48dec R38 0x86A0 34464dec R33 0x0000 0dec R39 0x0001 1dec R34 0x0000 0dec R40 0x03E8 1000dec R35 0x0000 0dec R41 0x03E8 1000dec R36 0xC350 50000dec R42 0x0064 100dec R37 0x00...

Page 32: ...ea SEEROM The manufacturer parameters are specific for each type of terminal They are programmed by the manufacturer but can also be modified by the controller The manufacturer parameters are stored i...

Page 33: ...active Bit 10 0 1 0 Counter 0 delete 1 set Bit 11 12 No function Bit 13 15 Pos logic Neg logic 000 Operation mode Range of values 000 100 Frequency modulation 0 500 kHz 001 101 Pulse direction control...

Page 34: ...er 40 with a accuracy of 10 or 1000 Hz s Feature 6 33 R41 Ramp time constant falling The ramp gradient for stopping can be set with an accuracy of 10 or 1000 Hz s Feature 6 33 using register 41 R42 Fr...

Page 35: ...requency 1 registers 36 37 1 Base frequency 2 registers 38 39 Status byte in process data exchange REG 0 The status byte is transferred from the terminal to the controller The status byte contains var...

Page 36: ...Name Description Bit 7 Reg_Access 0bin Acknowledgement for process data exchange Bit 6 Error General error bit included with overflow underflow Bit 5 Out_Z_ACK Output Z Bit 4 Out_T_ACK Output T Bit 3...

Page 37: ...erted after the control or status byte and the register value is therefore placed on a word boundary Example 1 Reading of register 8 in the BK2000 with a KL3022 and the end terminal If the following b...

Page 38: ...number 9 with 00 1001bin The output data word byte 1 and byte 2 has no meaning during read access To change a register write the required value into the output word Input Data answer of the bus termin...

Page 39: ...no importance after the write access Any values still displayed are invalid II Read Register 31 check the set code word Output Data Byte 0 Control byte Byte 1 DataOUT1 high byte Byte 2 DataOUT1 low by...

Page 40: ...alue 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 Outp...

Page 41: ...ction 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 terminal returns a value as a receipt in the...

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

Page 43: ...10 Connecting a cable on a terminal point 19 Fig 11 KL2521 xxxx Connection and LEDs 21 Fig 12 Internal circuit of the inputs T and Z 22 Fig 13 KL2521 0000 on the RS485 RS232 receiver 22 Fig 14 EL2521...

Reviews: