Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcRawTypes type exposes the following members.
Specifies the string representation of the bit raw type.
C#
public const string Bit = "X
Field Value
String
Specifies the string representation of the byte raw type.
C#
public const string Byte = "B
Field Value
String
Specifies the string representation of the double word raw type.
C#
public const string DWord = "D
Field Value
String
Specifies the string representation of the word raw type.
C#
public const string Word = "W
Field Value
String
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
The character representation of the value
specified.
Exceptions
The according character representation could not be retrieved.
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
The according PlcRawType value of the value
specified.
Exceptions
The according PlcRawType could not be retrieved.
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
The according PlcRawType value of the value
specified.
Exceptions
The value
is equal to Empty or the according PlcRawType could not be retrieved.
The value
is a null reference (Nothing in Visual Basic).
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
The according size (in bytes) of the value
specified.
Exceptions
The according size could not be retrieved.
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
The according size either in bytes or in bits of the value
specified.
Exceptions
The according size could not be retrieved.
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
The string representation of the value
.
Exceptions
The according string representation could not be retrieved.