AllenBradleyNetWriteTimeOfDateAsync 方法 |
使用时间格式(TimeOfDate)将时间数据写入到PLC中指定的地址里去,PLC的地址类型变量必须为 "TimeOfDate",否则写入失败。
Use the time format (TimeOfDate) to write the time data to the address specified in the PLC. The PLC address type variable must be "TimeOfDate", otherwise the writing will fail.
命名空间:
HslCommunication.Profinet.AllenBradley
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> WriteTimeOfDateAsync(
string address,
TimeSpan timeOfDate
)
Public Function WriteTimeOfDateAsync (
address As String,
timeOfDate As TimeSpan
) As Task(Of OperateResult)
public:
virtual Task<OperateResult^>^ WriteTimeOfDateAsync(
String^ address,
TimeSpan timeOfDate
) sealed
abstract WriteTimeOfDateAsync :
address : string *
timeOfDate : TimeSpan -> Task<OperateResult>
override WriteTimeOfDateAsync :
address : string *
timeOfDate : TimeSpan -> Task<OperateResult>
参数
- address
- 类型:SystemString
PLC里变量的地址 - timeOfDate
- 类型:SystemTimeSpan
时间参数变量
返回值
类型:
TaskOperateResult是否写入成功
实现
IReadWriteCipWriteTimeOfDateAsync(String, TimeSpan)参见