C# Class S7.Net.Types.DInt

ファイルを表示 Open project: killnine/s7netplus Class Usage Examples

Public Methods

Method Description
CDWord ( System.Int64 value ) : Int32

Converts from C# long (Int64) to C# int (Int32)

FromByteArray ( byte bytes ) : Int32

Converts a S7 DInt (4 bytes) to int (Int32)

FromBytes ( byte v1, byte v2, byte v3, byte v4 ) : Int32

Converts a S7 DInt (4 bytes) to int (Int32)

ToArray ( byte bytes ) : System.Int32[]

Converts an array of S7 DInt to an array of int (Int32)

ToByteArray ( Int32 value ) : byte[]

Converts a int (Int32) to S7 DInt (4 bytes)

Method Details

CDWord() public static method

Converts from C# long (Int64) to C# int (Int32)
public static CDWord ( System.Int64 value ) : Int32
value System.Int64
return System.Int32

FromByteArray() public static method

Converts a S7 DInt (4 bytes) to int (Int32)
public static FromByteArray ( byte bytes ) : Int32
bytes byte
return System.Int32

FromBytes() public static method

Converts a S7 DInt (4 bytes) to int (Int32)
public static FromBytes ( byte v1, byte v2, byte v3, byte v4 ) : Int32
v1 byte
v2 byte
v3 byte
v4 byte
return System.Int32

ToArray() public static method

Converts an array of S7 DInt to an array of int (Int32)
public static ToArray ( byte bytes ) : System.Int32[]
bytes byte
return System.Int32[]

ToByteArray() public static method

Converts a int (Int32) to S7 DInt (4 bytes)
public static ToByteArray ( Int32 value ) : byte[]
value System.Int32
return byte[]