IFM Electronic Ecomat Mobile Series System Manual page 167

Smart controller
Table of Contents

Advertisement

PWM in the ecomatmobile controller
Using the function OUTPUT_CURRENT (→ page 176) 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
INIT
RELOAD
DIV64
CHANNEL
VALUE
CHANGE
DITHER_VALUE
DITHER_DIVIDER
ifm
System Manual
ecomatmobile
Data type
Description
BOOL
TRUE (in the 1st cycle):
FALSE: during cyclical processing of the program
WORD
Value for the determination of the PWM frequency
(→ chapter Calculation of the RELOAD value, → page 162)
BOOL
CPU cycle / 64
BYTE
Current PWM channel / output
WORD
Current PWM value
BOOL
TRUE: new PWM value is adopted
FALSE: the changed PWM value has no influence on the
output
WORD
Amplitude of the dither value
(→ chapter PWM dither, → page 164)
WORD
Dither frequency = PWM frequency / DIVIDER * 2
SmartController (CR2500) V05
function PWM is initialised
PWM signal processing
167

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ecomat 100 cr2500

Table of Contents