AllenBradleyHelperReadDateAsync 方法 |
读取指定地址的日期数据,最小日期为 1970年1月1日,当PLC的变量类型为 "Date" 和 "TimeAndDate" 时,都可以用本方法读取。
Read the date data of the specified address. The minimum date is January 1, 1970. When the PLC variable type is "Date" and "TimeAndDate", this method can be used to read.
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<DateTime>> ReadDateAsync(
IReadWriteCip plc,
string address
)
Public Shared Function ReadDateAsync (
plc As IReadWriteCip,
address As String
) As Task(Of OperateResult(Of DateTime))
public:
static Task<OperateResult<DateTime>^>^ ReadDateAsync(
IReadWriteCip^ plc,
String^ address
)
static member ReadDateAsync :
plc : IReadWriteCip *
address : string -> Task<OperateResult<DateTime>>
参数
- plc
- 类型:HslCommunication.Profinet.AllenBradleyIReadWriteCip
当前的通信对象信息 - address
- 类型:SystemString
PLC里变量的地址
返回值
类型:
TaskOperateResultDateTime日期结果对象
参见