L_MC1P_ProfileGenerator

With this FB, time-based speed, acceleration, and positioning profiles are generated to an absolute target position for a positioning process.

 

 

 

L_MC1P_ProfileGenerator

 

 

 

L_MC1P_ProfileParameter

-

scProfileParameter

xDone

-

BOOL

BOOL

-

xExecute

xBusy

-

BOOL

BOOL

-

xAuxExecute

xAborted

-

BOOL

BOOL

-

xAbort

xError

-

BOOL

BOOL

-

xVelMode

eErrorID

-

L_IE1P_Error

LREAL

-

lrStartPos

lrSetPosOut

-

LREAL

LREAL

-

lrStartVel

lrSetVelOut

-

LREAL

LREAL

-

lrStartAcc

lrSetAccOut

-

LREAL

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

scProfileParameter

L_MC1P_ProfileParameter

xExecute

BOOL

Profile start. The input is edge-controlled and evaluates the rising edge.

FALSE ä TRUE

The travel profile defined at the scProfileParameter input is executed. The starting values of the profile are accepted at the time of the edge at xExecute from the lrStartPos , lrStartVel and lrStartAcc FB inputs.

xAuxExecute

BOOL

Alternative profile start. A second profile start in the subsequent cycle of the profile started via xExecute is possible using the xAuxExecute input. The profile started via xExecute is aborted and the new profile is executed. The input is edge-controlled and evaluates the rising edge.

FALSE ä TRUE

The travel profile defined at the scProfileParameter input is executed. The starting values of the profile are accepted at the time of the edge at xAuxExecute from the lrStartPos , lrStartVel and lrStartAcc FB inputs.

xAbort

BOOL

Cancellation or interruption of positioning. The input is edge-controlled and evaluates the rising edge.

FALSE ä TRUE

The current travel profile is interrupted. The axis is brought to a standstill with the deceleration parameters defined at the scProfileParameter input. When the xExecute , xAuxExecute and xAbort inputs are activated at the same time, the xAbort input has the highest priority.

TRUE

This prevents a restart via the xExecute or xAuxExecute input.

FALSE

This enables a restart via the xExecute or xAuxExecute input.

xVelMode

BOOL

Activate velocity operation. The changes at the xVelMode FB input are only accepted after a positive edge at the xExecute or xAuxExecute inputs.

TRUE

Continuous travel at the target speed defined at the scProfileParameter input.

FALSE

Standard positioning at the target position defined at the scProfileParameter input.

lrStartPos

LREAL

Position setpoint when positioning [unit] is started

lrStartVel

LREAL

Velocity setpoint when positioning [unit] is started

lrStartAcc

LREAL

Acceleration setpoint at the start of the positioning process [unit/s 2 ]

Outputs

Name

Data type

Value/meaning

xDone

BOOL

TRUE

The command has been executed successfully.

xBusy

BOOL

TRUE

Processing is running.

xAborted

BOOL

TRUE

Profile abort active.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

If xError = TRUE: Error number for the error that has occurred.

lrSetPosOut

LREAL

Setpoint position in [unit]

lrSetVelOut

LREAL

Setpoint velocity in [unit/s]

lrSetAccOut

LREAL

Setpoint acceleration in [unit/s 2 ]

The profile is generated as shown in the following illustration:

v max

Maximum speed

a max / -a max

Maximum / minimum acceleration

J max / -J max

Maximum / minimum jerk

Data type description L_MC1P_ProfileParameter

Structure

Data type

L_MC1P_ProfileParameter

lrTargetPos

LREAL

Absolute target position in [unit]

lrTargetVel

LREAL

Target speed in [unit]

Note

Positive target speed points in the direction of the positive target position and vice versa.

lrMaxVel

LREAL

Maximum velocity in [unit/s]

lrMaxAcc

LREAL

Maximum acceleration in [unit/s 2 ]

lrMaxDec

LREAL

Maximum deceleration in [unit/s 2 ]

lrJerkAcc

LREAL

Acceleration jerk in [unit/s 3 ]

lrJerkDec

LREAL

Deceleration jerk in [unit/s 3 ]