OmronFinsNetHelperReadCpuTimeAsync 方法 |
[商业授权] 读取CPU单元的一些操作状态数据,主要包含运行状态,工作模式,错误信息等。
[Authorization] Read some operating status data of the CPU unit, mainly including operating status, working mode, error information, etc.
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<DateTime>> ReadCpuTimeAsync(
IReadWriteDevice omron
)
Public Shared Function ReadCpuTimeAsync (
omron As IReadWriteDevice
) As Task(Of OperateResult(Of DateTime))
public:
static Task<OperateResult<DateTime>^>^ ReadCpuTimeAsync(
IReadWriteDevice^ omron
)
static member ReadCpuTimeAsync :
omron : IReadWriteDevice -> Task<OperateResult<DateTime>>
参数
- omron
- 类型:HslCommunication.CoreIReadWriteDevice
PLC设备的连接对象
返回值
类型:
TaskOperateResultDateTime是否读取成功
参见