Function BlockMC_ReadParamPLCopen motion icon

Description

The MC_ReadParam function block returns the value of the specified axis parameter.

MC_ReadParam

Figure 7-127: MC_ReadParam

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 parameter

 

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

ParameterNumber

Description

Parameter number, see table in Axis Parameters

 

Data type

INT

 

Range

 

Unit

n/a

 

Default

Output

Valid

Description

Indicates the Value output is valid

 

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

Value

Description

Value of the parameter

 

Data type

LREAL

Example

Structured Text

(* MC_ReadParam ST example *)
Inst_MC_ReadParam( EnableRead, Axis1, MC_AXIS_PARAM_CMD_VEL );
Axis1_CmdVel := Inst_MC_ReadParam.Value;

Ladder Diagram

Go back to the top of the page [Top]