KeyenceNanoHelperSetPlcDateTimeAsync 方法 |
[商业授权] 设置PLC的时间
[Authorization] Set PLC time
命名空间:
HslCommunication.Profinet.Keyence
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult> SetPlcDateTimeAsync(
IReadWriteDevice keyence,
DateTime dateTime
)
Public Shared Function SetPlcDateTimeAsync (
keyence As IReadWriteDevice,
dateTime As DateTime
) As Task(Of OperateResult)
public:
static Task<OperateResult^>^ SetPlcDateTimeAsync(
IReadWriteDevice^ keyence,
DateTime dateTime
)
static member SetPlcDateTimeAsync :
keyence : IReadWriteDevice *
dateTime : DateTime -> Task<OperateResult>
参数
- keyence
- 类型:HslCommunication.CoreIReadWriteDevice
PLC通信对象 - dateTime
- 类型:SystemDateTime
时间数据
返回值
类型:
TaskOperateResult是否设置成功
参见