MC_SetOverride - General Information
Type: |
Function Block |
Available as of: |
1.0.5.0 |
Versions: |
current version |
The motion parameters of a started motion are to be changed.
New motion parameters are sent to all individual axis motion POUs, such as MC_MoveVelocity, that work on this axis. The POUs continue their motions with the new parameters.
Input |
Data type |
Description |
---|---|---|
Axis |
SystemConfigurationItf.IF_Drive |
Interface of the axis to be controlled |
Enable |
BOOL |
As long as the input is TRUE, the motion parameters are transferred to the POUs. |
VelFactor |
LREAL |
New override factor for velocity: 0 to 2.0 |
AccFactor |
LREAL |
New override factor for acceleration/braking: 0 to 2.0 |
JerkFactor |
LREAL |
New override factor for jerk: 0 to 2.0 |
Output |
Data type |
Description |
---|---|---|
Enabled |
BOOL |
Signalizes that the override factors have been set successfully. |
Busy |
BOOL |
The function block is not finished and new outputs are still pending. |
Error |
BOOL |
Signalizes a detected error within the function block |
ErrorId |
DWORD |
Error identification |
q_etDiag |
General, library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
3 |
The drive is enabled. |
|
OK |
0 |
Ok |
|
InputParameterInvalid |
40 |
AccFactor is outside the valid range. |
|
InputParameterInvalid |
25 |
The connected drive is not supported. |
|
InputParameterInvalid |
27 |
The connected drive is not initialized. |
|
InputParameterInvalid |
41 |
JerkFactor is outside the valid range. |
|
InputParameterInvalid |
39 |
VelFactor is outside the valid range. |
Enumeration name: |
AccFactorRange |
Enumeration value: |
40 |
Description: |
AccFactor is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value was transferred at the input AccFactor. |
It must be made sure that a value greater than 0 and smaller than or equal to 2 is transferred at the input AccFactor. |
Enumeration name: |
AxisInvalid |
Enumeration value: |
25 |
Description: |
The connected drive is not supported. |
Issue |
Cause |
Solution |
---|---|---|
- |
No drive has been applied at the input Axis. |
A valid drive must be transferred to the input Axis. |
Enumeration name: |
DriveNotInitialised |
Enumeration value: |
27 |
Description: |
The connected drive is not initialized. |
Issue |
Cause |
Solution |
---|---|---|
- |
The function FC_DriveInit was not activated for the drive at the input Axis. |
Before using the POU, the drive must be initialized using the function FC_DriveInit. |
Enumeration name: |
Enabled |
Enumeration value: |
3 |
Description: |
The drive is enabled. |
The motion parameters are overwritten.
Enumeration name: |
JerkFactorRange |
Enumeration value: |
41 |
Description: |
JerkFactor is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value was transferred at the input JerkFactor. |
It must be made sure that a value greater than 0 and smaller than or equal to 2 is transferred at the input JerkFactor. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The POU is waiting for jobs.
Enumeration name: |
VelFactorRange |
Enumeration value: |
39 |
Description: |
VelFactor is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value was transferred at the input VelFactor. |
It must be made sure that a value greater than 0 and smaller than or equal to 2 is transferred at the input VelFactor. |