EasyManua.ls Logo

IFM Electronic CR0403 - Page 182

IFM Electronic CR0403
233 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
182
ifm Programming Manual ecomatmobile BasicController (CR0403) Runtime System V03.02 2015-04-01
ifm function elements ifm function elements for the device CR0403
>
PWM1000
8060
Unit type = function block (FB)
Unit is contained in the library ifm_CR0403_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
17873
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 PWM output channel (0...11)
0...11 for the outputs OUT0...OUT11
FREQUENCY WORD PWM frequency in [Hz]
allowed = 20...250 = 0x0014...0x00FA
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.
DITHER_VALUE WORD peak-to-peak value of the dither in []
permissible values = 0...1 000 = 0000...03E8

Table of Contents