Api.GetCommandsStatus 方法
取得命令狀態。
命名空間:IntervalZero.KINGSTAR.OpcUa.Api
組合: IntervalZero.KINGSTAR.OpcUa.Api (於 IntervalZero.KINGSTAR.OpcUa.Client.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())())
參數
用來取得狀態的命令陣列,您可使用 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
參見