GetCommandStatus

Gets the state of a command.

Syntax

KsCommandStatus GetCommandStatus(
     KsCommandStatus Status
);

Parameters

Status: the command you want to get its state. It can be filled with a command whose return type is KsCommandStatus, or a returned KsCommandStatus structure.

Return value

Returns the KsCommandStatus structure.

Remarks

Usable EtherCAT states

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

Example

Copy
KsCommandStatus commandStop = Stop();
// Some operation in your application
commandStop = GetCommandStatus(commandStop);

Requirements

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

See also

AbortCommand

GetCommandsStatus

WaitForCommand