Api.GetCommandsStatus 方法
取得命令状态。
命名空间:IntervalZero.KINGSTAR.Local.Api
组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
语法
public KsReturn<KsCommandStatus<byte[]>[]> GetCommandsStatus(
KsCommandStatus<byte[]>[] Statuses
)
Public Function GetCommandsStatus(
Statuses As KsCommandStatus(Of Byte())()
) As KsReturn(Of KsCommandStatus(Of Byte())())
参数
Statuses
用来取得状态的命令阵列,您可使用 KsCommandStatus<T> 建构函式来建构一个 KsCommandStatus<byte[]> 命令,并将命令阵列传递给该函式。
回传值
型别:KsReturn<KsCommandStatus<byte[]>[]>
回传 KsReturn<T> 类别,其中包含了 ErrorId 与 Value。ErrorId 含有函式的错误码;Value 含有命令阵列的状态。
备注
- 传递给 GetCommandsStatus的 Statuses 值不应为空值,应为另一个命令如 Start 的回传值。
- 若在 Win32 和 .NET 介面中使用 GetCommandsStatus,各命令的
ValueLength
(KsCommandStatus) 不可超过 8 个位元组。
可用的 EtherCAT 状态
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
范例
N/A
参见