The Festo_Motion.lib library
28
1.10 Examples
1.10.1 Example for controlling a Festo motor controller
Festo motor controller CMMP-AS with associated function block CMMP_AS_CTRL
Figure: Example of function block CMMP_AS_CTRL
Type CMMP-AS-... motor controllers can be controlled in the following four combinations of operating and
control mode using this block:
– Record selection
– Direct mode position control
– Direct mode force control
– Direct mode velocity control
The preset operating and control mode is only adopted and displayed when a movement is
initiated, i.e. a rising edge at the "StartTask" input.
Prerequisites for operational readiness
Additional input signals may be required depending on the motor controller, e.g. at DIN_4, DIN_5, DIN_13,
etc. Refer to the manual for the motor controller being used for more detailed information.
– Motor controller is switched on
– Load voltage is present
– PLC has control priority
Achieving ready status
Action by the user Feedback
-- SupplyVoltagePresent = 1
EnableDrive = 1 DriveEnabled = 1
MC = 1
Stop = 1 Ready = 1
Halt = 1 HaltActive = 0