MC_GrpEnable

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. - Changes the state of a group from GroupDisabled to GroupStandby.

If the group is already in GroupStandby, then MC_GrpEnable does nothing.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

0, 1

N/A

No default

On the rising edgeClosed A rising edge is the transition of a digital signal from low to high. It is also called positive edge, request to enable the axis group.

AxisGroup

AXIS_GROUP_REF

N/A

N/A

No default

The axis group to be enabled.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

N/A

N/A

If TRUE, the command completed successfully.

Error

BOOL

N/A

N/A

If TRUE, an error has occurred.

ErrorID

INT

N/A

N/A

Indicates the error if Error output is TRUE.

See the table in PLCopen Function Block ErrorID Output.

Remarks


  • The group must be in GroupStandby to perform motion.

MC_GrpEnable fails under these conditions:

  • It contains no axes.
  • The group is not in GroupDisabled or GroupStandby.
  • One or more axes in the group are in another group that is not in GroupDisabled.
  • See Group State Diagrams for more information.

Figure 7-161: MC_GrpEnable

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

FBD Language

FFLD Language

IL Language

            BEGIN_ILClosed "Instruction list"
This is a low-level language and resembles assembly
            
CAL Inst_MC_GrpEnable( EnableGroup, Group1_Ref )
END_IL

ST Language

(* Inst_MC_GrpEnableST example *)
Inst_MC_GrpEnable( EnableGroup, Group1_Ref );

See Also