MC_GrpWriteBoolPar
Description
This function block writes a value to the specified Boolean group parameter. See Recovery of the System State After an Axis Error for more information.
IGNORE_AXIS_ESTOP (BoolID = 1000), and the Value can be either TRUE or FALSE.
- Setting this Boolean Parameter to TRUE will result in the Coordinated Motion Engine NOT stopping all axes in a group when one of them is stopped due to an Axis Estop Error. Only the axis experiencing the error will stop when this Parameter is set to TRUE.
- When this parameter is FALSE (Default), all axes in a group will be stopped and the power off request is asserted for each axis.
Figure 7-158: MC_GrpWriteBoolPar
-
- This function or function block returns cached data. See Programming a Dual Core Controller for more information.
Related Function Blocks
MC_GrpReadBoolPar,MC_ErrorDescription
Coordinated Motion, the top-level topic for Coordinated Motion.
Arguments
For more details on how inputs and outputs work, refer to PLCopen 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 Boolean group parameter. |
Data Type | BOOL | |
Range | 0, 1 | |
Unit | n/a | |
Default | — | |
AxesGroupRef | Description | The axis group that the Boolean parameter value will be written to. |
Data Type | AXES_GROUP_REF | |
Range | n/a | |
Unit | n/a | |
Default | — | |
ParamNum | Description |
The ID number of the Boolean parameter that is to be written |
Data Type | UINT | |
Range | ||
Unit | ||
Default | ||
ParamValue | Description | True or false |
Data Type | BOOL | |
Range | 0, 1 | |
Unit | n/a | |
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 Block ErrorID Output. |
Data Type | INT |
Example
ST
Inst_MC_GrpWriteBoolPar( ExecuteWrite, Group1Ref, IGNORE_AXIS_ESTOP, true );
IL
BEGIN_IL"Instruction list" This is a low-level language and resembles assembly
Cal Inst_MC_GrpWriteBoolPar( ExecuteWrite, Group1Ref, IGNORE_AXIS_ESTOP, true )
END_IL
FBD
FFLD