3 Mounting and wiring ...............................................................................................................................16
7.1Support and Service ..................................................................................................................... 38
KM3701, KM3702 and KM37123Version: 2.0.0
Page 4
Table of contents
KM3701, KM3702 and KM37124Version: 2.0.0
Page 5
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®, Safety over EtherCAT®, TwinSAFE®, XFC® and XTS® 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, DE102004044764, DE102007017835 with corresponding applications or
registrations in various other countries.
The TwinCAT Technology is covered, including but not limited to the following patent applications and
patents: EP0851348, US6167425 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 symbols
In this documentation the following symbols are used with an accompanying safety instruction or note. The
safety instructions must be read carefully and followed without fail!
DANGER
WARNING
CAUTION
Attention
Note
Serious risk of injury!
Failure to follow the safety instructions associated with this symbol directly endangers the
life and health of persons.
Risk of injury!
Failure to follow the safety instructions associated with this symbol endangers the life and
health of persons.
Personal injuries!
Failure to follow the safety instructions associated with this symbol can lead to injuries to
persons.
Damage to the environment or devices
Failure to follow the instructions associated with this symbol can lead to damage to the environment or equipment.
Tip or pointer
This symbol indicates information that contributes to better understanding.
KM3701, KM3702 and KM37126Version: 2.0.0
Page 7
1.3Documentation issue status
VersionComment
2.0.0• Corrections
• First public issue as PDF
1.2.0• Technical data updated
• Installation and wiring extended
• Process data corrected
• KM3701-0340 added
1.1.1Application examples update
1.1.0Technical data updated
1.0.0First release
Firmware and hardware versions
Foreword
Documentation
Version
2.0.01G091D071E09
1.2.01C011B011B01
1.1.11C001B001B00
1.1.01B001A001A00
1.0.01B001A001A00
The firmware and hardware versions (delivery state) can be taken from the serial number printed on the side
of the terminal module.
Syntax of the serial number
Structure of the serial number: WWYYFFHH
WW - week of production (calendar week)
YY - year of production
FF - firmware version
HH - hardware version
Example with ser. no.: 35 05 00 01:
35 - week of production 35
05 - year of production 2005
00 - firmware version 00
01 - hardware version 01
The KM3701 differential pressure measuring module enables direct measurement of pressure differences
between two hose connections. The pressure difference is available in the fieldbus with 16-bit resolution.
The measuring range is between -100hPa and +100hPa (-100mbar to +100mbar). The status LEDs
indicate proper function or errors such as range exceedance.
Two variants are available:
• KM3701-0000: Measuring range -100 to +100hPa (-100 to +100mbar)
• KM3701-0340: Measuring range -340 to +340hPa (-340 to +340mbar)
Quick links
• Mounting and wiring [}16]
• Access from the user program [}27]
• Application examples [}19]
KM3701, KM3702 and KM37128Version: 2.0.0
Page 9
2.2KM3702 - Introduction
Product overview
Fig.2: KM3702
Two-channel relative pressure measuring module for 0 to 7500hPa (0 to 7.5bar)
The relative pressure measuring module KM3702 enables direct measurement of two pressure values at the
hose connections. The pressure is determined as the difference to the environment of the KM3702 and is
available in the fieldbus with 16bit resolution. The status LEDs indicate proper function or errors such as
range exceedance.
KM3701, KM3702 and KM37129Version: 2.0.0
Page 10
Product overview
2.3KM3712 - Introduction
Fig.3: KM3712
Dual channel relative pressure measuring module for -1,000hPa to +1,000hPa (-1bar to +1bar)
The relative pressure measuring module KM3712 allows the direct measurement of two negative pressure
values on the hose connections. The pressure is determined as the difference to the environment of the
KM3712 and is available in the fieldbus with 16bit resolution. The status LEDs indicate proper function or
errors such as range exceedance.
Fig.4: Bus Terminal block with pressure measuring modules
The pressure measuring modules KM3701 and KM3712 directly record differential and relative pressures in
non-aggressive gases. As in electronic signal acquisition the pressure measurement takes place via a
terminal module. The pressure measuring modules convert the measured pressure into an electrical signal
and make it available to the higher-level controller with a resolution of 16bits. The measuring principle is
based on the most up-to-date on-chip sensor technology. In addition to just measuring, the semiconductor
also executes other functions, such as temperature compensation and avoidance of long-term drift. The
status LEDs indicate proper function or errors such as range exceedance.
The KM3701 terminal module can measure pressure differences between 0 and 100hPa (0 and 100mbar)
between two hose connections. The differential pressure can be measured up to an ambient pressure of
7500hPa (7bar) between any points.
KM3702 - Two-channel relative pressure measuring module (0hPa to 7500hPa)
The KM3702 terminal module can measure pressure values between 0 and 7000hPa (0 and 7bar) at each
hose connection. Pressure measurement takes place relative to the actual current ambient pressure.
KM3701, KM3702 and KM371213Version: 2.0.0
Page 14
Product overview
KM3712 - Two-channel relative pressure measuring module (-1000hPa to +1000hPa)
The KM3712 terminal module can measure pressure values between -1000hPa and +1000hPa (-1bar and
+1bar) at each hose connection. Pressure measurement takes place relative to the actual current ambient
pressure.
Installation and connection technique
The pressure measuring terminal samples the pressure values directly. Additional measuring devices are
unnecessary. This avoids connection systems and saves available space compared with the use of
conventional measuring devices. The installation of the pressure measuring terminals is simple and fast and
can be carried out without any additional mounting tools. The measuring hoses are connected directly to the
quick couplings of the pressure measuring terminal. Standard commercial plastic hoses can be used as
measuring hoses. In terms of connections and installation space the pressure measuring terminals are
designed like a "normal" 24 mm Bus Terminal and can be installed with minimum space requirement directly
in the Bus Terminal system.
KM3701, KM3702 and KM371214Version: 2.0.0
Page 15
2.6LED displays
KM3701
Fig.8: KM3701 - LEDs
LEDDisplay
Run (green)offData transmission on the K-bus is not active
onData transmission on the K-bus is active
Over-range (red)on
Under-range (red) on
The differential pressure is above the permitted measuring range [}11]
The differential pressure is below the permitted measuring range [}11]
Product overview
KM3702, KM3712
Fig.9: KM3702, KM3712 - LEDs
LEDDisplay
Run (green)offData transmission on the K-bus is not active
onData transmission on the K-bus is active
Error X1 (red)onThe pressure at connection X1 is below (under-range) or above (over-range) the
permitted measuring range [}11]
Error X2 (red)onThe pressure at connection X2 is below (under-range) or above (over-range) the
permitted measuring range [}11]
KM3701, KM3702 and KM371215Version: 2.0.0
Page 16
Mounting and wiring
3Mounting and wiring
3.1Recommended mounting rails
Terminal Modules and EtherCAT Modules of KMxxxx and EMxxxx series, same as the terminals of the
EL66xx and EL67xx series can be snapped onto the following recommended mounting rails:
• DIN Rail TH 35-7.5 with 1 mm material thickness (according to EN 60715)
• DIN Rail TH 35-15 with 1,5 mm material thickness
Pay attention to the material thickness of the DIN Rail
Terminal Modules und EtherCAT Modules of KMxxxx and EMxxxx series, same as the ter-
Note
3.2Mounting and demounting - terminals with front
minals of the EL66xx and EL67xx series does not fit to the DIN Rail TH 35-15 with 2,2 to
2,5 mm material thickness (according to EN 60715)!
unlocking
The terminal modules are fastened to the assembly surface with the aid of a 35 mm mounting rail (e.g.
mounting rail TH 35-15).
Fixing of mounting rails
The locking mechanism of the terminals and couplers extends to the profile of the mounting
Note
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 recommended mounting rails under the terminals and couplers, you should use flat mounting connections (e.g. countersunk
screws or blind rivets).
Risk of electric shock and damage of device!
Bring the bus terminal system into a safe, powered down state before starting installation,
WARNING
Mounting
• Fit the mounting rail to the planned assembly location.
disassembly or wiring of the Bus Terminals!
KM3701, KM3702 and KM371216Version: 2.0.0
Page 17
and press (1) the terminal module against the mounting rail until it latches in place on the mounting
rail (2).
• Attach the cables.
Mounting and wiring
Demounting
• Remove all the cables.
• Lever the unlatching hook back with thumb and forefinger (3). An internal mechanism pulls the two
latching lugs (3a) from the top hat rail back into the terminal module.
• Pull (4) the terminal module away from the mounting surface.
Avoid canting of the module; you should stabilize the module with the other hand, if required.
KM3701, KM3702 and KM371217Version: 2.0.0
Page 18
Mounting and wiring
3.3Connection
The air hoses are connected to push-in fittings.
Technical DataThreaded push-in fitting
TypeQSS-4-F
Outer hose diameter4mm
Nominal diameter2.6mm
ThreadM12 x 1
Width across flats14mm
KM3701, KM3702 and KM371218Version: 2.0.0
Page 19
Application examples
4Application examples
The pressure measuring modules can be used in any applications requiring logging and monitoring of
differential and dynamic pressures in non-aggressive gases, e.g. pressure vessels, pressure cabins or
pneumatic, filter, suction, packaging and positioning systems.
They measure operating pressures, monitor filters and sieves, check the seal tightness of tanks and assist in
position testing of construction elements or monitoring the level of liquids. If flow rates are calculated from
the measured pressures, then the pressure measuring terminals can also be used for flow measurement.
They can therefore be applied in areas such as process engineering, systems engineering, building services
and heating, ventilating and air conditioning.
• Application examples for KM3701 [}19]
• Application example for KM3702 [}20]
• Application example for KM3712 [}21]
4.1KM3701 - Application examples
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,
WARNING
disassembly or wiring of the Bus Terminals!
Tank systems
Fig.10: KM3701 - Application example for the fill level of tanks
• Monitors tank filling levels and activates topping up when the level falls below a defined filling value
• The pressure difference is an indicator for the filling level
• No additional pressure gauges, switches and associated connection equipment are required
KM3701, KM3702 and KM371219Version: 2.0.0
Page 20
Application examples
Filter systems, pipe constrictions
Fig.11: KM3701 - Application example for filter systems, pipe restrictions
• Monitors the operating state of filters and screens
• The pressure difference indicates the level of contamination
4.2KM3702 - Application example
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,
WARNING
Pneumatic systems
disassembly or wiring of the Bus Terminals!
Fig.12: KM3702 - Application example for pneumatic systems
• Checking the filling level of stores
• Monitoring the operating pressure of equipment
KM3701, KM3702 and KM371220Version: 2.0.0
Page 21
• enables monitoring and avoidance of overpressure
4.3KM3712 - Application example
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!
WARNING
Packaging plant for eggs
Application examples
Fig.13: EM3712 - Application example Packging plant for eggs
• controls suction
• Pressure deviations indicate leakages or positioning inaccuracies
KM3701, KM3702 and KM371221Version: 2.0.0
Page 22
KS2000 Configuration software
5KS2000 Configuration software
5.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.14: 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.
KM3701, KM3702 and KM371222Version: 2.0.0
Page 23
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.
5.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 KM3701 differential pressure measuring module
• a KL9010 Bus End Terminal
KM3701, KM3702 and KM371223Version: 2.0.0
Page 24
KS2000 Configuration software
Fig.15: 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 module whose parameters you
wish to change (pos. 2 in the example).
Fig.16: KS2000 branch for channel 1 of the KM3701
For the KM3701, the branches Register, Settings and ProcData are displayed:
• Register [}25] enables direct access to the KM3701 registers.
• ProcData [}26] shows the process data of the KM3701.
KM3701, KM3702 and KM371224Version: 2.0.0
Page 25
KS2000 Configuration software
5.3Register
Under Register you can directly access the registers of the terminal module (KM3701 in this example). The
meaning of the register is explained in the Register Overview [}30].
Fig.17: Register view in KS2000
KM3701, KM3702 and KM371225Version: 2.0.0
Page 26
KS2000 Configuration software
5.4Process Data
The Status byte (Status), the Control byte (Ctrl) and the process data (Data) are displayed in a tree structure
under ProcData.
The spectacles mark the data that are currently graphically displayed in the History field.
Fig.19: History field
The current input value is displayed numerically in the Value field.
Fig.20: Value field
Output values can be modified through direct input or by means of the fader control.
Fig.21: Value field
Danger for persons, the environment or devices!
Note that changing output values (forcing them) can have a direct effect on your automa-
CAUTION
After pressing the Settings button you can set the format of the numerical display to hexadecimal, decimal or
binary.
tion application. Only modify these output values if you are certain that the state of your
equipment permits it, and that there will be no risk to people or to the machine!
Fig.22: Setting the display
KM3701, KM3702 and KM371226Version: 2.0.0
Page 27
Access from the user programm
6Access from the user programm
6.1KM3701 - Process image
The KM3701 terminal module is represented in the process image with a maximum of 3bytes of input data
and 3bytes of output data. These are organized as follows:
FormatInput dataOutput data
Byte
WordDataINDataOUT
Key
SB: Status byte
CB: Control byte
DataIN: Input data word
DataOUT: Output data word
• The meaning of the control and status bytes is explained in Control and status bytes.
• In process data mode, the analog value is transferred in the input data word DataIN. The output data
word DataOUT is not used.
SB [}28]CB [}28]
Representation of the analog values
The terminal module displays the analog input values as follows:
KM3701-0000
Differential pressureDecimalHexadecimal
-100 hPa-10000xFC18
0 hPa00x0000
+100 hPa+10000x03E8
KM3701-0340
Differential pressureDecimalHexadecimal
-340 hPa-34000xF2B8
0 hPa00x0000
+340 hPa+34000x0D48
6.2KM3702, KM3712 - Process image
The KM3702 and KM3712 terminal modules are represented in the process image with a maximum of
6bytes of input data and 6bytes of output data. These are organized as follows:
FormatInput dataOutput data
Byte
WordDataIN1DataOUT1
Byte
WordDataIN2DataOUT2
KM3701, KM3702 and KM371227Version: 2.0.0
SB1 [}28]CB1 [}28]
SB2 [}29]CB2 [}29]
Page 28
Access from the user programm
Key
SB n: Status byte for channel n
CB n: Control byte for channel n
DataIN n: Input data word channel n
DataOUT n: Output data word channel n
• The meaning of the control and status bytes is explained in Control and status bytes.
• In process data mode the analog values are transferred in output data words DataIN1 and DataIN2.
Input data words DataOUT1 and DataOUT2 are not used.
Representation of the analog values
The analog input values are represented by the terminal modules as follows:
KM3702-0000
PressureDecimalHexadecimal
0 hPa00x0000
7500 hPa75000x1D4C
KM3712-0000
PressureDecimalHexadecimal
-1000 hPa-10000xFC18
0 hPa00x0000
+1000 hPa+10000x03E8
6.3Control and Status Byte
Channel1
Process data mode
Control byte1 (for process data mode)
Control byte 1 (CB1) is located in the output image, and is transmitted from the controller to the terminal
module.
BitCB1.7CB1.6CB1.5CB1.4CB1.3CB1.2CB1.1CB1.0
NameRegAccess -------
BitNameDescription
CB1.7RegAccess0
CB1.6 to CB1.1-0
......... ...
CB1.0-0
Register communication off (process data mode)
bin
reserved
bin
reserved
bin
Status byte1 (for process data mode)
Status byte 1 (SB1) is located in the input image and is transmitted from terminal module to the controller.
an internal error has occurred (current process data is no longer
bin
valid)
SB1.5 / SB1.4StateThreshold20
Threshold 2 [}34] is not enabled via bit R32.10 [}33] of the
bin
feature register
01
Process data is greater than threshold 2
bin
10
Process data is less than threshold 2
bin
11
Process data equals threshold 2
bin
SB1.3 / SB1.2StateThreshold10
Threshold 1 [}34] is not enabled via bit R32.9 [}33] of the
bin
feature register
01
Process data is greater than threshold 1
bin
10
Process data is less than threshold 1
bin
11
Process data equals threshold 1
bin
SB1.1Overload1
Process data is greater than specified in register R21 [}33]. The
bin
red error LED of this channel is lit.
SB1.0Underload1
Process data are less than specified in register R22 [}33]. The
bin
red error LED of this channel is lit. (The calibration is active if
SB1.0 and SB1.1 are set simultaneously).
Access from the user programm
Register communication
Controlbyte1 (in register communication)
Control byte 1 (CB1) is located in the output image, and is transmitted from the controller to the terminal
module.
BitCB1.7CB1.6CB1.5CB1.4CB1.3CB1.2CB1.1CB1.0
NameRegAccess R/WReg. no.
BitNameDescription
CB1.7RegAccess1
CB1.6R/W0
Register communication switched on
bin
Read access
bin
1
Write access
bin
CB1.5 to CB1.0Reg. no.Register number:
Enter the number of the register [}30] that you
- want to read with input data word DataIn or
- want to write with output data word DataOut.
Statusbyte1 (in register communication)
Status byte 1 (SB1) is located in the input image and is transmitted from terminal module to the controller.
BitSB1.7SB1.6SB1.5SB1.4SB1.3SB1.2SB1.1SB1.0
NameRegAccess R/WReg. no.
BitNameDescription
SB1.7RegAccess1
SB1.6R0
Acknowledgment for register access
bin
Read access
bin
SB1.5 to SB1.0Reg. no.Number of the register that was read or written.
Channel2 (only KM3702 and KM3712)
The control and status bytes of channel 2 (CB2 and SB2) have the same structure as the control and status
bytes of channel 1 [}28].
KM3701, KM3702 and KM371229Version: 2.0.0
Page 30
Access from the user programm
6.4Register overview
The registers are used for the parameterization of the Bus Terminals and are available for each channel.
They can be read or written by means of register communication.
KM3701, KM3702 and KM371230Version: 2.0.0
Page 31
Access from the user programm
Register no. CommentDefault valueR/W Memory
R0 [}32]
R1reserved0x00000
Raw ADC valuevariablevariableRRAM
dec
--
..................
R5reserved0x00000
R6 [}32]
R7 [}32]
R8 [}32]
Diagnostic register0x00000
Command register0x00000
Terminal typeKM3701:0x0E753701
KM3702:0x0E763702
KM3712:0x0E803712
R9 [}32]
Firmware versione.g.0x3141e.g.1A
R10Multiplex shift register0x0118280
R11Signal channels0x0218280
R12 [}32]
minimum data length of a channel0x0098152
R13Data structure0x00000
R14reserved0x00000
dec
dec
dec
dec
dec
dec
dec
dec
dec
dec
dec
R15Alignment registertypically 0x7F80 typically
32640
R16 [}33]
R17 [}33]
R18 [}33]
R19 [}33]
R20 [}33]
R21 [}33]
R22 [}33]
R23internal use0x00000
R24internal use0x10044100
R25reserved0x00000
Hardware version numbere.g.0x0000e.g.0
Vendor calibration:
Offset
Vendor calibration: Gain0x00000
Manufacturer scaling: Offset0x00000
Manufacturer scaling:
Gain
KM3701, KM3712:typically 0xF800 typically
63488
KM3702:typically
0xFE66
KM3701, KM3712:0x00A2162
KM3702:0x021B539
typically
65126
dec
dec
dec
dec
Overrange limitKM3701, KM3712:0x03E81000
KM3702:0x1D4C7500
Under range limitKM3701, KM3712:0xFC18-1000
KM3702:0xFF9C-100
dec
dec
dec
dec
dec
dec
dec
dec
ASCII
dec
dec
dec
--
RRAM
R/W RAM
RROM
RROM
RROM
RROM
RROM
RROM
--
R/W RAM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
--
...reserved----
R30reserved0x00000
R31 [}33]
R32 [}33]
R33 [}34]
R34 [}34]
R35 [}34]
R36 [}34]
Code word register0x00000
Feature register0x0202514
User offset0x00000
User gain0x0100256
Threshold 10x00000
Threshold 20x00000
dec
dec
dec
dec
dec
dec
dec
--
R/W RAM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R/W EEPROM
R37reserved----
...reserved----
R63reserved----
KM3701, KM3702 and KM371231Version: 2.0.0
Page 32
Access from the user programm
6.5Register description
The registers are used for the parameterization of the Bus Terminals and are available for each channel.
They can be read or written by means of register communication.
R0: Raw ADC value
Register R0 contains the raw value of the analog/digital converter. This is the unchanged analog value prior
to any scaling.
R6: Diagnostic register
Status byte SB1 [}28] is placed into register R6.
R7: Command register
User code word
For the following commands to be executed, it is first necessary for the user code word,
Note
Command 0x7000: Restore Factory Settings
0x1235, to be entered into register R31 [}33]!
Entering 0x7000 in register R7 restores the factory settings for the following registers of both channels:
The command Restore Factory Settings simultaneously resets all module channels to the
Note
R8: Module ID
Register R8 contains the ID for the terminal module.
KM3701: 0x0C64 (3701
KM3702: 0x0C6E (3702
KM3712: 0xC3C (3712
R9: Firmware version
delivery state, irrespective of which register set it is called from!
)
dec
)
dec
)
dec
Register R9 contains the ASCII coding of the terminal's firmware version, e.g.0x3141 = '1A'. The '0x31'
corresponds here to the ASCII character '1', while the '0x41' represents the ASCII character 'A'.
This value cannot be changed.
R12: Minimum data length of a channel
Bits 0 to 6 of the high-order byte specify the minimum number of output data in bits: 000.0000
bin
= 0
, hence
dec
0bytes.
Bits 0 to 6 of the low-order byte specify the minimum number of input data in bits: 001.1000
bin
= 24
, hence
dec
3 bytes.
The fact that bit 7 is set indicates that the control and status byte are not mandatory for the terminal function
and are not transferred in compact mode.
KM3701, KM3702 and KM371232Version: 2.0.0
Page 33
Access from the user programm
R16: Hardware version number
Register R16 contains the hardware version of the terminal.
R17: Vendor calibration - offset
This register contains the vendor calibration offset (16bit signed integer).
R18: Vendor calibration - gain
This register contains the vendor calibration gain (16bit unsigned integer x 2
-16
+ 1). Samples:
0x0000 means factor 1
0xFFFF means factor 2
R19: Manufacturer scaling - offset
This register contains the offset of the manufacturer scaling. Can be activated via R32.1 [}33] in the feature
register (16bit signed integer).
R20: Manufacturer scaling - gain
This register contains the gain of the manufacturer scaling. Can be activated via R32.1 [}33] in the feature
register (16bit unsigned integer x 2-8 + 1). Samples:
0x0100 means factor 1.
0x0080 means factor 0.5
R21: Upper measuring range limit
This register contains the upper measuring range limit. It can be activated by R32.8 [}33] in the feature
register.
R22: Lower measuring range limit
This register contains the lower measuring range limit. It can be activated by R32.8 [}33] in the feature
register.
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.
R32: Feature register
The feature register defines the module configuration.
Watchdog timer is active (the watchdog is triggered if no
bin
bin
bin
bin
0
bin
process data are received for 100ms)
1
Watchdog timer is not active
bin
R32.1enManScal0
R32.0enUsrScal0
Manufacturer scaling is not active1
bin
1
Manufacturer scaling is active
bin
User scaling is not active0
bin
1
User scaling is active
bin
bin
bin
R33: User scaling - offset
This register contains the offset of the user scaling. The user scaling can be activated in the feature register
through bit R32.0 [}33] (16bit signed integer).
R34: User scaling - gain
This register contains the gain of the user scaling. The user scaling can be activated in the feature register
through bit R32.0 [}33] (16bit unsigned integer x 2-8 + 1, 1
corresponds to 0x0100).
dec
R35: Threshold 1
Threshold 1 is entered in register R35. The threshold can be activated in the feature register through bit
R32.10 [}33].
R36: Threshold 2
Threshold 2 is entered in register R36. The threshold can be activated in the feature register through bit R32
[}33].11.
KM3701, KM3702 and KM371234Version: 2.0.0
Page 35
Access from the user programm
6.6Examples of Register Communication
The numbering of the bytes in the examples corresponds to the display without word alignment.
6.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.
6.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
Note
I. Write the code word (0x1235) into Register 31.
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 (poweroff/power-on).
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.
KM3701, KM3702 and KM371235Version: 2.0.0
Page 36
Access from the user programm
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 Register description) regarding the meaning of the individual bits
before changing the values.
KM3701, KM3702 and KM371236Version: 2.0.0
Page 37
Access from the user programm
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.
• The input data word (byte 1 and byte 2) is of no importance after the write access. Any values still
displayed are invalid!
KM3701, KM3702 and KM371237Version: 2.0.0
Page 38
Appendix
7Appendix
7.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:
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