点击或拖拽改变大小

SiemensDateTimeFromByteArray 方法

Parses a DateTime value from bytes.

命名空间:  HslCommunication.Profinet.Siemens
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
public static OperateResult<DateTime> FromByteArray(
	byte[] bytes
)

参数

bytes
类型:SystemByte
Input bytes read from PLC.

返回值

类型:OperateResultDateTime
A DateTime object representing the value read from PLC.
异常
异常条件
ArgumentOutOfRangeExceptionThrown when the length of bytes is not 8 or any value in bytes is outside the valid range of values.
参见