C# Class S7.Net.Types.DWord

Contains the conversion methods to convert DWord from S7 plc to C#.
Afficher le fichier Open project: killnine/s7netplus Class Usage Examples

Méthodes publiques

Méthode Description
FromByteArray ( byte bytes ) : UInt32

Converts a S7 DWord (4 bytes) to uint (UInt32)

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

Converts a S7 DWord (4 bytes) to uint (UInt32)

ToArray ( byte bytes ) : System.UInt32[]

Converts an array of S7 DWord to an array of uint (UInt32)

ToByteArray ( UInt32 value ) : byte[]

Converts a uint (UInt32) to S7 DWord (4 bytes)

Method Details

FromByteArray() public static méthode

Converts a S7 DWord (4 bytes) to uint (UInt32)
public static FromByteArray ( byte bytes ) : UInt32
bytes byte
Résultat System.UInt32

FromBytes() public static méthode

Converts a S7 DWord (4 bytes) to uint (UInt32)
public static FromBytes ( byte v1, byte v2, byte v3, byte v4 ) : UInt32
v1 byte
v2 byte
v3 byte
v4 byte
Résultat System.UInt32

ToArray() public static méthode

Converts an array of S7 DWord to an array of uint (UInt32)
public static ToArray ( byte bytes ) : System.UInt32[]
bytes byte
Résultat System.UInt32[]

ToByteArray() public static méthode

Converts a uint (UInt32) to S7 DWord (4 bytes)
public static ToByteArray ( UInt32 value ) : byte[]
value System.UInt32
Résultat byte[]