StopGroup

Commands a controlled motion stop and transfers the axis group to the state GroupStopping. It aborts any ongoing function execution. While the axis group is in the GroupStopping state, no other function can perform any motion on this axis group. After the axis group has reached velocity zero, the Done field of KsCommandStatus is set to TRUE immediately. To leave the GroupStopping state and go to GroupStandstill, use ReleaseGroup.

Syntax

KsCommandStatus StopGroup(
     int Index,
     double Deceleration,
     double Jerk
);

Parameters

Index [in]: the index of an axis group. Indexes are zero based. Aliases affect this parameter. You can have up to 32 groups.

Deceleration [in]: a value of the deceleration. The unit is determined by the McProfileType type. [unit/second2] or [second]

Jerk [in]: a value of the jerk. The unit is determined by the McProfileType type. [unit/second3] or [second]

Return value

Returns the KsCommandStatus structure.

Remarks

Example

N/A

Requirements

  RT Win32
Minimum supported version 4.0 4.0
Header ksmotion.h ksmotion.h
Library KsApi_Rtss.lib KsApi.lib

See also

HaltGroup

InchGroup

JogGroup

ReleaseGroup