MC_GrpDisable
Description
MC_GrpDisable changes the state for a group to GroupDisabled. If the group is already in GroupDisabled, then MC_GrpDisable will do nothing.This function block can be issued in the group states: (GroupDisabled, GroupStandby, or GroupErrorStop).
-
-
MC_GrpDisable will fail if the group is in any state other than GroupStandby or GroupDisabled.
Refer to Group State Diagrams for details.
-
- This function block starts a motion-related action and therefore stores data for calculations and error checking. Please see Calling Function Blocks Multiple Times in the Same Cycle if you are using a dual-core controller.
Related Functions
MC_GrpEnable, MC_ErrorDescription
Coordinated Motion, the top-level topic for Coordinated Motion.
Arguments
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 disable the axis group. |
Data Type | BOOL | |
Range | 0, 1 | |
Unit | N/A | |
Default | — | |
AxesGroup | Description | The axis group to be disabled |
Data Type | AXIS_GROUP_REF | |
Range | N/A | |
Unit | N/A | |
Default | — |
Output
Done | Description |
If True, then the command completed successfully. |
Data Type | BOOL | |
Error | Description |
If True, then 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_GrpDisableST example *)
Inst_MC_GrpDisable( DisableGroup, Group1_Ref );
IL
BEGIN_IL"Instruction list" This is a low-level language and resembles assembly
CAL Inst_MC_GrpDisable( DisableGroup, Group1_Ref )
END_IL
FBD
FFLD