L_MC1P_AverageFilterSetValue

This FB enables the filtering of the setpoints of a real axis in order to calm the motion sequence.

Note!

Please observe the following when using this setpoint-manipulating FB:

  • The Standstill PLCopen status is entered when the unfiltered setpoint selection has reached a standstill. Also, the Motion FBs (e.g. MC_MoveAbsolute , MC_MoveVelocity , L_MC1P_AxisBasicControl ) switch their status outputs (x)Busy , (x)Done etc. on the basis of the unfiltered setpoints.
  • For standstill detection in the application, the following can be used in addition if necessary: outputs xStandstillActVelocity and xInPosition in FBs MC_ReadMotionState or L_MC1P_AxisBasicControl, as well as output xInEqOut of this FB.
  • The filter function is active in the StandStill , Discrete Motion , Syncronized Motion and ContinuousMotion PLCopen statuses.
  • The filter function in the Stop PLCopen status is only active if the xIgnoreFilterOnStop input is FALSE.
  • The filter effect is (re-)activated when the axis is in a full PLC cycle in the StandStill PLCopen status. This means that the filter function does not become active if a movement is requested directly after switch-on or directly after a homing process.

 

 

 

L_MC1P_AverageFilterSetValue

 

 

 

AXIS_REF

-

Axis

xBusy

-

BOOL

BOOL

-

xEnable

xActive

-

BOOL

L_MC1P_ExecutionIndex

-

eExecutionIndex

xError

-

BOOL

BOOL

-

xIgnoreFilterOnStop

eErrorID

-

L_IE1P_Error

WORD

-

wFilterDepth

lrSetPosOut

-

LREAL

BOOL

-

xManipulateTorque

lrSetVelOut

-

LREAL

lrSetAccOut

-

LREAL

lrSetTorqueOut

-

LREAL

xInEqOut

-

BOOL

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

Axis

AXIS_REF

Transfer of the axis data structure

Motion axes (AXIS_REF)

xEnable

BOOL

FALSE ä TRUE

Start activation of the function block

TRUE

The filter module is announced to the connected Axis_Ref and called automatically by it.

The activation or deactivation can only take place when the axis is disabled ("Disabled" state).

eExecutionIndex

L_MC1P_ExecutionIndex

Ausführungsindex

A maximum of two setpoint-manipulating FBs can be connected to one axis. The call sequence is defined via this input.

Selection:

L_MC1P_ExecutionIndex.First := 1,

L_MC1P_ExecutionIndex.Second := 2

Note: The L_CT1P_OscillationComp module which is connected to the axis via the same execution indices also belongs to the class of setpoint-manipulating FBs.

xIgnoreFilterOnStop

BOOL

TRUE

If the axis stops through an instance of the FB MC_Stop , this input can be used to define whether the filter should also be calculated in the "Stopping" state.

A deactivation in the "Stopping" state makes sense when the filter mechanism causes a long dead time in the system and thus the stop of the axis would be delayed considerably.

wFilterDepth

WORD

Filter depth

Value range: 0 ... 1000 PLC cycles (zero and one are equivalent to deactivated filter)

Note: Changes to this input are only applied if the axis is not moving.

xManipulateTorque

BOOL

Filtering an additive feedforward control torque

Note: The additive pilot torque may only be filtered if the torque specification is made via the lrTorque input of the L_MC1P_SetTorqueOffset FB and the specified torque is based on filtered setpoints.

TRUE

When using L_MC1P_SetTorqueOffset the following applies:

xManipulateTorque :=TRUE if the calculation of L_MC1P_SetTorqueOffset.lrTorque is based on set values.

FALSE

xManipulateTorque :=FALSE,

  • if the calculation of L_MC1P_SetTorqueOffset.lrTorque is based on actual values
  • if the calculation of L_MC1P_SetTorqueOffset.lrTorque is based on filtered setpoints
Outputs

Name

Data type

Value/meaning

xBusy

BOOL

TRUE

The FB was linked into the setpoint path of AxisRef

xActive

BOOL

TRUE

The setpoints are filtered via the medium value filter.

Note: If xActive := FALSE even though xBusy := TRUE, this may be due to the following causes:

  • The FB is waiting for the first standstill of the axis since activation
  • The axis is in the Disabled, Homing, ErrorStop state or the drive is in the QSP state
  • The axis is in the Stopping state AND xIgnoreFilterOnStop is TRUE

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

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

Reference manual "FAST technology modules":

Here you will find information on error or warning messages

lrSetPosOut

LREAL

Diagnostics of the filtered setpoint position

Another switching of the output is not required.

lrSetVelOut

LREAL

Diagnostics of the filtered setpoint speed

Another switching of the output is not required.

lrSetAccOut

LREAL

Diagnostics of the filtered setpoint acceleration

Another switching of the output is not required.

lrSetTorqueOut

LREAL

Diagnostics of the filtered setpoint torque

Another switching of the output is not required.

xInEqOut

BOOL

TRUE

The filter process is completed (manipulated setpoints = setpoints of the application)

Application example

L_MC1P_AverageFilterSetValues0(

Axis:= LM_Drive_i700,

xEnable:= xFilterEnable,

eExecutionIndex:= 1,

xIgnoreFilterOnStop := FALSE,

xBusy=> ,

xActive=> ,

xError=> ,

eErrorID=> ,

lrSetPosOut=> ,

lrSetVelOut=> ,

lrSetAccOut=> ,

lrSetTorqueOut=> ,

wFilterDepth:= 30);

Representation of the setpoint path in AxisRef

If an FB of type L_MC1P_AverageFilterSetValues is activated, the filter function is integrated into the setpoint path via a free interface of the AxisRef.

Integration of the filter function into the setpoint path