2.2Technical data .................................................................................................................................11
3 Mounting and wiring................................................................................................................................12
3.1Instructions for ESD protection........................................................................................................12
3.2Installation on mounting rails ...........................................................................................................12
3.3Installation instructions for enhanced mechanical load capacity .....................................................15
6.1Support and Service ........................................................................................................................43
KL32143Version: 1.2.0
Table of contents
KL32144Version: 1.2.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.
KL32146Version: 1.2.0
1.3Documentation Issue Status
VersionComment
1.2.0• Update Chapter “Instructions for ESD protection”
1.1.0• Design of the safety instructions adapted to IEC 82079-1
• Update chapter Notes on the documentation
• Update Technical data
• Chapter Instructions for ESD protection added
• Chapter Installation instructions for enhanced mechanical load capacity added
• Example program added to chapter “KS2000 Configuration software“
• Correction chapter Register description
• Update chapter Connection system -> Connection
1.0.0• First published
0.5• Preliminary version (internal only)
Firmware and hardware versions
Foreword
Documentation
Version
1.1.01A01
1.0.01A00
0.51A00
The firmware and hardware versions (delivery state) can be taken from 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.: 40 15 1A 00:
40 - week of production 40
15 - year of production 2015
1A - firmware version 1A
00 - hardware version 00
KL3214
FirmwareHardware
1.4Beckhoff Identification Code (BIC)
The Beckhoff Identification Code (BIC) is increasingly being applied to Beckhoff products to uniquely identify
the product. The BIC is represented as a Data Matrix Code (DMC, code scheme ECC200), the content is
based on the ANSI standard MH10.8.2-2016.
KL32147Version: 1.2.0
Foreword
Fig.1: BIC as data matrix code (DMC, code scheme ECC200)
The BIC will be introduced step by step across all product groups.
Depending on the product, it can be found in the following places:
• on the packaging unit
• directly on the product (if space suffices)
• on the packaging unit and the product
The BIC is machine-readable and contains information that can also be used by the customer for handling
and product management.
Each piece of information can be uniquely identified using the so-called data identifier
(ANSIMH10.8.2-2016). The data identifier is followed by a character string. Both together have a maximum
length 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
Type of
no.
information
1Beckhoff order
number
2Beckhoff Traceability
Number (BTN)
3Article descriptionBeckhoff article
4QuantityQuantity in packaging
5Batch numberOptional: Year and week
6ID/serial numberOptional: Present-day
7Variant numberOptional: Product variant
...
ExplanationData
identifier
Beckhoff order number 1P81P072222
Unique serial number,
see note below
description, e.g.
EL1008
unit, e.g. 1, 10, etc.
of production
serial number system,
e.g. with safety products
number on the basis of
standard products
S12SBTNk4p562d7
1K321KEL1809
Q6Q1
2P142P401503180016
51S1251S678294104
30P3230PF971, 2*K183
Number of digits
incl. data identifier
Example
KL32148Version: 1.2.0
Foreword
Further types of information and data identifiers are used by Beckhoff and serve internal processes.
Structure of the BIC
Example of composite information from item 1 to 4 and 6. The data identifiers are marked in red for better
display:
BTN
An important component of the BIC is the Beckhoff Traceability Number (BTN, item no.2). The BTN is a
unique serial number consisting of eight characters 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 introduced step by step, so it may happen that the BTN is not yet
coded in the BIC.
NOTE
This information has been carefully prepared. However, the procedure described is constantly being further
developed. We reserve the right to revise and change procedures and documentation at any time and without prior notice. No claims for changes can be made from the information, illustrations and descriptions in
this information.
KL32149Version: 1.2.0
Product overview
2Product overview
2.1Introduction
Fig.2: KL3214-0000
The KL3214 analog HD input terminal allows four resistance sensors to be connected directly on a width of
12mm.
The Bus Terminal's circuitry can handle sensors using the 3-wire technique. A microprocessor handles
linearization across the whole temperature range, which is freely selectable.
The Bus Terminal's standard settings are: resolution 0.1°C. Sensor malfunctions such as broken wires are
indicated by error LEDs.
Bit width in the input process image4 x 16bit data, 4 x 8bit status (optional)
Bit width in the output process image4 x 8bit Control (optional)
Supply voltage for internal electronicvia the K-bus
Current consumption from K-bustypically 120mA
Electrical isolation500V (K-bus/signal voltage)
Special featuresBroken wire detection
Weightapprox. 60g
Dimensions (W x H x D)approx. 15mm x 100mm x 70mm (width aligned:
12mm)
Mountingon 35mm mounting rail conforms to EN 60715
Permissible ambient temperature during operation 0°C ... +55°C
Permissible ambient temperature during storage-25°C ... +85°C
Permissible relative humidity95%, no condensation
Vibration/shock resistanceconforms to EN 60068-2-6 / EN 60068-2-27, see also
Installation instructions for terminals with increased
mechanical load capacity [}15]
EMC immunity/emissionconforms to EN 61000-6-2 / EN 61000-6-4
Installation positionvariable
Protection classIP20
ApprovalsCE, cULus
KL321411Version: 1.2.0
Mounting and wiring
3Mounting and wiring
3.1Instructions for ESD protection
NOTE
Destruction of the devices by electrostatic discharge possible!
The devices contain components at risk from electrostatic discharge caused by improper handling.
• Please ensure you are electrostatically discharged and avoid touching the contacts of the device directly.
• Avoid contact 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 terminated at the right hand end with a KL9010 bus end terminal, to ensure the
protection class and ESD protection.
Fig.3: Spring contacts of the Beckhoff I/O components
3.2Installation 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!
KL321412Version: 1.2.0
Assembly
Mounting and wiring
Fig.4: 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).
KL321413Version: 1.2.0
Mounting and wiring
Disassembly
Fig.5: 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.
KL321414Version: 1.2.0
Fig.6: 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!
3.3Installation instructions for enhanced mechanical load
capacity
WARNING
Risk of injury through electric shock and damage to the device!
Bring the Bus Terminal system into a safe, de-energized state before starting mounting, disassembly or
wiring of the Bus Terminals!
Additional checks
The terminals have undergone the following additional tests:
VerificationExplanation
Vibration10 frequency runs in 3 axes
6 Hz < f < 60 Hz displacement 0.35 mm, constant amplitude
For terminals with enhanced mechanical load capacity, the following additional installation instructions apply:
• The enhanced mechanical load capacity is valid for all permissible installation positions
• Use a mounting rail according to EN 60715 TH35-15
• Fix the terminal segment 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 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 to fasten the mounting rail
• The free length between the strain relief and the wire connection should be kept as short as possible. A
distance of approx. 10 cm should be maintained to the cable duct.
3.4Connection
3.4.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.7: 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.
KL321416Version: 1.2.0
Mounting and wiring
Pluggable wiring (ESxxxx / KSxxxx)
Fig.8: 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.
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.9: High Density Terminals
The Bus 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 (HD) 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 below!
KL321417Version: 1.2.0
Mounting and wiring
3.4.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!
Terminals for standard wiring ELxxxx/KLxxxx and for pluggable wiring ESxxxx/KSxxxx
Fig.10: 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 [}17]) 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
3.4.3Shielding
Shielding
Encoder, analog sensors and actors should always be connected with shielded, twisted paired
wires.
Mounting and wiring
KL321419Version: 1.2.0
Mounting and wiring
3.5Connection and LED displays
Fig.11: KL3214 - terminal points and LEDs
Connection - KL3214
Terminal pointNo.Comment
+R11Input +R1
RL12Input RL1
+R23Input +R2
RL24Input RL2
+R35Input +R3
RL36Input RL3
+R47Input +R4
RL48Input RL4
-R19Input –R1
n.c.10reserved
-R211Input –R2
n.c.12reserved
-R313Input -R3
n.c.14reserved
-R415Input -R4
n.c.16reserved
LED indicators
LEDDisplayDescription
RunGreen illumi-
nated
OffWatchdog-timer overflow has occurred.
Errorred illuminated The respective channel is affected by a short circuit or broken wire.
OffThe resistance is in the valid range of the characteristic curve.
Normal operation:
If no process data is transmitted to the bus coupler for 100ms, the green LEDs go out
The resistance is in the invalid range of the characteristic curve.
KL321420Version: 1.2.0
KS2000 Configuration software
4KS2000 Configuration software
4.1KS2000 - Introduction
The KS2000 configuration software permits configuration, commissioning and parameterization of bus
couplers, of the affiliated bus terminals and of Fieldbus Box Modules. The connection between bus coupler/
Fieldbus Box Module and the PC is established by means of the serial configuration cable or the fieldbus.
Fig.12: KS2000 configuration software
Configuration
You can configure the Fieldbus stations with the Configuration Software KS2000 offline. That means, setting
up a terminal station with all settings on the couplers and terminals resp. the Fieldbus 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 disposal for further editing.
Parameterization
KS2000 offers simple access to the parameters of a fieldbus station: specific high-level dialogs are available
for all bus couplers, all intelligent bus terminals and Fieldbus Box modules with the aid of which settings can
be modified easily. Alternatively, you have full access to all internal registers of the bus couplers and
intelligent terminals. Refer to the register description for the meanings of the registers.
KL321421Version: 1.2.0
KS2000 Configuration software
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.2Parameterization with KS2000
Connect the configuration interface of your fieldbus coupler with the serial interface of your PC via the
configuration cable and start the KS2000 configuration software.
Click on the Login button. The configuration software will now load the information for the
connected fieldbus station.
In the example shown, this is
• a BK9000 Bus Coupler for Ethernet
• a KL1xx2 digital input terminal
• a KL3214 multimeter terminal
• a KL9010 bus end terminal
KL321422Version: 1.2.0
KS2000 Configuration software
Fig.13: Display of the fieldbus station in KS2000
The left-hand KS2000 window displays the terminals of the fieldbus station in a tree structure.
The right-hand KS2000 window contains a graphic display of the fieldbus station terminals.
In the tree structure of the left-hand window, click on the plus-sign next to the terminal whose parameters
you wish to change (item 2 in the example).
Fig.14: KS2000 tree branch for channel 1 of the KL3214
For the KL3214, the branches Register, Settings and ProcData are displayed:
KL321423Version: 1.2.0
KS2000 Configuration software
• Register [}24] enables direct access to the KL3214 registers.
• A dialog mask for the parameterization of the KL3214 can be found under Settings [}26].
• ProcData displays the KL3214 process data.
4.3Register
You can access the registers of the KL3214 directly under Register.– The meaning of the register is
explained in the register overview.
KL321424Version: 1.2.0
KS2000 Configuration software
Fig.15: Register view in KS2000
KL321425Version: 1.2.0
KS2000 Configuration software
4.4Settings
The dialog mask for the parameterization of the KL3214 can be found under Settings.
Fig.16: Parameterization with the KS2000 configuration software
Operation mode
• User scaling active (R32.0 [}35])
You can activate user scaling here (default: deactivated).
• Watchdog timer active (R32.2 [}35])
Here you can activate the watchdog timer (default: deactivated).
• Siemens S5 format (R32.4 [}35])
Here you can activate the Siemens S5 format (default: deactivated).
• Resolution of 1/10 °C or 1/100 °C (R32.5 [}35])
Here you can select the resolution (default: 1/10 °C).
Filter settings (R37 [}36])
Here you can set the filter frequency (default: 50 Hz).
Here you can adapt the channel to the connected thermocouple (default: PT100).
KL321426Version: 1.2.0
KS2000 Configuration software
4.5Sample 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 examples. 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 document 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.
Fig.17: Settings of KL3314 via visualisation of TwinCAT 3
At least following configuration setup shall be present:
[coupler (e.g. BK1120) or embedded PC] + KL3314 + KL9010.
Preparations for starting the sample programs (tnzip file / TwinCAT 3)
• Click on the download button to save the Zip archive locally on your hard disk, then unzip the *.tnzip
archive file in a temporary folder.
Fig.18: Opening the *. tnzip archive
• Select the .tnzip file (sample program).
• A further selection window opens. Select the destination directory for storing the project.
• For a description of the general PLC commissioning procedure and starting the program please refer to
the terminal documentation or the EtherCAT system documentation.
• The EtherCAT device of the example should usually be declared your present system. After selection
of the EtherCAT device in the “Solutionexplorer” select the “Adapter” tab and click on “Search...”:
Fig.19: Search of the existing HW configuration for the EtherCAT 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 project NetId
can be viewed within the TwinCAT environment above, where a pull down menu can be opened to
choose a target system (by clicking right in the text field). The number blocks are placed in brackets
there next to each computer name of a target system.
KL321428Version: 1.2.0
KS2000 Configuration software
• Modify the NetId: By right clicking on "EtherCAT device" within the solution explorer a context menu
opens where "Change NetId..." have to be selected. The first 4 numbers of the NetId of the target
computer have to be entered; the both last values are 4.1 usually.
Example:
◦ NetId of project:myComputer (123.45.67.89.1.1)
◦ Entry via „Change NetId...“:123.45.67.89.4.1
KL321429Version: 1.2.0
Access from the user program
5Access from the user program
Different operating modes or functionalities may be set for the complex terminals. The General Description of
Registers explains those register contents that are the same for all complex terminals.
The terminal-specific registers are explained in the following section.
Access to the internal terminal registers is described in the Register Communication section.
5.1Control and status bytes
5.1.1Process data mode
Control byte (for process data mode)
The control byte (CB) is located in the output image, and is transmitted from the controller to the terminal.
BitCB.7CB.6CB.5CB.4CB.3CB.2CB.1CB.0
Name RegAccess R/W------
BitNameDescription
CB.7RegAccess 0
CB.6R/W0
bin
bin
1
bin
Register communication off (process data mode)
Read access
Write access
CB.5-reserved
CB.4-reserved
CB.3-reserved
CB.2-reserved
CB.1-reserved
CB.0-reserved
Status byte (for process data mode)
The status byte (SB) is located in the input image, and is transmitted from terminal to the controller.
BitSB.7SB.6SB.5SB.4SB.3SB.2SB.1SB.0
Name RegAccess Error----overrangeunderrange
BitNameDescription
SB.7RegAccess 0
SB.6Error1
bin
bin
Process data mode switched on
Measuring range exceeded, overrange or underrange; the Error LED lights
up or conversion error or invalid measuring range
SB.5-reserved
SB.4-reserved
SB.3-reserved
SB.2-reserved
SB.1overrange1
SB.0underrange 1
bin
bin
Electrical measuring range exceeded
Electrical measuring range undershot
KL321430Version: 1.2.0
Access from the user program
5.1.2Register communication
Control byte (for register communication)
The control byte (CB) is located in the output image, and is transmitted from the controller to the terminal.
BitCB.7CB.6CB.5CB.4CB.3CB.2CB.1CB.0
Name RegAccess R/WReg. no.
BitNameDescription
CB.7RegAccess 1
CB.6R/W0
CB.5
Reg. no.Register number:
to
CB.0
bin
bin
1
bin
Enter here the number of the register that you wish
• to read with input data word DataIN, or
• to write with output data word DataOUT.
Status byte (for register communication)
Register communication switched on
Read access
Write access
The status byte (SB) is located in the input image, and is transmitted from terminal to the controller.
BitSB.7SB.6SB.5SB.4SB.3SB.2SB.1SB.0
Name RegAccess R/WReg. no.
BitNameDescription
SB.7RegAccess 1
SB.6R0
SB.5
Reg. no.Number of the register that was read or written.
bin
bin
Acknowledgement for register access
Read access
to
SB.0
KL321431Version: 1.2.0
Access from the user program
5.2Register overview
The registers are used for parametering the Bus Terminals and are available for each channel. They can be
read or written by means of register communication.
Register
no.
R0 [}33]
R1 [}33]
R2 [}33]
R3 [}33]
R4reserved0x00000
R5reserved0x00000
R6Diagnostic register (not used)0x00000
R7Command register (not used)0x00000
R8 [}33]
R9Firmware version number0x31411A
R10Multiplex shift register0x0230560
R11Signal channels0x04181048
R12Minimum data length0x0098152
R13Data structure0x00044
R14reserved0x00000
CommentDefault valueR/WMemory
hexdec
Raw ADC valuevariableRRAM
ADC raw value RL (of the conductor)variableRRAM
Resistance RTDvariableRRAM
Resistance RLvariableRRAM
--
dec
--
dec
-RAM
dec
R/WRAM
dec
Terminal type0x0C8E3214
ASCII
dec
dec
dec
dec
dec
dec
RROM
RROM
RROM
RROM
RROM
RROM
--
R15Alignment registervariableR/WRAM
R16Hardware version number0x000000
R17 [}34]
R18 [}34]
Vendor calibration: Offset PT100specificRSEEROM
Vendor calibration: Gain PT100specificRSEEROM
R19reserved0x00000
R20reserved0x00000
R21 [}34]
R22 [}34]
R23 [}34]
R24 [}34]
Vendor calibration: Offset PT1000specificRSEEROM
Vendor calibration: Gain PT1000specificRSEEROM
Vendor calibration: Offset RLspecificRSEEROM
Vendor calibration: Gain RLspecificRSEEROM
R25reserved0x00000
ASCII
dec
dec
dec
RSEEROM
--
--
--
…......…......
R28reserved0x00000
R29Terminal type, special identification0x00000
R30reserved0x00000
R31 [}34]
R32 [}35]
R33 [}36]
R34 [}36]
Code word register0x00000
Feature register0x004064
User scaling: Offset0x00000
User scaling: Gain0x0100256
R35reserved0x00000
R36reserved0x00000
R37 [}36]
R38 [}36]
Filter setting0x00000
Compensation for the line resistance0x00000
R39reserved0x00000
dec
dec
dec
dec
dec
dec
dec
dec
dec
dec
dec
dec
--
RROM
--
R/WRAM
R/WSEEROM
R/WSEEROM
R/WSEEROM
--
--
R/WSEEROM
R/WSEEROM
--
…......…......
R63reserved0x00000
--
dec
KL321432Version: 1.2.0
Access from the user program
5.3Register description
The following registers are used for parameterization of the KL3214. They can be read or written via the
register communication with the aid of control, status and data bytes.
• R0: ADC raw value RTD
Raw value of the A/D converter (XR). The range is restricted to 16 bits; the three least significant bits
are discarded.
• R1: ADC raw value RL
Raw value of the A/D converter for the line (XRL). The range is restricted to 16 bits; the three least
significant bits are discarded.
• R2: Resistance RTD
Resistance RTD with a resolution of 1/32ohm with PT100 and 1/8ohm with PT1000.
• R3: Resistance RL
Resistance RL with a resolution of 1/32ohm.
• R6: Diagnostic register
The diagnostic register has no function in the KL3214.
• R7: Command register
The command register has no function in the KL3214.
• R8: Terminal description
Register R8 contains the designation of the KL3214 terminal: 0x0C8E (3214
• R9: Firmware version
Register R9 contains the ASCII coding of the terminal's firmware version, e.g. 0x3141 (1A)
corresponds to the ASCII character '1' and '0x41' to the ASCII character 'A'. This value cannot be
changed.
• R10: Data length (multiplex shift register)
R10 contains the number of multiplexed shift registers and their length in bits.
• R11: Signal channels
Unlike R10, this contains the number of channels that are logically present. Thus for example a shift
register that is physically present can perfectly well consist of several signal channels.
• R12: Minimum data length
The particular byte contains the minimum data length for a channel that is to be transferred. If the MSB
is set, the control and status byte is not necessarily required for the terminal function and is not
transferred to the control, if the Bus Coupler is configured accordingly.
• R13: Data structure (data type register)
dec
).
. '0x31'
ASCII
Data type registerMeaning
0x00Terminal with no valid data type
0x01Byte array
0x02Structure: 1 byte, n bytes
0x03Word array
0x04Structure: 1 byte, n words
0x05Double word array
0x06Structure: 1 byte, n double words
0x07Structure: 1 byte, 1 double word
0x08Structure: 1 byte, 1 double word
0x11Byte array with variable logical channel length
0x12Structure: 1 byte, n bytes with variable logical channel length (e.g. 60xx)
0x13Word array with variable logical channel length
0x14Structure: 1 byte, n words with variable logical channel length
0x15Double word array with variable logical channel length
0x16Structure: 1 byte, n double words with variable logical channel length
KL321433Version: 1.2.0
Access from the user program
• R15: Alignment register
Via the alignment register bits, the Bus Coupler arranges the address range of an analog terminal such
that it starts at a byte boundary.
• R16: Hardware version number
Register R16 contains the hardware revision level of the terminal; this value cannot be changed.
• R17: Vendor calibration - offset PT100
This register contains the vendor calibration offset for PT100.
• R18: Vendor calibration - gain PT100
This register contains the vendor calibration gain for PT100.
• R21: Vendor calibration - offset PT1000
This register contains the vendor calibration offset for PT1000.
• R22: Vendor calibration - gain PT1000
This register contains the vendor calibration gain for PT1000.
• R23: Manufacturer compensation - offset RL
This register contains the vendor calibration offset for RL.
• R24: vendor calibration - gain RL
This register contains the vendor calibration gain for RL.
• R29: Terminal type, special version
Register R29 contains the special designation of the KL3214-0000 terminal: 0x0000 (0000
• 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 with each restart of the terminal.
dec
).
KL321434Version: 1.2.0
Access from the user program
• R32: Feature register
The feature register specifies the terminal's configuration. Default: 0x0040 (64
Watchdog timer is active (the watchdog is triggered if no process data are
received for 100 ms)
R32.1-reserved0
R32.0enUserScal-
ing
0
bin
1
bin
User scaling deactivated0
User scaling activated
)
dec
dec
bin
bin
bin
bin
bin
bin
bin
KL321435Version: 1.2.0
Access from the user program
• R33: user scaling offset (default: 0x0000)
Here you can specify the offset for the user scaling.
Scaling: 1/10 °C (default) or 1/100 °C, see bit R32.5 of the feature register [}35].
The user scaling must be activated with bit R32.0 of the feature register.
• R34: user scaling gain (default: 0x0100)
Here you can specify the gain for the user scaling.
Scaling: Register value x 2-8. This means that 0x0100 (256
) corresponds to the factor 1.
dec
The user scaling must be activated with bit R32.0 of the feature register.
• R38: Line resistance calibration (default: 0x0000)
1 ohm corresponds to 32 digits.
Also see about this
2 Register description [}34]
5.4Examples of Register Communication
The numbering of the bytes in the examples corresponds to the display without word alignment.
5.4.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.
)0xXX0xXX
bin
.
bin
Input Data (answer of the bus terminal)
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:
KL321436Version: 1.2.0
Access from the user program
◦ ASCII code 0x33 represents the digit 3
◦ ASCII code 0x41 represents the letter A
The firmware version is thus 3A.
5.4.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
Explanation:
)0x120x35
bin
• 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.
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
KL321437Version: 1.2.0
Access from the user program
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.
Input data (response from the Bus Terminal)
Byte 0: Status byteByte 1: DataIN1, high byteByte 2: DataIN1, low byte
0xA0 (1010 0000
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
)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:
KL321438Version: 1.2.0
Access from the user program
• 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.
• The input data word (byte 1 and byte 2) is of no importance after the write access. Any values still
displayed are invalid!
KL321439Version: 1.2.0
Access from the user program
5.5Process image
Complex mapping
The following 12 bytes are transferred bi-directionally between KL3214 and control:
Byte offset (without
word alignment*)
00ByteStatus byte 0 (SB0)Control byte 0 (CB0)
12WordDataIN0DataOUT0
34ByteStatus byte 1 (SB1)Control byte 1 (CB1)
46WordDataIN1DataOUT1
68ByteStatus byte 2 (SB2)Control byte 2 (CB2)
710WordDataIN2DataOUT2
912ByteStatus byte 3 (SB3)Control byte 3 (CB3)
1014WordDataIN3DataOUT3
*) Word alignment: The Bus Coupler places values on even byte addresses
Compact mapping
The following 8 bytes are transmitted bidirectionally between KL3414 and controller:
Byte offset (with and without word
alignment*)
0WordDataIN0DataOUT0
2WordDataIN1DataOUT1
4WordDataIN2DataOUT2
6WordDataIN3DataOUT3
Byte offset (with
word alignment*)
FormatInput dataOutput data
FormatInput dataOutput data
*) word alignment has no effect with compact mapping
KL321440Version: 1.2.0
Access from the user program
5.6Mapping
Each Bus Terminal is mapped in the Bus Coupler. In the delivery state, this mapping occurs with the default
settings of the Bus Coupler for this terminal. The default setting can be changed with the KS2000
configuration software or with a master configuration software (e.g. TwinCAT System Manager or
ComProfibus).
If the terminals are complexly evaluated, they occupy memory space in the input and output process image.
The following tables provide information about the terminal mapping, depending on the conditions set in the
Bus Coupler.
Default mapping for:
Lightbus, EtherCAT, Ethernet and Bus Terminal Controller (BCxxxx, BXxxxx)
ConditionsWord offsetHigh byteLow byte
Complex evaluation: yes
Motorola format: no
Word alignment: yes
0reservedCh0 CB/SB
1Ch0 D1Ch0 D0
2r reservedCh1 CB/SB
3Ch1 D1Ch1 D0
ConditionsWord offsetHigh byteLow byte
Complex evaluation: yes
Motorola format: yes
Word alignment: yes
Key
• Complex evaluation:
The terminal is mapped with control and status byte.
• Motorola format:
Motorola or Intel format can be set.
• Word alignment:
The terminal is at word limit in the Bus Coupler.
• Ch n SB:
status byte for channel n (appears in the input process image).
• Ch n CB:
control byte for channel n (appears in the output process image).
• 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)
• reserved:
This byte occupies process data memory, although it is not used.
• "-":
This byte is not used or occupied by the terminal.
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:
http://www.beckhoff.com
You will also find further documentation for Beckhoff components there.
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