L_MC1P_GetMaxVelAccDec

This FB serves to measure the maximum absolute velocity, acceleration, and deceleratin value of an axis. When a time stamp is transmitted, the time of the respective maximum value is output in addition.

 

 

 

L_MC1P_GetMaxVelAccDec

 

 

 

AXIS_REF

-

Axis

xValid

-

BOOL

BOOL

-

xEnable

xBusy

-

BOOL

DWORD

-

dwTimeStamp

lrMaxVelocity

-

LREAL

MC_Source

-

eMC_Source

dwTimeVelAtMax

-

DWORD

lrMaxAcceleration

-

LREAL

dwTimeAccAtMax

-

DWORD

lrMaxDeceleration

-

LREAL

dwTimeDecAtMax

-

DWORD

xError

-

BOOL

eErrorID

-

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

xEnable

BOOL

TRUE

Start measurement.

dwTimeStamp

DWORD

Current time stamp

  • Only required if the time of the respective maximum value is to be output as well.
  • The time stamp can be any DWORD.

eMC_Source

MC_SOURCE

Source of relevant data:

  • mcSetValue: Setpoint
  • mcActualValue: Current value
  • mcCommandedValue: Commanded value

All other options for eMC_Source are not supported by this FB.

Outputs

Name

Data type

Value/meaning

xValid

BOOL

TRUE

Valid values are applied to the FB outputs.

xBusy

BOOL

TRUE

Processing is running.

lrMaxVelocity

LREAL

Maximum velocity in [unit/s]

dwTimeVelAtMax

DWORD

Time stamp at the time of maximum velocity

lrMaxAcceleration

LREAL

Maximum acceleration in [unit/s 2 ]

dwTimeAccAtMax

DWORD

Time stamp at the time of maximum acceleration

lrMaxDeceleration

LREAL

Maximum deceleration in [unit/s 2 ]

dwTimeDecAtMax

DWORD

Time stamp at the time of maximum deceleration

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

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