Namespace: IPS7Lnk.Advanced Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll The BcdConverter type exposes the following members.
Returns the specified Int16 value as a BCD Byte value.
C#
public static byte GetBcd(short value)
Parameters
value Int16
value
A Int16 value.
Returns
Byte
The BCD Byte value.
Returns the specified Int32 value as a BCD Byte value.
public static byte GetBcd(int value)
value Int32
A Int32 value.
Returns a 16-bit signed integer converted from the BCD Byte specified by value.
public static short ToInt16(byte value)
value Byte
Int16
A 16-bit signed integer formed by the value specified.
Returns a 32-bit signed integer converted from the BCD Byte specified by value.
public static int ToInt32(byte value)
Int32
A 32-bit signed integer formed by the value specified.