BcdConverter Class

Converts base data types to an array of bytes, and an array of bytes to base data types using the binary coded decimal format (BCD).

System.Object
IPS7Lnk.Advanced.BcdConverter

Namespace:  IPS7Lnk.Advanced
Assembly:  IPS7LnkNet.Advanced (in IPS7LnkNet.Advanced.dll) Version: 1.0.0.0 (1.7.2.0)

C#

public static class BcdConverter


The BcdConverter type exposes the following members.

—– Name Description
GetBcd(Int16) Returns the specified Int16 value as a BCD Byte value.
GetBcd(Int32) Returns the specified Int32 value as a BCD Byte value.
ToInt16 Returns a 16-bit signed integer converted from the BCD Byte specified by value.
ToInt32 Returns a 32-bit signed integer converted from the BCD Byte specified by value.

Top

Reference