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