MC_GrpReadParam

PLCopen motion icon Pipe Network motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Reads a value from the specified group parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

EnableClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive.

BOOL

FALSE, TRUE

N/A

No default

If TRUE, then request to read a value from the specified Boolean group parameter.

AxesGroupRef

AXES_GROUP_REF

No range

N/A

No default

The axis group the Boolean parameter value is read from.

ParamNum

LREAL

See Axes Group Parameters.

LREAL

No default

Currently, one parameter is supported:

  • MC_GRP_PARAM_CIRCLE_TOLERANCE:

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

FALSE, TRUE

N/A

If TRUE, the command completed successfully.

Error

BOOL

FALSE, TRUE

N/A

If TRUE, an error has occurred.

ErrorID

INT

No range

N/A

Indicates the error if Error output is TRUE.

See PLCopen Function Block ErrorIDs.

ParamValue

LREAL

No range

N/A

The value of the group parameter.

Remarks

Figure 1: MC_GrpReadParam

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Inst_MC_GrpReadParam( DoEnable, Group1_ref, MC_GRP_PARAM_CIRCLE_TOLERANCE );       
CircleTolerance := Inst_MC_GrpReadParam.ParamValue;

See Also