Api.GetCommandsStatus method

Gets the states of commands.

Namespace: IntervalZero.KINGSTAR.Local.Api

Assembly: IntervalZero.KINGSTAR.Local.Api (in IntervalZero.KINGSTAR.Local.dll) Version: 4.4.0.0

Syntax

C#VB
public KsReturn<KsCommandStatus<byte[]>[]> GetCommandsStatus(
       KsCommandStatus<byte[]>[] Statuses
)
Public Function GetCommandsStatus(
       Statuses As KsCommandStatus(Of Byte())()
) As KsReturn(Of KsCommandStatus(Of Byte())())

Parameters

Statuses

Type: KsCommandStatus<byte[]>

The array of commands you want to get their states. You can use the constructor from KsCommandStatus<T> to create a KsCommandStatus<byte[]> command and pass the array of commands to the function.

Return value

Type: KsReturn<KsCommandStatus<byte[]>[]>

Returns the KsReturn<T> class which contains ErrorId and Value. The ErrorId contains error code from the function; while the Value contains the status of command array.

Remarks

Usable EtherCAT states

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

Examples

C#
N/A

See also

Api Class

IntervalZero.KINGSTAR.Local.Api Namespace