点击或拖拽改变大小

AllenBradleyHelperWriteTime 方法

使用时间格式(TIME)将时间数据写入到PLC中指定的地址里去,PLC的地址类型变量必须为 "TIME",否则写入失败。
Use the time format (TIME) to write the time data to the address specified in the PLC. The PLC address type variable must be "TIME", otherwise the writing will fail.

命名空间:  HslCommunication.Profinet.AllenBradley
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public static OperateResult WriteTime(
	IReadWriteCip plc,
	string address,
	TimeSpan time
)

参数

plc
类型:HslCommunication.Profinet.AllenBradleyIReadWriteCip
当前的通信对象信息
address
类型:SystemString
PLC里变量的地址
time
类型:SystemTimeSpan
时间参数变量

返回值

类型:OperateResult
是否写入成功
参见