MC_GrpWriteParam

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. - Writes a value to the specified group parameter.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

FALSE, TRUE

N/A

No default

On the rising edgeClosed The transition of a digital signal from low to high. AKA: positive edge., request to write a value to the specified Boolean group parameter.

AxesGroupRef

AXES_GROUP_REF

No range

N/A

No default

The axis group the Boolean parameter value is written to.

ParamNum

LREAL

See Axes Group Parameters.

LREAL

No default

Currently, one parameter is supported:

  • MC_GRP_PARAM_CIRCLE_TOLERANCE:

ParamValue

LREAL

Parameter dependent.

Parameter dependent.

No default

The new value for the group parameter.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

FALSE, TRUE

N/A

If TRUE, the command completed successfully.

Busy

BOOL

FALSE, TRUE

N/A

If TRUE, the functionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block is executing.

Error

BOOL

FALSE, TRUE

N/A

If TRUE, an error has occurred.

ErrorID

INT

-32768 to +32767

 

Indicates the error if Error output is TRUE.

See PLCopen Function Block ErrorIDs.

Remarks

Figure 1: MC_GrpWriteParam

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Inst_MC_GrpWriteParam( DoExecute, Group1_ref, MC_GRP_PARAM_CIRCLE_TOLERANCE, CircleTolerance );

See Also