PlcRawTypeExtension Members

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

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.

GetSize(PlcRawType)

Retrieves the according length of the specified value.

C#

public static int GetSize(PlcRawType value)


Parameters

value PlcRawType

The PlcRawType its length is to be retrieved.


Returns

Int32

The according length of the value specified.



Exceptions

ArgumentException

The according length could not be retrieved.

GetSize(PlcRawType, Boolean)

Retrieves the according length of the specified value.

C#

public static int GetSize(PlcRawType value, bool inBytes)


Parameters

value PlcRawType

The PlcRawType its length is to be retrieved.

inBytes Boolean

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


Returns

Int32

The according length of the value specified.



Exceptions

ArgumentException

The according length 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.