143
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
Calculation of the RELOAD value
1531
Figure: RELOAD value for the PWM channels 0...3
The RELOAD value of the internal PWM counter is calculated on the basis of the parameter DIV64
and the CPU frequency as follows:
• CabinetController: CR0303
• ClassicController: CR0020, CR0505
• ExtendedController: CR0200
• SafetyController: CR7020, CR7021, CR7200,
CR7201, CR7505, CR7506
• CabinetController: CR0301, CR0302
• SmartController: CR250n
• PCB controller: CS0015
• PDM360smart: CR1071
DIV64 = 0
RELOAD = 20 MHz / f
PWM
RELOAD = 10 MHz / f
PWM
DIV64 = 1
RELOAD = 312.5 kHz / f
PWM
RELOAD = 156.25 kHz / f
PWM
Depending on whether a high or a low PWM frequency is required, the input DIV64 must be set to
FALSE (0) or TRUE (1). In case of frequencies below 305 Hz respectively 152 Hz (according to the
controller), DIV64 must be set to "1" to ensure that the RELOAD value is not greater than 0xFFFF.
>
Calculation examples RELOAD value
1532
• CabinetController: CR0303
• ClassicController: CR0020, CR0505
• ExtendedController: CR0200
• SafetyController: CR7020, CR7021, CR7200, CR7201,
CR7505, CR7506
• CabinetController: CR0301, CR0302
• SmartController: CR250n
• PCB controller: CS0015
• PDM360smart: CR1071
The PWM frequency shall be 400 Hz.
20 MHz
_________ = 50 000 = 0xC350 = RELOAD
400 Hz
The PWM frequency shall be 200 Hz.
10 MHz
_________ = 50 000 = 0xC350 = RELOAD
200 Hz
Thus the permissible range of the PWM value is the range from 0x0000...0xC350.
The comparison value at which the output switches must then be between 0x0000 and 0xC350.
This results in the following mark-to-space ratios:
Mark-to-space ratio
Switch-on time
Value for mark-to-space ratio
Minimum
0 %
50 000 = 0xC350
Maximum
100 %
0 = 0x0000
Between minimum and maximum triggering 50 000 intermediate values (PWM values) are possible.
Содержание Ecomat 100 Mobile CR0301
Страница 209: ...209 ifm Programming Manual ecomatmobile CabinetController CR0301 Runtime System V05 2016 04 21 Notizen Notes Notes ...
Страница 210: ...210 ifm Programming Manual ecomatmobile CabinetController CR0301 Runtime System V05 2016 04 21 Notizen Notes Notes ...
Страница 211: ...211 ifm Programming Manual ecomatmobile CabinetController CR0301 Runtime System V05 2016 04 21 Notizen Notes Notes ...
Страница 212: ......