4.1.1 Beckhoff's branch offices and representatives 10
4.1.2 Beckhoff Headquarters 10
KL6071
Foreword
1 Foreword
1.1 Safety Instructions
1.1.1 Personnel Qualification
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 following notes and explanations are
followed when installing and commissioning these components.
1.1.2 Liability Conditions
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.
The documentation has been prepared with care. The products described
are, however, constantly under development. For that reason the
documentation is not in every case checked for consistency with
performance data, standards or other characteristics. None of the
statements of this manual represents a guarantee (Garantie) in the
meaning of § 443 BGB of the German Civil Code or a statement about the
contractually expected fitness for a particular purpose in the meaning of
§ 434 par. 1 sentence 1 BGB. In the event that it contains technical or
editorial errors, we retain the right to make alterations at any time and
without warning. 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.
1.1.3 State at Delivery
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.
Functionality The KL6071 SPI slave terminals provides communication with a serial
A maximum of 96 byte of data is exchanged between the terminal and the
2.1 Functional description
processor interface (SPI).
peripheral devices. The transmission starts with a rising edge at the CS
input and ends when 96 bytes are exchanged or with a falling edge at the
CS input. With the falling edge the input data is valid and can be
transmitted to the PLC.
13 14
A
B
C
D
5
6
7
8
CLK
1
2
3
4
front view
Connections Inputs (5 Volt TTL,10 kHz):
• DataIN
• CLK
• CS
• Ground
• Shield
Outputs (5 Volt TTL):
•DataOUT
Power contacts The KL6071 has no power contacts.
LED display The LEDs indicate the states of inputs and outputs.
Process data The input process image consists out of 6 byte input data.
Byte-Offset
1, 2, 3, 4, 5
Input of the PLC Output of the PLC
0
Status Control
DataIN0...DataIN4 DataOUT0...DataOUT4
2 KL6071
Terminal configuration
2.2 Technical data
Product name KL6071
Cut off frequency
Current consumption from K-Bus
Electrical isolation
Bit width in the input process image
Bit width in the output process image
Weight
Operating temperature
Storage temperature
Relative humidity
Vibration / Shock resistance
EMC resistance burst / ESD
Installation position
Type of protection
10 kHz
typically 50 mA
500 V
5 Byte input data, 1 status byte
5 Byte output data, 1 control byte
app. 60 g
0°C ... +55°C
-25°C ... +85°C
95%, no condensation
conforms to EN 60068-2-6 / EN 60068-2-27, EN 60068-2-29
conforms to EN 61000-6-2 / EN 61000-6-4
any
IP20
(K-Bus / field voltage)
rms
3 Terminal configuration
Register Comment Default value R/W Storage medium
R0
reserved 0x0000 R
...
... ... ... ...
R5
reserved 0x0000 R
R6
Diagnose-Register - not used 0x0000 R
R7
Command register - not used 0x0000 R
R8
Terminal type 6071 R ROM
R9
Firmware-Version 0x???? R ROM
R10
R11
R12
R13
R14
R15
R16
R17
R30
R31
R32
R33
R63
Multiplex shift register 0x0130 R ROM
Signal channels 0x0130 R ROM
minimum data length 0x3030 R ROM
Data structure 0x0000 R ROM
reserved 0x0000 R
Alignment register variable R/W RAM
Hardware version 0x???? R/W SEEROM
reserved 0x0000 R/W SEEROM
The complex terminals can be adjusted to different operating modes or
functionalities. The General Description of Register describes the contents
of the registers, which are identical for all complex terminals.
The terminal-specific registers are explained in the section following to it.
The access to the internal registers of the terminal is described in the
section Register Communication.
3.2.1 General register description
Complex terminals that possess a processor are capable of bidirectionally
ex-changing data with the higher-level control system. Below, these
terminals are referred to as intelligent bus terminals. They include the
analog inputs, the analog outputs, serial interface terminals (RS485,
RS232, TTY etc.), counter terminals, encoder interfaces, SSI interfaces,
PWM terminals and all other parameterizable terminals.
Internally, all intelligent terminals possess a data structure that is identical
in terms of it's essential characteristics. This data area is organized in
words and embraces 64 registers. The essential data and parameters of
the terminal can be read and adjusted by way of the structure. Function
calls with corresponding parameters are also possible. Each logical
channel of an intelligent terminal has such a structure (therefore, 4-channel
analog terminals have 4 register sets.
This structure is broken down into the following areas:
Register Application
0 to 7
8 to 15
16 to 30
31 to 47
48 to 63
Process variables
Type register
Manufacturer parameters
User parameters
Extended user area
Process variables
R0 to R7: Registers in the terminal’s internal RAM
The process variables can be used in additional to the actual process
image and their functions are specific to the terminal.
R0 to R5: Terminal specific registers
The function of these registers depends on the respective terminal type
(see terminal-specific register description).
R6: Diagnostic register
The diagnostic register may contain additional diagnostic information. In
the case of serial interface terminals, for example, parity errors that have
occurred during data transfer are indicated.
R7: Command register
High-Byte_Write = function parameter
Low-Byte_Write = function number
High-Byte_Read = function result
Low-Byte_Read = function number
Type registers
R8 to R15: Registers in the terminal’s internal ROM
The type and system parameters are programmed permanently by the
manufacturer and can only be read by the user but cannot be modified.
4 KL6071
Terminal configuration
R8: Terminal type:
The terminal type in register R8 is needed to identify the terminal.
R9: Firmware version X.y
The firmware version can be read as an ASCII character string.
3.2.1.1 R10: Data length
R10 contains the number of multiplexed shift registers and their length in
bits.
The bus coupler sees this structure.
R11: Signal channels
In comparison with R10, the number of logically existing channels is
located here. For example, one physically existing shift register may
consist of several signal channels.
R12: Minimum data length
The respective byte contains the minimum data length of a channel to be
transferred. If the MSB is set, then the control/status byte is not necessarily
needed for the function of the terminal and, with appropriate configuration
of the coupler, is not transferred to the control system.
Terminal without valid data type
Byte array
1 byte n bytes structure
Word array
1 byte n words structure
Double word array
1 byte n double words structure
1 byte 1 double word structure
1 byte 1 double word structure
Byte-array with a variable logical channel length
1 byte n bytes structure with a variable logical channel
length (eg 60xx)
Word-array with a variable logical channel length
1 byte n words structure with a variable logical channel
length
Double word array with a variable logical channel length
1 byte n double words structure with a variable logical
channel length
R14: not used
R15: Alignment bits (RAM)
The analog terminal is set to a byte limit in the terminal bus with the
alignment bits.
Manufacturer parameters
R16 to R30: Manufacturer parameter area (SEEROM)
The manufacturer parameters are specific to each terminal type. They are
programmed by the manufacturer but can also be modified from the control
system. The manufacturer parameters are stored permanently in a serial
EEPROM and are therefore not destroyed by power failures.
These registers can only be modified after setting a code word in R31.
KL6071 5
Terminal configuration
i
User parameters
Note
Extended application area
The KL6071 has no terminal specific registers!
R31 to R47: User parameter area (SEEROM)
The user parameters are specific to each terminal type. They can be
modified by the programmer. The user parameters are stored permanently
in a serial EEPROM in the terminal and cannot be destroyed by power
failures. The user area is write protected over a Codeword.
R31: Code word register in the RAM
The code word 0x1235 must be entered here to enable modification of
parameters in the user area. Write-protection is set if a different value is
entered in this register. When write protection is inactive, the code word is
returned during reading of the register. The register contains the value zero
when write protection is active.
R32: Feature register
This register defines the operating modes of the terminal. For example, a
user-specific scaling can be activated for the analog I/Os.
R33 to R47
Registers that depend on the terminal type
R47 to R63
These registers have not been implemented.
3.2.2 Terminal-specific register description
6 KL6071
Terminal configuration
3.3 Control und Status Byte
Control byte during process data exchange
The control byte is transmitted from the controller to the terminal. It can be
used
• during process data exchange (REG = 0
• in register mode (REG = 1
bin
).
bin
) or
Bit
Name
7 6 5 4 3 2 1 0
REG=0 0 0 A4 A3 A2 A1 A0
Key
Bit Name Comment
7 REG
6 0
5 0
0 for Process data mode
reserved
reserved
4-0 A4-A0 Offset from where reading or writing is done.
The offset is calculated as follows:
(A4…A0) x 5
Status byte during process data exchange
The status byte is transferred from the terminal to the control system. It
acknowledges the bits of the control byte.
Bit
Name
7 6 5 4 3 2 1 0
REG=0 0 CS_ST A4 A3 A2 A1 A0
Key
Bit Name Comment
7 REG
6 0
5 CS_ST
4-0 A4-0
0 for Process data mode
reserved
State of the CS Input
Address bits 0 to 4
KL6071 7
Terminal configuration
0
63
Terminal´s
HHL
L
3.4 Register communication with KL6071
Register access via
process data transfer
Bit 7=1: register mode
When bit 7 of the control byte is set, the first two bytes of the user data are
not used for process data transfer, but are written into or read out of the
terminal’s register.
Bit 6=0: read
Bit 6=1: write
In bit 6 of the control byte, you define whether a register is to be read or
written. When bit 6 is not set, a register is read without modification. The
value can be taken from the input process image.
When bit 6 is set, the user data is written into a register. The operation is
concluded as soon as the status byte in the input process image has
supplied an acknowledgement (see examples).
Bits 0 to 5: address The address of the register to be addressed is entered in bits 0 to 5 of the
control byte.
Control byte in the register mode
Bit
Name
7 6 5 4 3 2 1 0
REG=1 W/R A5 A4 A3 A2 A1 A0
Key
Bit Name Comment
7 REG
6 W/R0
1 for access to register structure
0: Read register
1: Write register
5-0 A5...A0 A total of 64 registers can be addressed with the
addresses A5...A0
To the bus coupler
K-Bus
Control-/
status byte
C/S-bit 7
If control bit 6=0: read
If control bit 6=1: write
User data
2 or mors bytes
If control bit 7=0: input/output
If control bit 7=1:
registerconfiguration
If control bit 7=1:
adress in the control bit 0-5
register set
64 words
Complex bus terminal
The control or status byte occupies the lowest address of a logical channel.
The corresponding register values are located in the following 2 data bytes
(the BK2000 is an exception to the rule: here, an unused data byte is
inserted after the control or status byte, thus setting the register value to a
word limit).
8 KL6071
Terminal configuration
3.4.1 Examples for Register Communication
Example 1 Reading register 8 in the BK2000 with a Kl3022 and the end terminal.
If the following bytes are transferred from the controller to the terminal,
Byte
Name
Value
Byte3 Byte2 Byte1 Byte0
Data OUT, low byte Data OUT, high byte Not used Control
0xXX 0xXX 0xXX 0x88
the terminal returns the following type designation (0x0BCE corresponds to
the unsigned integer 3022).
Byte
Name
Value
Byte3 Byte2 Byte1 Byte0
Data IN, low byte Data IN, high byte Not used Status
0xCE 0x0B 0x00 0x88
Example 2 Writing register 31 in the BK2000 with an intelligent terminal and the end
terminal.
If the following bytes (user code word) are transferred from the controller to
the terminal,
Byte
Name
Value
Byte3 Byte2 Byte1 Byte0
Data OUT, low byte Data OUT, high byte Not used Control
0x35 0x12 0xXX 0xDF
the user code word is set and the terminal returns the register address with
the bit 7 for register access and the acknowledgement.
Byte
Name
Value
Byte3 Byte2 Byte1 Byte0
Data IN, low byte Data IN, high byte Not used Status
0x00 0x00 0x00 0x9F
KL6071 9
Appendix
4 Appendix
Beckhoff and their partners around the world offer comprehensive support
Please contact your Beckhoff branch office or representative for local
4.1 Support und Service
and service, making available fast and competent assistance with all
questions related to Beckhoff products and system solutions.
4.1.1 Beckhoff's branch offices and representatives
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 no
only with the application of individual Beckhoff products, but also with
other, wide-ranging services:
hotline:
fax:
e-mail:
Beckhoff Service
The Beckhoff Service Center supports you in all matters of after-sales
service:
hotline:
fax:
e-mail:
+49(0)5246/963-0
• support
• design, programming and commissioning of complex automation
• and extensive training program for Beckhoff system components