3 Mounting and wiring................................................................................................................................15
3.1Installation on mounting rails ...........................................................................................................15
6.1Support and Service ........................................................................................................................40
KL6581 and KL65833Version: 2.1.0
Table of contents
KL6581 and KL65834Version: 2.1.0
Foreword
1Foreword
1.1Notes on the documentation
Intended audience
This description is only intended for the use of trained specialists in control and automation engineering who
are familiar with the applicable national standards.
It is essential that the documentation and the following notes and explanations are followed when installing
and commissioning these components.
It is the duty of the technical personnel to use the documentation published at the respective time of each
installation and commissioning.
The responsible staff must ensure that the application or use of the products described satisfy all the
requirements for safety, including all the relevant laws, regulations, guidelines and standards.
Disclaimer
The documentation has been prepared with care. The products described are, however, constantly under
development.
We reserve the right to revise and change the documentation at any time and without prior announcement.
No claims for the modification 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®, EtherCATG®, EtherCATG10®, EtherCATP®, SafetyoverEtherCAT®,
TwinSAFE®, XFC®, 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
The EtherCAT Technology is covered, including but not limited to the following patent applications and
patents: EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702 with corresponding
applications or registrations in various other countries.
EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH,
Germany.
Please note the following safety instructions and explanations!
Product-specific safety instructions can be found on following pages or in the areas mounting, wiring,
commissioning etc.
Exclusion of liability
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.
Description of instructions
In this documentation the following instructions are used.
These instructions must be read carefully and followed without fail!
DANGER
Serious risk of injury!
Failure to follow this safety instruction directly endangers the life and health of persons.
WARNING
Risk of injury!
Failure to follow this safety instruction endangers the life and health of persons.
CAUTION
Personal injuries!
Failure to follow this safety instruction can lead to injuries to persons.
NOTE
Damage to environment/equipment or data loss
Failure to follow this instruction can lead to environmental damage, equipment damage or data loss.
Tip or pointer
This symbol indicates information that contributes to better understanding.
KL6581 and KL65836Version: 2.1.0
1.3Documentation issue status
Version Comment
2.1.0• Connection assignment of KL6581 corrected
• Download links for TwinCAT libraries corrected
• Chapter Operation with other controllers extended
• New title page
2.0.0• Migration
• Technical data updated
• Wiring updated
1.2.0• Product overview updated
• Technical data updated
• Description of LED display updated
• KL6583-0100 EnOcean transceiver for 315MHz added
1.1.0Notes on the admissibility of EnOcean wireless technology added
1.0.0First public issue
Firmware and hardware versions
Foreword
Documentation
Version
2.1.0B302B302B202
2.0.0B301B202B202
1.2.0B300B202B202
1.1.0B200B101--
1.0.0B100B100--
*) The KL6583-0100 EnOcean transceiver is no longer available.
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: WWYYFFHH
WW - week of production (calendar week)
YY - year
FF - firmware version
HH - hardware version
KL6581-0000KL6583-0000KL6583-0100*
FirmwareHardwareFirmwareHardwareFirmwareHardware
Example with serial number 35 04 B1 00:
35 - week of production 35
04 - year of production 2004
B1 - firmware version B1
00 - hardware version 00
1.4Translation
Translation
This documentation has been prepared in German. All documents in other languages are derived
from this. If you require a translation for a specific language, please contact Beckhoff Support[}40].
KL6581 and KL65837Version: 2.1.0
Product overview
2Product overview
2.1KL6581-0000 - Introduction
Fig.1: KL6581-0000 - EnOcean Master Terminal
The bidirectional EnOcean technology receives signals from battery-less sensors or transmits data to
actuators. With a radio signal range of at least 30 m, the wiring of buildings can be simplified significantly.
The KL6581 EnOcean master terminal is the link between the KL6583 EnOcean transceiver and the
application. Up to eight KL6583 EnOcean transceivers may be connected to a KL6581 EnOcean master
terminal. The EnOcean data are transmitted via the corresponding fieldbus system or the controller. The
KL6583 EnOcean transceivers are connected to the KL6581 via two wires for the power supply and two
wires for the data bus, which transmits the EnOcean telegrams. The maximum total length of the data bus is
500 m.
EnOcean GmbH
For more information about EnOcean, see http://www.enocean.com.
KL6581 and KL65838Version: 2.1.0
Product overview
2.2KL6581-0000 - Technical data
Technical dataKL6581-0000
Number of outputs1
Number of connectable KL6583s8
Transmission standardCAN
CAN connection cableBeckhoff ZB5100 (sold by the meter)
Permitted cable length from the KL6581 to the last
KL6583
Data transfer rate125kbyte
Electrical isolation500V (K-bus/CAN)
Power supply for the electronicsvia the K-bus and through the power contacts
Current consumption from K-bustypically 60mA
Bit width in process imageOutput: 12 bytes data, input: 12bytes data
Weightapprox. 85g
Dimensions (W x H x D)approx. 15mm x 100mm x 70mm
Mounting [}15]
Permissible ambient temperature range during operation 0°C ... + 55°C
Permissible ambient temperature range during storage-25°C ... + 85°C
Permissible relative air humidity95%, no condensation
Vibration/shock resistanceconforms to EN60068-2-6 / EN60068-2-27
EMC immunity/emissionconforms to EN61000-6-2 / EN61000-6-4
Protection classIP20
Installation positionvariable
ApprovalCE, cULus
maximum 500m (line topology only)
on 35mm mounting rail conforms to EN60715
KL6581 and KL65839Version: 2.1.0
Product overview
2.3KL6581-0000 - Diagnostic LEDs
The LEDs indicate the operating state of the KL6581-0000.
Fig.2: KL6581-0000 - Diagnostic LEDs
Meaning of the LED displays
LEDColorState and significance
Onoffflashes brieflyflashes at 1-sec-
K-Bus
Run
ErrorredFault occurred: see status
SendgreenCommunication with the
Receive green-Data are being
greenLit, either weakly or strongly:
K-bus communication is OK
bytes SB.1 to SB.6 for error
description
KL6583 works properly when
the Send and Receive LEDs
light up continuously.
No K-bus
communication
No error--
-Data are being sent
K-bus communication -
to a KL6583.
received from a
KL6583.
Wiring check via LEDs
The wiring between the KL6581-0000 and the KL6583 devices is OK when
• the Receive and Send LEDs of the KL6581-0000 light up continuously, and
• LED 3 lights up continuously on all connected KL6583 devices.
ond intervals
If the Send and
Receive LEDs
flash at 1-second
intervals, the
communication
with the KL6583 is
faulty.
KL6581 and KL658310Version: 2.1.0
Product overview
2.4KL6583 - Introduction
Fig.3: KL6583 - EnOcean transceiver
The EnOcean transceivers enable sending and receiving of EnOcean data. The antenna is integrated in the
transceivers.
Two versions:
• KL6583-0000 (868.35MHz) with approval for the European Union and Switzerland
• KL6583-0100 (315MHz) with approval for the USA and Canada (no longer available)
NOTE
Check the admissibility of the operation in your country
Permission for use in other countries must be clarified explicitly!
The KL6583 EnOcean transceivers can be operated in following countries without registration or fee:
• KL6583-0000: European Union and Switzerland
• KL6583-0100: USA and Canada (see KL6583-0100 for USA and Canada [}27])
The transceivers are connected to the KL6581-0000 EnOcean master terminal via a bus connection and
supplied from it with 24V.
KL6581 and KL658311Version: 2.1.0
Product overview
Fig.4: Up to eight KL6583 devices may be connected to one KL6581.
The maximum length of the data bus is 500meters. The transceivers are addressed via an address selection
switch.
Up to eight transceivers can be connected to one KL6581-0000.
The data is transferred from the transceivers to the KL6581-0000 via the CAN protocol and is therefore
available to the higher-level controller.
EnOcean GmbH
For more information about EnOcean, see http://www.enocean.com.
KL6581 and KL658312Version: 2.1.0
Product overview
2.5KL6583 - Technical Data
Technical dataKL6583-0000KL6583-0100*
Connection2 x 2-wire directly at the KL6581-0000 Bus Terminal
Transmission standardCAN
CAN connection cableBeckhoff ZB5100 (sold by the meter)
Permitted cable length from the KL6581 to the
last KL6583
Data transfer rate125kbyte
Electrical isolationnone
Power supply for the electronicsfrom the power contacts of the KL6581 (24VDC)
Current consumption from the power contacts
of the KL6581-0000
Center frequency868.3 mHz315 MHz
Occupied frequency band868.0 … 868.6MHz (600kHz)-
Maximum transmission power (permissible)25mW e.r.p.-
Transmission power2mW (3dBm)-
Receiver category2-
Transfer range300m in free field,
Radio telegramdepending on sensor type (32-bit sensor ID number,
Antennaintegrated in the housing
Weightapprox. 90g
Housinground upper section for installation (ceiling/wall) with flange
Dimensions (W x H x D)Height: 57mm,
Mountingvariable
Permissible ambient temperature range during
operation
Permissible ambient temperature range during
storage
Permissible relative air humidity95%, no condensation
Vibration/shock resistanceconforms to EN60068-2-6 / EN60068-2-27
EMC immunity/emissionconforms to EN61000-6-2 / EN61000-6-4
Protection classIP40
Installation positionvariable
ApprovalCEFCC
Permission for operation inEuropean Union and SwitzerlandUSA and Canada
maximum 500m (line topology only)
typical 20mA (24VDC)
30m in buildings
number of user bytes unlimited), sending and receiving
connection for main housing, upper section with cable
opening; color: grey-white (RAL9002)
Diameter: 72mm (round upper section for installation);
Diameter: 110mm (main housing with flange connection)
0°C ... + 55°C
-25°C ... + 85°C
*) The KL6583-0100 EnOcean transceiver is no longer available.
KL6581 and KL658313Version: 2.1.0
Product overview
2.6KL6583 diagnostic LEDs
The LEDs indicate the operating state of the KL6583.
Lights up briefly each time an EnOcean
Frame is sent
addresses: 1 to 8)
• 1 second no communication with the
KL6581
• goes out briefly, EnOcean data being
received or sent
Wiring check via LEDs
The wiring between the KL6581 and the KL6583 devices is OK when
• the Receive and Send LEDs of the KL6581 light up continuously, and
• LED3 of all connected KL6583 devices lights up continuously.
KL6581 and KL658314Version: 2.1.0
Mounting and wiring
3Mounting and wiring
3.1Installation 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 35mm mounting rails (DIN rails
according to EN60715) by applying slight pressure:
1. First attach the fieldbus coupler to the mounting rail.
2. The bus terminals are now attached on the right-hand side of the fieldbus coupler. Join the components with tongue and groove and push the terminals against the mounting rail, until the 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 assembled, no significant gap should
be visible between the housings.
Fixing of mounting rails
The locking mechanism of the terminals and couplers extends to the profile of the mounting rail. At
the installation, the locking mechanism of the components must not come into conflict with the fixing
bolts of the mounting rail. To mount the mounting rails with a height of 7.5mm under the terminals
and couplers, you should use flat mounting connections (e.g. countersunk screws or blind rivets).
KL6581 and KL658315Version: 2.1.0
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 1cm 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.
2. Grasp the released terminal with thumb and index finger simultaneous at the upper and lower grooved
housing surfaces and pull the terminal out of the bus terminal block.
Connections within a bus terminal block
The electric connections between the Bus Coupler and the Bus Terminals are automatically realized by
joining the components:
• 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 24V)
or for higher voltages via power feed terminals.
Power Contacts
During the design of a bus terminal block, the pin assignment of the individual Bus Terminals must
be taken account of, since some types (e.g. analog Bus Terminals or digital 4-channel Bus Terminals) do not or not fully loop through the power contacts. Power Feed Terminals (KL91xx, KL92xx
or EL91xx, EL92xx) interrupt the power contacts and thus represent the start of a new supply rail.
PE power contact
The power contact labeled PE can be used as a protective earth. For safety reasons this contact mates first
when plugging together, and can ground short-circuit currents of up to 125A.
KL6581 and KL658316Version: 2.1.0
Fig.8: Power contact on left side
Mounting and wiring
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 230V).
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 10mm from the group of terminals.
WARNING
Risk of electric shock!
The PE power contact must not be used for other potentials!
KL6581 and KL658317Version: 2.1.0
Mounting and wiring
3.2Connection
3.2.1Connection 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:
• The terminals of ELxxxx and KLxxxx series with standard wiring include electronics and connection
level in a single enclosure.
• The terminals of ESxxxx and KSxxxx series feature a pluggable connection level and enable steady
wiring while replacing.
• The High Density Terminals (HD Terminals) include electronics and connection level in a single
enclosure and have advanced packaging density.
Standard wiring (ELxxxx / KLxxxx)
Fig.9: Standard wiring
The terminals of ELxxxx and KLxxxx series have been tried and tested for years.
They feature integrated screwless spring force technology for fast and simple assembly.
Pluggable wiring (ESxxxx / KSxxxx)
Fig.10: Pluggable wiring
The terminals of ESxxxx and KSxxxx series feature a pluggable connection level.
The assembly and wiring procedure is the same as for the ELxxxx and KLxxxx series.
The pluggable 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 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 height of the terminal remains unchanged.
KL6581 and KL658318Version: 2.1.0
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.08mm2 and 2.5mm2 can continue to be used with the proven spring
force technology.
The overview and nomenclature of the product names for ESxxxx and KSxxxx series has been retained as
known from ELxxxx and KLxxxx series.
High Density Terminals (HD Terminals)
Fig.11: High Density Terminals
The terminals from these series with 16 terminal points are distinguished by a particularly compact design,
as the packaging density is twice as large as that of the standard 12mm bus terminals. Massive conductors
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 doesn't support pluggable wiring.
It is also possible to connect the Standard and High Density Terminals with ultrasonically
“bonded” (ultrasonically welded) conductors. In this case, please note the tables concerning the
wire-size width!
3.2.2Wiring
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!
KL6581 and KL658319Version: 2.1.0
Mounting and wiring
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. The
terminal points are implemented in spring force technology. Connect the cables as follows:
1. Open a terminal point by pushing a screwdriver straight against the stop into the square opening
above the terminal point. Do not turn the screwdriver or move it alternately (don'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
permanently.
See the following table for the suitable wire size width.
Wire size width (conductors with a wire end sleeve)0.14 ... 1.5mm
2
2
2
0.08 ... 2.5mm
0,08 ... 2.5mm
0.14 ... 1.5mm
2
2
2
Wire stripping length8 ... 9mm9 ... 10mm
High Density Terminals (HD Terminals [}19]) with 16 terminal points
The conductors of the HD Terminals are connected without 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.
Wire size width (conductors with a wire end sleeve)0.14 ... 0.75mm
Wire size width (ultrasonically “bonded" conductors) only 1.5mm
2
2
2
2
Wire stripping length8 ... 9mm
KL6581 and KL658320Version: 2.1.0
Mounting and wiring
3.2.3Connection 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: KL6581-0000 - Connection assignment
Terminal pointNo.Connection for
CAN + (A)1A (CAN +)
+ 24 V
DC
224 V power contacts
GND3GND power contacts
Shield4Shield, internally connected with terminal point 8
CAN - (B)5B (CAN -)
+ 24 V
DC
624 V power contacts
GND7GND power contacts
Shield8Shield, internally connected with terminal point 4
KL6581 and KL658321Version: 2.1.0
Mounting and wiring
3.2.4Cabling between KL6581-0000 and KL6583
NOTE
Cabling instructions:
• The KL6583 must always be supplied with power from the KL6581-0000. Operation with any other
power supply is not permissible!
• The termination resistor must be switched on in the last device; set S1 and S2 to ON.
• Use only the Beckhoff CAN cable with the order identifier ZB5100. Order quantity: in meters.
• The total cable length (from the KL6581-0000 to the last KL6583) must not exceed 500meters.
• The topology is line; stubs may not be used.
• The line must always begin with a KL6581-0000. The KL6581-0000 must not be installed within the line!
• The maximum number of KL6583 devices that may be connected to a KL6581-0000 is eight.
Fig.14: Terminal points of the KL6583
MeaningKL6581-0000KL6583 X1 or X2
CAN +1CAN +
CAN -5CAN -
24 V DC2 or 624 V
GND3 or 7GND
Node address KL6583
Fig.15: Setting the node address with switch S3
S3 is for setting the node address. Only one address may ever be used in the line (valid addresses: 1...8).
Termination resistor
The termination resistor must be activated in the last module!
To do this, both DIP switches S1 and S2 must be set to ON.
Fig.16: Termination resistor ON
KL6581 and KL658322Version: 2.1.0
Fig.17: Termination resistor OFF
Risk of confusion
The number ‘1’ on the DIP switch is only for numbering:
The ‘1’ does not mean ON.
If a switch is set to ‘1’ it is OFF!
Mounting and wiring
KL6581 and KL658323Version: 2.1.0
Mounting and wiring
Cabling example
Fig.18: KL6581-0000, KL6583 - cabling example
KL6581 and KL658324Version: 2.1.0
EnOcean
4EnOcean
4.1EnOcean - overview
Technology
The EnOcean radio technology makes a far-reaching signal with low quantities of ambient energy possible.
With 50µWs, a standard EnOcean radio module can easily transmit a signal over a distance of 300m (in the
free field). The signal period for an EnOcean telegram is approx. 1 thousandth of second.
• License-free 868 MHz frequency band with 1% duty cycle
• Multiple telegram transmission with checksum
• Short telegrams (approx. 1 ms) lead to a small probability of collision
• Long range: 30m inside buildings or 300m in the free field
• Repeater available for extensions
• Unidirectional and bidirectional communication
• High data transmission rates of 125kbit/s
• Low ‘data overhead’
• ASK modulation
• Radio protocol is defined and integrated in modules
• Sensor profiles specified and adhered to by users
• Unique transmission ID (32-bit)
• No interference with DECT, WLAN, PMR systems etc.
• System design verified in industrial environment
Protocol structure
ProtocolDescriptionLength
ORGTelegram type1Byte
DB_3Data byte31Byte
DB_2Data byte21Byte
DB_1Data byte11Byte
DB_0Data byte01Byte
ID_3Transmitter ID byte 31Byte
ID_2Transmitter ID byte 21Byte
ID_1Transmitter ID byte 11Byte
ID_0Transmitter ID byte 01Byte
STATUSInformation status1Byte
KL6581 and KL658325Version: 2.1.0
EnOcean
4.2Range planning
Please follow the recommendations of the EnOcean Alliance (see http://www.enocean.com) when placing
the EnOcean devices. Adherence to the recommendations is conducive to an optimum range and high noise
immunity.
Name Message Type reservedreservedreservedModule addr. 3 Module addr. 2 Module addr. 1 Module addr. 0
Message Type:
• FALSE Radio Message
• TRUE Modul Massage
• See documentation for TCM120 Transceiver Module, available from the EnOcean GmbH.
Module address 1-8, node number of the KL6583
Error Codes
If the error bit CB.6 [}30] is set in the status byte, the CNODE contains the corresponding error code.
KL6581 and KL658328Version: 2.1.0
Programming
Error CodeNameCauseRemedy
16#10KL6581_WatchdogError:=The KL6851 does not answer anymore.Check the mapping and communication.
16#11KL6581_NoComWithKL6581:= The KL6851 does not answer.
16#12KL6581_idx_number_not_OK:= nIdx is not correct.nIdx may have a value from 0 to 64.
16#13KL6581_Switch_to_Stopp:=bInit it FALSESet bInit back to TRUE.
16#14KL6581_not_ready:=The terminal is not in data exchange.Check the mapping and communication.
16#15KL6581_No_KL6853_Found:= There is no KL6583 connected.Check the wiring to the KL6583.
16#16KL6581_TransmissionError:=The KL6851 does not answer anymore.Check the mapping and communication.
5.2.2Mapping
The Bus Terminals occupy addresses within the process image of the controller. The assignment of process
data (input and output data) and parameterization data (control and status bytes) to the control addresses is
called mapping. The type of mapping depends on:
• the fieldbus system used
• the terminal type
• the parameterization of the Bus Coupler (conditions) such as
◦ Intel or Motorola format
◦ word alignment switched on or off
The Bus Couplers (BKxxxx, LCxxxx) and Bus TerminalControllers (BCxxxx, BXxxxx) are supplied with
certain default settings. The default setting can be changed with the KS2000 configuration software or with a
master configuration software (e.g.TwinCAT System Manager or ComProfibus).
The following tables show the mapping depending on different conditions. For information about the contents
of the individual bytes please refer to the pages Process image [}28] and Control and Status Byte [}30].
Complete evaluation
For complete evaluation, the analog input terminals occupy addresses in the input and output process
image. Control and status bytes can be accessed. The terminal always occupies 12bytes of input data and
12bytes of output data. The KL6583 itself does not occupy any K-bus data, since it is addressed via the
process data of the KL6581.
Complete evaluation: any
Motorola format: any
Word alignment: any
0CNODESBCNODECB
1DB0ORGDB0ORG
2DB2DB1DB2DB1
3ID0DB3ID0DB3
4ID2ID1ID2ID1
5STATUSID3STATUSID3
Key
Complete evaluation: In addition to the process data, the control and status bytes are also mapped into the
address space.
Motorola format: Motorola or Intel format can be set.
Word alignment: In order for the word address range to commence at a word boundary, empty bytes are
inserted into the process image as appropriate.
SB : Status byte (appears in the input process image)
CB : Control byte (appears in the output process image)
KL6581 and KL658329Version: 2.1.0
Programming
5.2.3KL6581-0000 - Control and Status Byte
Process data mode
Control byte in process data mode
The control byte(CB) is located in the output image [}28], and is transmitted from the controller to the
terminal. In process data mode it has no function.
BitCB.7CB.6CB.5CB.4CB.3CB.2CB.1 CB.0
Name RegAccess Error-Addr Conflict -Buffer Full RxC TxC
Key
BitNameDescription
CB.7 RegAccess0
CB.6 Error0
CB.5 -1
CB.4 Addr Conflict1
CB.3 -1
CB.2 Buffer Full1
CB.1 RxC1
CB.0 TxC1
Register communication off (process data mode)
bin
Acknowledges the error code displayed in the CNODE [}28].
bin
reserved
bin
Address of a KL6583 doubly assigned
bin
reserved
bin
The internal data buffer has overflowed
bin
Toggle for the reception of data; if RxS <> RxC, then new data is present;
bin
toggling the bit signals to the terminal that the data have been fetched.
Toggle for sending data; if TxC <> TxS, then data are transmitted from the
bin
KL6851 to the KL6853.
Status byte in process data mode
The status byte(SB) is located in the input image [}28], and is transmitted from the terminal to the
controller.
BitSB.7SB.6SB.5SB.4SB.3SB.2SB.1 SB.0
Name RegAccess ErrorConfig Missmatch Addr Conflict Communication Error Buffer Full RxS TxS
Key
BitNameDescription
SB.7 RegAccess0
SB.6 Error0
SB.5 Config
Missmatch
SB.4 AddrConflict1
SB.3 Communication
Error
Acknowledgment for process data mode
bin
No error
bin
1
An error has occurred. The error code is in the CNODE [}28].
bin
1
Configuration error: Check the number of configured and connected KL6583
bin
devices and their addresses. (see info below this table)
Address of a KL6583 doubly assigned
bin
0
Communication OK
bin
1
The KL6581 has not found a KL6583 that is ready for operation. Check the
bin
cabling and the addresses.
SB.2 Buffer Full1
SB.1 RxS1
The internal data buffer has overflowed,
bin
Toggle for the reception of data; if RxS <> RxC, then new data is present;
bin
toggling the bit signals to the terminal that the data have been fetched.
SB.0 TxS1
Toggle for sending data; if TxC <> TxS, then data are transmitted from the
bin
KL6851 to the KL6853.
Enable display of ConfigMissmatch
The status bit SB.5 shows configuration errors once you have enabled the display by resetting bit
R34.15 in the feature register.
KL6581 and KL658330Version: 2.1.0
Programming
Register communication
Control byte for register communication
The control byte(CB) is located in the output image [}28], and is transmitted from the controller to the
terminal.
BitCB.7CB.6CB.5CB.4CB.3CB.2CB.1CB.0
NameRegAccess R/WReg. no.
Key
BitNameDescription
CB.7RegAccess1
CB.6R/W0
CB.5 to
Reg. no.Register number:
CB.0
Register communication switched on
bin
Read access
bin
1
Write access
bin
Enter the number of the register that you
- want to read with input data word DataIN1 [}28] or
- want to write with output data word DataOUT1 [}28].
Status byte for register communication
The status byte(SB) is located in the input image [}28], and is transmitted from the terminal to the
controller.
BitSB.7SB.6SB.5SB.4SB.3SB.2SB.1SB.0
NameRegAccess R/WReg. no.
Key
BitNameDescription
SB.7RegAccess1
SB.6R0
SB.5 to
Reg. no.Number of the register that was read or written.
Acknowledgment for register access
bin
Read access
bin
SB.0
KL6581 and KL658331Version: 2.1.0
Programming
5.2.4Register overview
The registers are used to parameterize the terminal. They can be read or written by means of register
communication.
Register no.CommentDefault valueR/W Memory
R0reserved0x00000
dec
..................
R3reserved0x00000
R4 [}33]
Selection of the register page0x00000
R5reserved0x00000
dec
dec
dec
..................
R7reserved0x00000
R8 [}33]
R9 [}33]
Terminal type0x19B56581
Firmware versione.g. 0xB100RROM
R10Multiplex shift register0x0160352
R11Signal channels0x0160352
R12minimum data length of a channel0x606024672
R13Data structure0x00000
R14reserved0x00000
dec
dec
dec
dec
dec
dec
dec
R15Alignment registertypically 0x7F80 typically
32640
dec
R16reserved0x00000
R17internal usetypically 0x0000 typically 0
R18reserved0x00000
R19reserved0x00000
R20reserved for internal use0x00011
R21reserved for internal use0x05001280
R22reserved for internal use0x00000
R23reserved for internal use0x00FF255
R24reserved0x00000
dec
dec
dec
dec
dec
dec
dec
dec
dec
..................
R30reserved0x00000
R31 [}33]
R32
Code word register0x00000
Register to show the register pages
variablevariableRRAM
dec
dec
[}33] (see register 4)
..................
R63
Register to show the register pages
variablevariableRRAM
[}33] (see register 4)
--
--
R/W ROM
--
--
RROM
RROM
RROM
RROM
RROM
--
R/W RAM
--
REEPROM
REEPROM
REEPROM
REEPROM
REEPROM
REEPROM
REEPROM
--
--
R/W EEPROM
Register page 1
Register no.CommentDefault valueR/W Memory
R32 [}33]
R33 [}34]
R34 [}34]
R35reserved0x00000
KL6583 found modulesvariablevariableRRAM
Number of found modulesvariablevariable-RAM
Feature register0x00000
dec
dec
R/W RAM
--
..................
R63reserved0x00000
dec
--
KL6581 and KL658332Version: 2.1.0
Programming
Register page 2
Register no.CommentDefault valueR/W Memory
R32/33 [}34]
EnOcean ID of the KL6583 with CAN address1variable variable RRAM
..................
R36/47 [}34]
R48 [}34]
EnOcean ID of the KL6583 with CAN address8variable variable RRAM
Firmware version of the KL6583 with CAN address1variable variable RRAM
..................
R55 [}34]
R56 [}34]
Firmware version of the KL6583 with CAN address8variable variable RRAM
Status of the KL6583 with CAN address1variable variable -RAM
..................
R63 [}35]
Status of the KL6583 with CAN address8variable variable -RAM
5.2.5Register description
The registers are used to parameterize the terminal. They can be read or written by means of register
communication.
R4: Register page selection (read/write)
The KL6581-0000 has two register pages via which registers 32 to 63 can be addressed.
Using register 4, select which register page 32 to 63 is to be shown. Valid values:
0: Register page 1
1: Register page 2
R8: Terminal type
Register R8 contains the ID for the terminal module.
KL6581-0000: 0x19B5 (6581
dec
)
R9: Firmware version
Register R9 contains the firmware version of the terminal, e.g. 0xB100 = 'B1'.
This value cannot be changed.
R31: Code word register
• If you write values into the user registers without first entering the user code word (0x1235) into the
code word register, the terminal will not accept the supplied data.
• If you write values into the user registers and have previously entered the user code word (0x1235) in
the code word register, these values are stored in the RAM registers and in the SEEPROM registers
and are therefore retained if the terminal is restarted.
The code word is reset if the terminal is restarted.
Register page 1
R32: KL6583 found modules (read only)
If the bit is set, then a corresponding module has been found.
Example:
0x0001 only one module with CAN address 1 found.
0x0005 two modules with CAN address 1 and 3 found.
0x00FF eight KL6583 found from address 1 to 8
KL6581 and KL658333Version: 2.1.0
Programming
R33: Number of KL6583 modules (read only)
Number of KL6853 modules found. Maximum 8.
R34: Feature register
The feature register specifies a variety of properties for the terminal.
BitFeatureValueExplanationDefault
R34.15EnableDisplay
ConfigMissmatch
0
The status bit SB5 [}30] does not show configuration errors.
bin
1
The status bit SB5 shows configuration errors.
bin
R34.14-reserved0
............
R34.0-reserved0
Register page 2
R32/R33 to R46/R47: EnOcean IDs of the connected KL6583
R32/R33: EnOcean ID of the KL6583 with CAN address1 (read only)
R34/R35: EnOcean ID of the KL6583 with CAN address2 (read only)
R36/R37: EnOcean ID of the KL6583 with CAN address3 (read only)
R38/R39: EnOcean ID of the KL6583 with CAN address4 (read only)
R40/R41: EnOcean ID of the KL6583 with CAN address5 (read only)
R42/R43: EnOcean ID of the KL6583 with CAN address6 (read only)
R44/R45: EnOcean ID of the KL6583 with CAN address7 (read only)
R46/R47: EnOcean ID of the KL6583 with CAN address8 (read only)
0
bin
bin
bin
R48 to R55: Firmware versions the connected KL6583
R48: Firmware version of the KL6583 with CAN address 1 (read only)
R49: Firmware version of the KL6583 with CAN address 2 (read only)
R50: Firmware version of the KL6583 with CAN address 3 (read only)
R51: Firmware version of the KL6583 with CAN address 4 (read only)
R52: Firmware version of the KL6583 with CAN address 5 (read only)
R53: Firmware version of the KL6583 with CAN address 6 (read only)
R54: Firmware version of the KL6583 with CAN address 7 (read only)
R55: Firmware version of the KL6583 with CAN address 8 (read only)
R56: State of the KL6583 with the CAN address 1 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
R57: State of the KL6583 with the CAN address 2 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
KL6581 and KL658334Version: 2.1.0
R58: State of the KL6583 with the CAN address 3 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
R59: State of the KL6583 with the CAN address 4 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
R60: State of the KL6583 with the CAN address 5 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
R61: State of the KL6583 with the CAN address 6 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
R62: State of the KL6583 with the CAN address 7 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
Programming
R63: State of the KL6583 with the CAN address 8 (read only)
0: does not exist
8: KL6583 is in operational state (in data exchange)
KL6581 and KL658335Version: 2.1.0
Programming
5.2.6Examples of Register Communication
The numbering of the bytes in the examples corresponds to the display without word alignment.
5.2.6.1Example 1: reading the firmware version from Register 9
Output Data
Byte 0: Control byteByte 1: DataOUT1, high byteByte 2: DataOUT1, low byte
0x89 (1000 1001
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 specify the register number 9 with 00 1001
• 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 Terminal)
)0xXX0xXX
bin
.
bin
Byte 0: Status byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0x890x330x41
Explanation:
• The terminal returns the value of the control byte as a receipt in the status byte.
• The terminal returns the firmware version 0x3341 in the input data word (byte 1 and byte 2). This is to
be interpreted as an ASCII code:
◦ ASCII code 0x33 represents the digit 3
◦ ASCII code 0x41 represents the letter A
The firmware version is thus 3A.
5.2.6.2Example 2: Writing to an user register
Code word
In normal mode all user registers are read-only with the exception of Register 31. In order to deactivate this write protection you must write the code word (0x1235) into Register 31. If a value other
than 0x1235 is written into Register 31, write protection is reactivated. Please note that changes to
a register only become effective after restarting the terminal (power-off/power-on).
I. Write the code word (0x1235) into Register 31.
Output Data
Byte 0: Control byteByte 1: DataOUT1, high byteByte 2: DataOUT1, low byte
0xDF (1101 1111
)0x120x35
bin
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 1111
.
bin
• The output data word (byte 1 and byte 2) contains the code word (0x1235) for deactivating write
protection.
KL6581 and KL658336Version: 2.1.0
Programming
Input Data (answer of the Bus Terminal)
Byte 0: Status byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0x9F (1001 1111
)0xXX0xXX
bin
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!
II. Read Register 31 (check the set code word)
Output Data
Byte 0: Control byteByte 1: DataOUT1, high byteByte 2: DataOUT1, low byte
0x9F (1001 1111
)0xXX0xXX
bin
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 specify the register number 31 with 01 1111
.
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 byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0x9F (1001 1111
)0x120x35
bin
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 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 byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0xE0 (1110 0000
)0x000x02
bin
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, depending on the type of terminal. Refer to the description of the feature register of your terminal (chapter Registerdescription) regarding the meaning of the individual bits before changing the values.
KL6581 and KL658337Version: 2.1.0
Programming
Input data (response from the Bus Terminal)
Byte 0: Status byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0xA0 (1010 0000
)0xXX0xXX
bin
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 byteByte 1: DataOUT1, high byteByte 2: DataOUT1, low byte
0xA0 (1010 0000
)0xXX0xXX
bin
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 byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0xA0 (1010 0000
)0x000x02
bin
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).
V. Write Register 31 (reset code word)
Output Data
Byte 0: Control byteByte 1: DataOUT1, high byteByte 2: DataOUT1, low byte
0xDF (1101 1111
)0x000x00
bin
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 1111
.
bin
• 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 byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0x9F (1001 1111
)0xXX0xXX
bin
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.
KL6581 and KL658338Version: 2.1.0
Programming
• The input data word (byte 1 and byte 2) is of no importance after the write access. Any values still
displayed are invalid!
KL6581 and KL658339Version: 2.1.0
Appendix
6Appendix
6.1Support and Service
Beckhoff and their partners around the world offer comprehensive support and service, making available fast
and competent assistance with all questions related to Beckhoff products and system solutions.
Beckhoff's branch offices and representatives
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.
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 commissioning of complex automation systems
• and extensive training program for Beckhoff system components