From the IEC program
The following application example shows how to control the "Velocity" operating mode from the IEC program.
Control
Control the axis in the Velocity structure as follows:
- To activate the operating mode, set xActivate to "TRUE".
- Define the setpoints for lrVelocity, lrAcceleration, lrDeceleration.
- To start the operating mode, set xStart to "TRUE".
Interface in the IEC Editor
Note:
When xStart has a value of "TRUE", the system accelerates with lrAcceleration. When the target speed is reached, you will receive the feedback xInVelocity = "TRUE" in the OUT structure. When xStart has a value of "FALSE", the system stops with lrDeceleration.
Trace recording
[1] | Velocity.In.xActivate |
[2] | Velocity.In.xStart |
[3] | Velocity.In.lrVelocity |
[4] | Velocity.Out.xInVelocity |
Information:
The speed curve is trapezoidal as the drive was moved without jerk time.