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:
|
|
|
|
|
L_MC1P_AverageFilterSetValue |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
|
Axis |
xBusy |
|
- |
BOOL |
|
BOOL |
- |
|
xEnable |
xActive |
|
- |
BOOL |
|
- |
|
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 |
Transfer of the axis data structure |
|
|
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 |
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,
|
|
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:
|
|
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
|
|
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
Motion axes (AXIS_REF)