BECKHOFF KL2502 User Manual
Page 14

Terminal configuration
12
KL2502, KL2512
3.2.2 Terminal-specific register description
Process variables
R0, R1: no function
3.2.2.1 R2:
Period
In the PWM mode, the period for current operation can be specified here.
Following a power on reset, the period is taken from R35.
PWMH mode, Cnt-Cnt PWM mode:
1 digit corresponds to one 1 microsecond here
e.g.:
250 Hz => 4000 µs = 0xFA0
4 KHz => 250 µs = 0xFA
PWML mode, Frq-Cnt PWM mode, Frq-Cnt pulse mode:
1 digit corresponds to 8 microseconds
e.g.:
2 Hz
=> 500 ms = 0xF424
200Hz => 5 ms = 0x271
R3: Base frequency
In the PWM mode, the base frequency can be specified here. [R/W]
1 digit corresponds to 1 Hz
R5: PWM raw vale
The value of the processor’s PWM unit is stored in this register. The
maximum resolution for a given frequency can be computed with this
value.
R6: Diagnostic register
Not used
Manufacturer parameters
R19: Manufacturer offset B_h
16-bit signed integer
Linear equation:
Y = A_h X + B_h
This register contains the offset of the manufacturer’s linear equation. The
linear equation is activated via R32.
R20: Manufacturer scaling A_h
16-bit unsigned integer * 2
-8
This register contains the scaling value of the manufacturer‘s linear
equation. The linear equation is activated via R32.
1 corresponds to the register value 0x0100