FatekProgramOverTcpReadStatusAsync 方法 |
读取当前PLC的状态信息,返回一个bool数组,同时包含了几种电量信息,分别为 0: RUN/STOP, 1: BAT LOW/正常, 2: Ladder checksum error/正常, 3: 使用ROM PACK/未使用,
4: WDT Timeout/正常, 5: 设定ID/未设ID, 6: 紧急停机/正常
Read the status information of the current PLC and return a bool array, which also contains several power information, 0: RUN/STOP, 1: BAT LOW/normal,
2: Ladder checksum error/normal, 3: Use ROM PACK/ Not used, 4: WDT Timeout/Normal, 5: ID set/ID not set, 6: Emergency stop/Normal
命名空间:
HslCommunication.Profinet.FATEK
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<bool[]>> ReadStatusAsync()
Public Function ReadStatusAsync As Task(Of OperateResult(Of Boolean()))
public:
Task<OperateResult<array<bool>^>^>^ ReadStatusAsync()
member ReadStatusAsync : unit -> Task<OperateResult<bool[]>>
返回值
类型:
TaskOperateResultBoolean状态结果信息
参见