C# 클래스 S7.Net.Types.Word

Contains the conversion methods to convert Words from S7 plc to C#.
파일 보기 프로젝트 열기: killnine/s7netplus 1 사용 예제들

공개 메소드들

메소드 설명
FromByteArray ( byte bytes ) : UInt16

Converts a word (2 bytes) to ushort (UInt16)

FromBytes ( byte LoVal, byte HiVal ) : UInt16

Converts a word (2 bytes) to ushort (UInt16)

ToArray ( byte bytes ) : System.UInt16[]

Converts an array of bytes to an array of ushort

ToByteArray ( UInt16 value ) : byte[]

Converts a ushort (UInt16) to word (2 bytes)

메소드 상세

FromByteArray() 공개 정적인 메소드

Converts a word (2 bytes) to ushort (UInt16)
public static FromByteArray ( byte bytes ) : UInt16
bytes byte
리턴 System.UInt16

FromBytes() 공개 정적인 메소드

Converts a word (2 bytes) to ushort (UInt16)
public static FromBytes ( byte LoVal, byte HiVal ) : UInt16
LoVal byte
HiVal byte
리턴 System.UInt16

ToArray() 공개 정적인 메소드

Converts an array of bytes to an array of ushort
public static ToArray ( byte bytes ) : System.UInt16[]
bytes byte
리턴 System.UInt16[]

ToByteArray() 공개 정적인 메소드

Converts a ushort (UInt16) to word (2 bytes)
public static ToByteArray ( UInt16 value ) : byte[]
value System.UInt16
리턴 byte[]