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