166
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
PWM in the ecomatmobile controller
PWM signal processing
9.1.2
Function PWM
Contained in the library:
ifm_CRnnnn_Vxxyyzz.LIB
Available for the following devices:
•
CabinetController: CR0301, CR0302, CR0303
•
ClassicController: CR0020, CR0505
•
ExtendedController:
CR0200
•
PCB controller: CS0015
•
SafetyController: CR7020, CR7021, CR7200, CR7201, CR7505, CR7506
•
SmartController:
CR2500
Function symbol:
PWM
INIT
RELOAD
DIV64
CHANNEL
VALUE
CHANGE
DITHER_VALUE
DITHER_DIVIDER
Description
PWM is used for initialisation and parameter setting of the PWM outputs.
The function PWM has a more technical background. Due to their structure, PWM values can be very
finely graded. So, this function is suitable for use in controllers.
The function PWM is called once for each channel during initialisation of the application program.
When doing so, input INIT must be set to TRUE. During initialisation, the parameter RELOAD is also
assigned.
NOTE
The value RELOAD must be identical for the channels 4...7 (for the ClassicController or
ExtendedController: 4...11).
For these channels, the function PWM and function PWM1000 (
→
page
) must not be mixed.
The PWM frequency (and so the RELOAD value) is internally limited to 5 kHz.
Depending on whether a high or a low PWM frequency is required, the input DIV64 must be set to
FALSE (0) or TRUE (1).
During cyclical processing of the program INIT is set to FALSE. The function is called and the new
PWM value is assigned. The value is adopted if the input CHANGE = TRUE.
Содержание Ecomat Mobile Series
Страница 1: ...System Manual SmartController CR2500 CoDeSys V2 3 Target V05 7390675 00 10 2009...
Страница 6: ......