4 register description – BECKHOFF KL3681 User Manual

Page 33

Advertising
background image

Access from the user programm

5.4

Register description

The following registers are used for parameterization of the KL3681. They can be read or written via the
register communication [

}

 29] with the aid of control [

}

 29]status [

}

 29] and data bytes [

}

 28].

R0: Raw value A/D­C

Raw value of the A/D converter (X

R

)

R1: Current measuring range / mode

R2: Internal calibration value

R3: Sampling duration

In milliseconds

R4: Register page selection register

This register defines which register page is displayed in registers R32 to R63 [

}

 35] (default: 0x0000).

The terminal supports two register pages.

• Register page 0 is used to save the configuration data (see from register RP0.R32 [

}

 35])

• Register page 1 is used for internal calibration data and manufacturer calibration and must not be

changed by the user!

R6: Diagnostic register

The status byte [

}

 28] is mapped to the low­order byte (bit 7 to bit 0) of register R6.

The high­order byte (bit 15 to bit 8) of register R6 is reserved.

R7: Command register

Note

User code word

For the following commands to be executed, it is first necessary for the user code word,
0x1235, to be entered into register R31 [

}

 34].

Command 0x7000: Restore Factory Settings

An entry of 0X7000 in register R7 sets the following registers for the two channels to the following default
values:

RP0.R32 [

}

 35]: 0x2804 (10244

dec

)

RP0.R33 [

}

 36]: 0x0000 (0

dec

)

RP0.R34: 0x0000 (0

dec

)

RP0.R35: 0x0000 (0

dec

)

RP0.R36 [

}

 36], RP0.R38 ... RP0.R62: 0x0000 (0

dec

)

RP0.R37 [

}

 36], RP0.R39 ... RP0.R63: 0x2000 (8192

dec

)

R8: Terminal description

The terminal identifier is contained in register R8: KL3681: 0x0E61 (3681

dec

).

KL3681, KS3681

33

Version 2.0.0

Advertising
This manual is related to the following products: