OmronConnectedCipNetReadTime 方法 |
读取指定地址的时间数据,最小时间为 0,如果获取秒,可以访问 TotalSeconds,当PLC的变量类型为 "Time" 和 "TimeOfDate" 时,都可以用本方法读取。
Read the time data of the specified address. The minimum time is 0. If you get seconds, you can access TotalSeconds.
When the PLC variable type is "Time" and "TimeOfDate", you can use this Method to read.
命名空间:
HslCommunication.Profinet.Omron
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<TimeSpan> ReadTime(
string address
)
Public Function ReadTime (
address As String
) As OperateResult(Of TimeSpan)
public:
virtual OperateResult<TimeSpan>^ ReadTime(
String^ address
) sealed
abstract ReadTime :
address : string -> OperateResult<TimeSpan>
override ReadTime :
address : string -> OperateResult<TimeSpan>
参数
- address
- 类型:SystemString
PLC里变量的地址
返回值
类型:
OperateResultTimeSpan时间的结果对象
实现
IReadWriteCipReadTime(String)参见