X90 mobile modules
316
X90 mobile system User's manual V 1.20 - Translation of the original manual
5.6.1.8.6 Pulse width modulation (PWM)
In mode "PWM", the DigitalOutputxx registers are used as enable registers for PWM. In order for the set PWM to
actually be output on the output, the respective DigitalOutputxx register must be set to 1.
U
t
24 VDC
Pulse width
Period (frequency)
Figure 121: The PWM signal is controlled by setting the pulse width and period duration
Topics in this section:
•
Period duration of the PWM outputs
•
Duty cycle of the PWM outputs
5.6.1.8.6.1 Period duration of the PWM outputs
Name:
cfgPWMPeriod01 to cfgPWMPeriod08
These registers define the period duration, i.e. the time base for the respective PWM output. This time represents
the 100% value, which can be incremented in 0.1% steps through the duty cycle.
Data type
Values
Information
UINT
1000 to 65535
Period duration in µs
The value is rounded down to a multiple of 40 µs. The PWM signal is not output for values <1000.
5.6.1.8.6.2 Duty cycle of the PWM outputs
Name:
PWMPulseWidth01 to PWMPulseWidth08
These registers output the ratio of the duty cycle of the respective PWM output at 0.1% resolution in relation to
the period duration.
Data type
Values
Information
UINT
0 to 1000
Duty cycle of the output in 0 to 100%
Example
Period duration T = 4000 [µs] with a duty cycle of 25% equals a switch-on time t
1
of 1000 [µs].
t
1
t
T
1
U
t
24 VDC
T
= 0.25 = 25%
Figure 122: Switch-on time depending on the period duration and duty cycle
5.6.1.8.6.3 Switch-on ramp and switch-off ramp
Name:
cfgPWMRampOn01 to cfgPWMRampOn08
cfgPWMRampOff01 to cfgPWMRampOff08
The switch-on ramp or switch-off ramp is set in these registers, respectively.
Data type
Values
Information
USINT
0 to 255
Ramp time [0.1 s], corresponds to 0 to 25.5 s