PlcRawTypes Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcRawTypes type exposes the following members.

Bit

Specifies the string representation of the bit raw type.

C#

public const string Bit = "X


Field Value
String

Byte

Specifies the string representation of the byte raw type.

C#

public const string Byte = "B


Field Value
String

DWord

Specifies the string representation of the double word raw type.

C#

public const string DWord = "D


Field Value
String

Word

Specifies the string representation of the word raw type.

C#

public const string Word = "W


Field Value
String

GetChar(PlcRawType)

Retrieves the according character representation which matches the specified value.

C#

public static char GetChar(PlcRawType value)


Parameters

value PlcRawType

The PlcRawType its character representation is to be retrieved.


Returns

Char

The character representation of the value specified.



Exceptions

ArgumentException

The according character representation could not be retrieved.

GetRawType(Char)

Retrieves the according PlcRawType value which matches the specified value.

C#

public static PlcRawType GetRawType(char value)


Parameters

value Char

The character representation of the PlcRawType to retrieve.


Returns

PlcRawType

The according PlcRawType value of the value specified.



Exceptions

ArgumentException

The according PlcRawType could not be retrieved.

GetRawType(String)

Retrieves the according PlcRawType value which matches the specified value.

C#

public static PlcRawType GetRawType(string value)


Parameters

value String

The string representation of the PlcRawType to retrieve.


Returns

PlcRawType

The according PlcRawType value of the value specified.



Exceptions

ArgumentException

The value is equal to Empty or the according PlcRawType could not be retrieved.

ArgumentNullException

The value is a null reference (Nothing in Visual Basic).

GetSize(PlcRawType)

Retrieves the according size in bytes of the specified value.

C#

public static int GetSize(PlcRawType value)


Parameters

value PlcRawType

The PlcRawType its size is to be retrieved.


Returns

Int32

The according size (in bytes) of the value specified.



Exceptions

ArgumentException

The according size could not be retrieved.

GetSize(PlcRawType, Boolean)

Retrieves the according size (optionally in bytes or bits) of the specified value.

C#

public static int GetSize(PlcRawType value, bool inBytes)


Parameters

value PlcRawType

The PlcRawType its size is to be retrieved.

inBytes Boolean

The value true, to retrieve the size of value in bytes; otherwise the value false to retrieve the size in bits.


Returns

Int32

The according size either in bytes or in bits of the value specified.



Exceptions

ArgumentException

The according size could not be retrieved.

GetString(PlcRawType)

Retrieves the according string representation which matches the specified value.

C#

public static string GetString(PlcRawType value)


Parameters

value PlcRawType

The PlcRawType its string representation is to be retrieved.


Returns

String

The string representation of the value.



Exceptions

ArgumentException

The according string representation could not be retrieved.