141
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
PWM
20457
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
20973
PWM is used for initialisation and parameter setting of the PWM outputs.
PWM has a more technical background. Due to their structure, PWM values can be very finely graded.
So, this FB is suitable for use in controllers.
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 all PWM channels.
For these channels, PWM and
PWM100
(
) and
PWM1000
(
) 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 FB is called and the new PWM
value is assigned. The value is adopted if the input CHANGE = TRUE.
A current measurement for the initialised PWM channel can be implemented:
• for example using the
ifm
unit EC2049 (series element for current measurement).
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.
The parameters DITHER_FREQUENCY and DITHER_VALUE can be individually set for each
channel.
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......