SiemensS7NetReadDateTimeAsync 方法 |
从PLC中读取时间格式的数据
Read time format data from PLC
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<DateTime>> ReadDateTimeAsync(
string address
)
Public Function ReadDateTimeAsync (
address As String
) As Task(Of OperateResult(Of DateTime))
public:
Task<OperateResult<DateTime>^>^ ReadDateTimeAsync(
String^ address
)
member ReadDateTimeAsync :
address : string -> Task<OperateResult<DateTime>>
参数
- address
- 类型:SystemString
地址
返回值
类型:
TaskOperateResultDateTime时间对象
参见