Function BlockMC_SetOverridePLCopen motion icon

Description

This function block writes the velocity override factor.  A change in the velocity override factor takes effect immediately on the active move.

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 

MC_SetOverride

Figure 7-144: MC_SetOverride

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

AXIS_REF

 

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

See table in PLCopen Function Block ErrorID Output

 

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

MC_SetOverride: LD example

Go back to the top of the page [Top]