![background image](http://html.mh-extra.com/html/ifm/ecomat-100-mobile-cr0301/ecomat-100-mobile-cr0301_programming-manual_620659145.webp)
145
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
PWM100
20461
Unit type = function block (FB)
New
ecomatmobile
controllers only support
PWM1000
(
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
20970
PWM100 handles the initialisation and parameter setting of the PWM outputs.
The FB enables a simple application of the PWM FB in the
ecomatmobile
controller. The PWM
frequency can be directly indicated in [Hz] and the mark-to-space ratio in steps of 1 %. This FB is
not
suited for use in controllers, due to the relatively coarse grading.
The FB is called once for each channel in the initialisation of the application program. For this, the
input INIT must be set to TRUE. During initialisation, the parameter FREQUENCY is also assigned.
NOTE
The value FREQUENCY must be identical for all PWM channels.
For these channels,
PWM
(
) and PWM100 and
PWM1000
(
) must not be
mixed.
The PWM frequency is limited to 5 kHz internally.
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).
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 value FREQUENCY for determining the
dither frequency and the dither value (VALUE) are transmitted
The parameters DITHER_FREQUENCY and DITHER_VALUE can be individually set for each
channel.
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......