向PLC中写入日期格式的数据,日期格式里只有年,月,日
Write data in date format to PLC, only year, month, day in date format
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult WriteDate(
string address,
DateTime dateTime
)
Public Function WriteDate (
address As String,
dateTime As DateTime
) As OperateResult
public:
OperateResult^ WriteDate(
String^ address,
DateTime dateTime
)
member WriteDate :
address : string *
dateTime : DateTime -> OperateResult
参数
- address
- 类型:SystemString
等待写入的PLC地址 - dateTime
- 类型:SystemDateTime
等待写入的日期
返回值
类型:
OperateResult是否写入成功
参见