Function BlockMC_GrpWriteParamPLCopen motion iconPipe Network motion icon

This function block writes a value to the specified group parameter.

Figure 8-166: MC_GrpWriteParam

Related FunctionClosedA 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. Blocks

MC_GrpReadParam, MC_ErrorDescription

Coordinated Motion, the top-level topic for Coordinated Motion.

Arguments

For more details on how inputs and outputs work, refer to PLCopenClosedA vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML Function Blocks - General Rules.

Input

Execute Description On the rising edgeClosedA rising edge is the transition of a digital signal from low to high. It is also called positive edge, request to write a value to the specified group parameter.
  Data Type BOOL
  Range 0,1
  Unit N/A
  Default
AxesGroupRef Description The axis group that the parameter value will be written to.
  Data Type AXIS_GROUP_REF
  Range N/A
  Unit N/A
  Default
ParamNum Description Currently, only one parameter is supported:
MC_GRP_PARAM_CIRCLE_TOLERANCE: (ID = 2000): The value read will be the axes group circle construction tolerance. See Axes Group Parameters for more information.
  Data Type LREAL
  Range See Axes Group Parameters
  Unit LREAL
  Default
ParamValue Description The new value for the group parameter
  Data Type LREAL
  Range parameter dependent
  Unit parameter dependent
  Default

Output

Done Description If True, then the command completed successfully.
  Data Type BOOL
Busy Description If True, then the function block is executing.
  Data Type BOOL
Error Description If True, an error has occurred.
  Data Type BOOL
ErrorID Description Indicates the error if Error output is set to TRUE. See the table in PLCopen Function BlockClosedA function block groups an algorithm and a set of private data. It has inputs and outputs. ErrorID Output.
  Data Type INT

Examples

ST.

Inst_MC_GrpWriteParam( DoExecute, Group1_ref, MC_GRP_PARAM_CIRCLE_TOLERANCE, CircleTolerance );

FBD

FFLD

Go back to the top of the page [Top]