ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
PWM in the ecomatmobile controller
PWM signal processing
167
Using the function OUTPUT_CURRENT (
→
page
) a current measurement for the initialised PWM
channel can be implemented.
PWM_Dither 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 DIVIDER for the determination of
the dither frequency and the VALUE are assigned.
Info
The parameters DITHER_FREQUENCY and DITHER_VALUE can be individually set for each channel.
Parameters of the function inputs
Name
Data type Description
INIT
BOOL
TRUE (in the 1st cycle):
function PWM is initialised
FALSE: during cyclical processing of the program
RELOAD
WORD
Value for the determination of the PWM frequency
(
→
chapter Calculation of the RELOAD value,
→
page
)
DIV64
BOOL
CPU cycle / 64
CHANNEL
BYTE
Current PWM channel / output
VALUE
WORD
Current PWM value
CHANGE
BOOL
TRUE: new PWM value is adopted
FALSE: the changed PWM value has no influence on the
output
DITHER_VALUE
WORD
Amplitude of the dither value
(
→
chapter PWM dither,
→
DITHER_DIVIDER WORD
Dither
frequency = PWM frequency / DIVIDER * 2
Содержание Ecomat Mobile Series
Страница 1: ...System Manual SmartController CR2500 CoDeSys V2 3 Target V05 7390675 00 10 2009...
Страница 6: ......