Specify period duration (index 0x70n0:12 "PWM period")
The period duration of the output can be specified, which corresponds to a frequency specification.
The period is specified via index 0x70n0:12 "PWM period" in the unit 1 µs.
(with n = 8 for PWM 1 and n = 9 for PWM 2)
The valid value range is as follows:
- 0028hex / 40dec (40 µs corresponds to 25000 Hz) to C350hex / 50000dec (50000 µs corresponds to 20 Hz)
The following table shows examples for setting the period duration (frequency) within the valid value range.
Desired period duration (frequency) | Default in 0x70n0:12 "PWM period" | |
---|---|---|
50000 µs (20 Hz) | C350hex | 50000dec |
10000 µs (100 Hz) | 2710hex | 10000dec |
1000 µs (1000 Hz = 1 kHz) | 03E8hex | 1000dec |
400 µs (2500 Hz = 2.5 kHz) | 0190hex | 400dec |
200 µs (5000 Hz = 5 kHz) | 00C8hex | 200dec |
40 µs (25000 Hz = 25 kHz) | 0028hex | 40dec |
Notice | |
Invalid values are not processed Values outside the above-mentioned value range cannot be processed. If a value below the permitted value range is entered, it is automatically set to the next highest valid value. |
Resolution depending on the frequency setting
The resolution of the output signal depends on the frequency setting or the set period duration. The following typical values are available:
Frequency setting | Resolution |
---|---|
up to 2.7 kHz | 15-bit |
up to 5.4 kHz | 14-bit |
up to 11 kHz | 13-bit |
up to 22 kHz | 12-bit |
up to 25 kHz | 11-bit |