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

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

공개 메소드들

메소드 설명
CWord ( int value ) : Int16

Converts a C# int value to a C# short value, to be used as word.

FromByteArray ( byte bytes ) : Int16

Converts a S7 Int (2 bytes) to short (Int16)

FromBytes ( byte LoVal, byte HiVal ) : Int16

Converts a S7 Int (2 bytes) to short (Int16)

ToArray ( byte bytes ) : System.Int16[]

Converts an array of S7 Int to an array of short (Int16)

ToByteArray ( Int16 value ) : byte[]

Converts a short (Int16) to a S7 Int byte array (2 bytes)

메소드 상세

CWord() 공개 정적인 메소드

Converts a C# int value to a C# short value, to be used as word.
public static CWord ( int value ) : Int16
value int
리턴 System.Int16

FromByteArray() 공개 정적인 메소드

Converts a S7 Int (2 bytes) to short (Int16)
public static FromByteArray ( byte bytes ) : Int16
bytes byte
리턴 System.Int16

FromBytes() 공개 정적인 메소드

Converts a S7 Int (2 bytes) to short (Int16)
public static FromBytes ( byte LoVal, byte HiVal ) : Int16
LoVal byte
HiVal byte
리턴 System.Int16

ToArray() 공개 정적인 메소드

Converts an array of S7 Int to an array of short (Int16)
public static ToArray ( byte bytes ) : System.Int16[]
bytes byte
리턴 System.Int16[]

ToByteArray() 공개 정적인 메소드

Converts a short (Int16) to a S7 Int byte array (2 bytes)
public static ToByteArray ( Int16 value ) : byte[]
value System.Int16
리턴 byte[]