178
ifm
Programming Manual BasicController relay CR0431 v03.03.00
05 / 2018
ifm function elements
ifm function elements for the device CR0431
PWM1000
8060
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0431_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
8062
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
19709
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
execute this function element
FALSE:
unit is not executed
> initiated processes continue in the background
> FB outputs are not updated
CHANNEL
BYTE
Number of the output channel
0...5 for the outputs K00...K05
FREQUENCY
WORD
PWM frequency in [Hz]
allowed = 15 000...25 000 = 0x3A98...0x61A8
VALUE
WORD
PWM value (mark-to-space ratio) in [‰]
allowed = 0...1 000 = 0x0000...0x03E8
Values > 1 000 are regarded as = 1 000
DITHER_FREQUENCY
WORD
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.
For relays at the output: value = 0 !
DITHER_VALUE
WORD
peak-to-peak value of the dither in [‰]
permissible values = 0...1 000 = 0000...03E8
For relays at the output: value = 0 !
Summary of Contents for ioControl CR2050
Page 228: ...228 10 Notizen Notes Notes ...