IFM Electronic CR0403 Programming Manual page 182

Hide thumbs Also See for CR0403:
Table of Contents

Advertisement

ifm
Programming Manual
ecomatmobile
ifm function elements
>
PWM1000
Unit type = function block (FB)
Unit is contained in the library ifm_CR0403_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
PWM1000 handles the initialisation and parameter setting of the PWM outputs.
The FB enables a simple use of the PWM FB in the device. For each channel an own PWM frequency,
the mark-to-space ratio and the dither can be set.
The PWM frequency FREQUENCY can be directly indicated in [Hz] and the mark-to-space ratio
VALUE in steps of 1 ‰.
>
Parameters of the inputs
Parameter
ENABLE
CHANNEL
FREQUENCY
VALUE
DITHER_FREQUENCY
DITHER_VALUE
BasicController (CR0403) Runtime System V03.02
Data type
BOOL
BYTE
WORD
WORD
WORD
WORD
182
ifm function elements for the device CR0403
Description
TRUE:
execute this function element
FALSE:
unit is not executed
> initiated processes continue in the background
> FB outputs are not updated
Number of the PWM output channel (0...11)
0...11 for the outputs OUT0...OUT11
PWM frequency in [Hz]
allowed = 20...250 = 0x0014...0x00FA
PWM value (mark-to-space ratio) in [‰]
allowed = 0...1 000 = 0x0000...0x03E8
Values > 1 000 are regarded as = 1 000
dither frequency in [Hz]
value range = 0...FREQUENCY / 2
FREQUENCY / DITHER_FREQUENCY must be even-numbered!
The FB increases all other values to the next matching value.
peak-to-peak value of the dither in [‰]
permissible values = 0...1 000 = 0000...03E8
2015-04-01
8060
8062
17873

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents