Travel profiles

Up to 16 speed profile data sets can be defined for the speed control operation. Each profile data set consists of:

  • Speed ( lrVelocity )

  • Acceleration ( lrAcceleration )

  • Deceleration ( lrDeceleration )

  • Jerk ( lrJerk )

The profile data sets are saved in structures of the type L_TF2P_scVelocityProfile in an array ascProfiles and can be selected via the wProfileNumber input. The active profile in each case is shown at the wActiveProfile output. The array ascProfiles is part of the parameter structure scPar and can be shown with its default values as follows:

wProfilenumber

lrVelocity

lrAcceleration

lrDeceleration

lrJerk

0..15

0

100

100

100000

Condition

  • The technology module is in a fault-free state
  • The drive is released ( xReadyForMotion = TRUE)

Type

The speed operation is started and stopped as explained in the section above. The switch-over between the profiles is via the wProfileNumber input. If the speed value is also to be accepted from the profile data, the xUseProfileVel input must be set to TRUE. If the xUseProfileVel input has the status FALSE, the setpoint speed is accepted from the lrSetVel input. The xProfileVelActive output indicates whether the speed has been accepted from the profile data.

Example

The example shows the use of the xUseProfileVel input bit and the resulting behavior of the technology module.

A speed of 500 units/s is preselected at the lrSetVel input. The profile speed of profile 0 is set to 1000 units/s. The speed operation starts and the axis ramps up to 500 units/s. The xUseProfileVel bit is now set and the speed setpoint accepted from the profile data (1000 units/s). The xProfileVelActive output bit shows that this function is active. The MP_lrActiveVel signal flow variable indicates that the speed has been accepted. The axis accelerates to 1000 units/s. After xUseProfileVel has been reset, the speed setpoint is once again accepted from the lrSetVel input. The axis decelerates to 500 units/s.

No

xSpeedControl

xUse
Profile
Vel

xProfile
Vel
Active

eTMState

INFO

A

FALSE ä TRUE

FALSE

FALSE

STANDBY ➞ MOVEVEL

The axis accelerates with limited jerk to the setpoint speed 500 units/s preselected at the lrSetVel input and holds this.

B

TRUE

FALSE ä TRUE

FALSE ä TRUE

MOVEVEL

The active profile's speed is activated and the axis accelerates to 1000 units/s and holds this speed

C

TRUE

TRUE æ FALSE

TRUE æ FALSE

MOVEVEL

The profile speed is deactivated and the axis decelerates to the setpoint speed 500 units/s preselected at the lrSetVel input and holds this.

D

TRUE æ FALSE

FALSE

FALSE

MOVEVEL

The axis decelerates to a standstill with the deceleration set for the holding function.