176
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
PWM in the ecomatmobile controller
Current control with PWM
Parameters of the function inputs
Name
Data type Description
ENABLE
BOOL
TRUE: function is executed
FALSE: function is not executed
INIT
BOOL
TRUE (in the 1st cycle):
function
initialised
FALSE: during processing of the program
OUTPUT_CHANNEL BYTE PWM
output
channel
(0...x: values depend on the device)
DESIRED_CURRENT
WORD
Desired current value in [mA]
PWM_FREQUENCY
WORD
Permissible PWM frequency for the load connected to the
output
DITHER_FREQUENCY WORD
Dither frequency in [Hz]
DITHER_VALUE
BYTE
Amplitude of the dither value in [%]
MODE BYTE
Controller
characteristics:
0 = very slow increase, no overshoot
1 = slow increase, no overshoot
2 = minimum overshoot
3 = moderate overshoot permissible
MANUAL
BYTE
If value > 0, the self-optimising performance of the controller is
overwritten (typ. value: 50).
Parameters of the function outputs
Name
Data type Description
PWM_RATIO
BYTE
For monitoring purposes: display PWM pulse ratio 0...100 %