ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
PWM in the ecomatmobile controller
Current control with PWM
173
9.2.2
Function OUTPUT_CURRENT_CONTROL
Contained in the library:
ifm_CRnnnn_Vxxyyzz.LIB
Available for the following devices:
•
ClassicController: CR0020, CR0505
•
ExtendedController:
CR0200
•
SafetyController: CR7020, CR7021, CR7200, CR7201, CR7505, CR7506
•
SmartController:
CR2500
Function symbol:
OUTPUT_CURRENT_CONTROL
ENABLE
PWM_RATIO
INIT
OUTPUT_CHANNEL
ACTUAL_CURRENT
PWM_FREQUENCY
DITHER_FREQUENCY
DITHER_VALUE
MODE
MANUAL
DESIRED_CURRENT
Description
OUTPUT_CURRENT_CONTROL operates as current controller for the PWM outputs.
The controller is designed as an adaptive controller so that it is self-optimising. If this self-optimising
performance is not desired, a value > 0 can be transmitted via the input MANUAL; the self-optimising
performance is then deactivated. The numerical value represents a compensation value, which has an
influence on the
i
ntegral and
d
ifferential components of the controller. To determine the best settings
of the controller in the MANUAL mode, the value 50 is suitable. Depending on the requested controller
characteristics the value can then be incremented step-by-step (controller becomes more sensitive /
faster) or decremented (controller becomes less sensitive / slower).
If the function input MANUAL is set to 0, the controller is always self-optimising. The performance of
the controlled system is permanently monitored and the updated compensation values are
automatically and permanently stored in each cycle. Changes in the controlled system are immediately
recognised and corrected.
NOTE
To obtain a stable output value the function OUTPUT_CURRENT_CONTROL should be called
cyclically at regular intervals.
If a precise cycle time (5 ms) is required: use function OCC_TASK (
→
page
OUTPUT_CURRENT_CONTROL is based on the function PWM (
→
).
If OUTPUT_CURRENT_CONTROL is used for the outputs 4...7, only the PWM function may be used
there if the PWM outputs 8...11 are used simultaneously.