MC_SetOverride

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Writes velocity and acceleration override factors.

Inputs

Input

Data Type

Range

Unit

Default

Description

Enable

BOOL

0, 1

N/A

No default

Request to write the override factors.

Axis

AXIS_REF

1, 256

N/A

No default

Name of a declared instance of the AXIS_REF library function.

VelFactor

REAL

0.0, 2.0

N/A

No default

Velocity override factor.

Outputs

Output

Data Type

Range

Unit

Description

Enabled

BOOL

 

 

Indicates the override values have been written.

Busy

BOOL

 

 

Indicates this function block is executing.

Error

BOOL

 

 

Indicates an invalid input was specified.

ErrorID

INT

 

 

Indicates the error if Error output is TRUE.

See PLCopen Function Block ErrorIDs for more information.

Remarks

command velocity = programmed velocity * VelFactor 

MC_SetOverride

Figure 6-243: MC_SetOverride

FBD Language Example

Not available.

FFLD Language Example

MC_SetOverride: LD example

IL Language Example

Not available.

ST Language Example

            (* 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