MC_SetOverride
Description
The velocity override factor is applied to the programmed velocity (of a MC_MoveAbsolute, MC_MoveAdditive, MC_MoveRelative, MC_MoveSuperimp, or MC_MoveVelocity function block) to determine the command velocity:
command velocity = programmed velocity * VelFactor
Arguments
For more detail on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules
Input
Enable |
Description |
Request to write the override factors |
Data type |
BOOL |
|
Range |
0, 1 |
|
Unit |
N/A |
|
Default |
— |
|
Axis |
Description |
Name of a declared instance of the AXIS_REF library function. For more details,About Axis Name and Number |
Data type |
||
Range |
[1,256] |
|
Unit |
N/A |
|
Default |
— |
|
VelFactor |
Description |
Velocity override factor |
Data type |
REAL |
|
Range |
[0.0, 2.0] |
|
Unit |
N/A |
|
Default |
— |
Output
Enabled |
Description |
Indicates the override values have been written |
Data type |
BOOL |
|
Busy |
Description |
Indicates the function block is executing |
Data type |
BOOL |
|
Error |
Description |
Indicates an invalid input is specified |
Data type |
BOOL |
|
ErrorID |
Description |
Indicates the error if Error output is set to TRUE
|
Data type |
INT |
Example
Structured Text
(* MC_SetOverride ST example *)
VelFactor := 1.25 ; //set the velocity factor to 1.25 (125%)
Inst_MC_SetOverride( TRUE , Axis1, VelFactor ); // Inst_MC_Setoverride is an instance of MC_SetOverride
Ladder Diagram