Examples Of Register Communication; Example 1: Reading The Firmware Version From Register 9 - Beckhoff KL2532 Documentation

Two channel power stage terminals for dc motors
Table of Contents

Advertisement

Access from the user program
R51: Ki factor (current controller, only KL2552)
This register contains the Ki factor for the integral component of the internal current control (default: 4
The unit is 0.001 (example: 1000
R52: Inner window of the I component (current controller)
The I component of the velocity control reduced linearly towards the zero point (default: 0
specifies the value from which the attenuation is activated (default: 0
The unit is 1% (for example: 1 = 1%). Value range: 0% - 100%
R53: Outer window of the I component (current controller)
This register specifies the maximum value of the I component (default: 0
The unit is 1% (for example: 5
R54: Ka factor (velocity controller, only KL2552)
This register contains the Ka factor for the integral component of the internal velocity control (default: 0
The unit is 0.001 (example: 1000
R55: Kd factor (velocity controller, only KL2552)
This register contains the Kd factor of the differential component of the internal velocity control (default: 0
The unit is 0.1 (example: 10
Register page 1 (only KL2552, from firmware version 1M)
Register page 1 is used for reading internal measured values.
See register overview [} 52]
6.5

Examples of Register Communication

The numbering of the bytes in the examples corresponds to the display without word alignment.
6.5.1

Example 1: reading the firmware version from Register 9

Output Data
Byte 0: Control byte
0x89 (1000 1001
)
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 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.
60
=> Ki = 1.00). Value range: 0 - 65535
dec
= 5%). Value range: 0% - 100%
dec
=> Ki = 1.00). Value range: 0 - 65535
dec
=> Kd = 1.00). Value range: 0 - 65535
dec
Byte 1: DataOUT1, high byte
0xXX
Version: 3.2.0
).
dec
).
dec
Byte 2: DataOUT1, low byte
0xXX
.
bin
KL2532/KS2532, KL2552/KS2552
).
dec
). This register
dec
).
dec
).
dec

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ks2532Kl2552Ks2552

Table of Contents