IApi.GetCommandsStatus 方法

取得命令状态。

命名空间IntervalZero.KINGSTAR.Base.Api

组合: IntervalZero.KINGSTAR.Base.Api (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

语法

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

参数

Statuses

型别:KsCommandStatus<byte[]>

用来取得状态的命令阵列,您可使用 KsCommandStatus<T> 建构函式来建构一个 KsCommandStatus<byte[]> 命令,并将命令阵列传递给该函式。

回传值

型别:KsReturn<KsCommandStatus<byte[]>[]>

回传 KsReturn<T> 类别,其中包含了 ErrorId 与 Value。ErrorId 含有函式的错误码;Value 含有命令阵列的状态。

备注

可用的 EtherCAT 状态

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

范例

C#
N/A

参见

IApi 介面

IntervalZero.KINGSTAR.Base.Api 命名空间