153
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmOutPWM
>
10.8.1
CurrentControl
23359
Function block type:
Function block (FB)
Library:
ifmIOutPWM.library
Symbol in CODESYS:
>
Description
23356
The FB is used to configure and operate a current controlled output. The current control is supported
by pulse width modulation (PWM). The configuration of PWM frequency and dither is also done with
this FB.
>
Input parameters
23357
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
Output channel
Group + channel
→ Data sheet
→
Note on wiring
(
→ p.
Examples:
703
Group 7 + channel 3
1203
Group 12 + channel 3
eMode
MODE_
CURRENT_
CONTROL
Operating type of the output channel
→
MODE_CURRENT_CONTROL (ENUM)
(
→ p.
uiFrequency
UINT
PWM frequency of the output signal in
[Hz]
→ Data sheet
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.