157
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmOutPWM
>
Input parameters
23345
Parameters
Data type
Description
Possible values
xResetError
BOOL
Reset request for an occurring error
FALSE
When switching from FALSE
TRUE: Reset request to the
lower level system
TRUE
uiChannel
UINT
Input channel
Group + channel
→ Data sheet
→
Note on wiring
(
→ p.
Examples:
403
Group 4 + channel 3
502
Group 5 + channel 2
eMode
MODE_PWM
Operating type of the output channel
→
MODE_OUTPUT_GROUP (ENUM)
(
→ p.
uiFrequency
UINT
PWM frequency of the output signal in
[Hz]
→ Data sheet
uiValue
UNIT
Pulse/pause ration of the PWM output
signal in [‰]
permissible = 0...1
uiDitherFrequency
UNIT
Frequency for the dither signal at the
PWM output in [Hz]
permissible = 0...uiFrequency / 2
The value at uiDitherFrequency must be
an integer part of the value indicated to
uiFrequency.
Examples:
uiFrequency = 300 Hz
uiDitherFrequency = 50 Hz
300 /50 = 6
even factor, valid
uiDitherFrequency = 100 Hz
300 /100 = 3
uneven factor, invalid
Invalid values are corrected to the value
that matches the next lower integer factor.
uiDitherValue
UNIT
Peak-to-peak value of the dither signal
which overlays with the PWM signal, in
[‰]
permissible = 0...1
If the resulting PWM ratio value is outside
the 0...1000
‰ range, the dither value will
be temporarily internally reduced to the
minimum/maximum value that is possible,
so that the mean value of the PWM ratio
corresponds with the required value.