Function BlockMC_ReadActVelPLCopen motion icon

Description

The MC_ReadActVel function block reads the actual velocity of the axis.

MC_ReadActVel

Figure 7-124: MC_ReadActVel

Arguments

For more detail on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules

Input

Enable Description Requests to read the axis's actual velocity
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

Output

Valid Description Indicates the value at the ActualVelocity output is available
Data type BOOL
Busy Description Indicates this function block is executing
  Data type BOOL
Error Description Indicates an invalid input
  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
ActualVelocity Description

Actual velocity of the axis. Please note that oscillations may be seen due to this being an instant velocity, not an average velocity.

  Unit User unit/sec
  Data type LREAL

Example

Structured Text

            * MC_ReadActVel S
            T example *);
Inst_MC_ReadActVel( TRUE, Axis1 ); //Inst_MC_ReadActVel is an instance of MC_ReadActVel function block
			
ActualVel := Inst_MC_ReadActVel.ActualVelocity; // store ActualVelocity output into a user defined variable

Ladder Diagram

MC_ReadActVel: LD example

Go back to the top of the page [Top]