147
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
PWM1000
20465
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
20972
PWM1000 handles the initialisation and parameter setting of the PWM outputs.
The FB enables a simple use of the PWM FB in the
ecomatmobile
device. The PWM frequency can
be directly indicated in [Hz] and the mark-to-space ratio in steps of 1 ‰.
The FB 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 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.
Die PWM-Frequenz ist intern auf 5 kHz begrenzt.
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
module 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: ......