MC_GrpWriteParam
This function block writes a value to the specified group parameter.
Figure 7-159: MC_GrpWriteParam
-
-
This function or function block returns cached data. See Programming a Dual Core Controller for more information.
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 PLCopenA 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 edgeA 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 BlockA 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