Topic: DMD0015

Help File Version: 2.10.0.636

BCDTO - BCD To Integer / Real


The BCD To Integer / Real (BCDTO) instruction is used to convert a BCD (binary coded decimal) value to an Integer or Real (floating point) value.

 

Parameters:

Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.

 

BCD Input is the memory location that contains the BCD value to convert. This can be any constant value or any readable numeric memory location. If the BCD Input location does not contain a valid BCD number, ST132 (Argument Out of Range) will be ON, and the System Error string $ERR will contain "Digit greater than 9 in BCDTO @xxxxxxxx".

 

Output is the numeric memory location to store the Integer or Real result. This can be any writable numeric location.

 


See Also:

BCDTO - BCD to Integer / Real

 

TOBCD - Integer / Real To BCD

 


Related Topics:

Note: although Do-more CPUs do not natively support BCD, the following two instructions are available for converting data from external communication devices which is formatted as BCD.

 

PUBLISH - Translate from Do-more

 

SUBSCRIB - Translate to Do-more

 


Rung Example: