Industrial Automation
Industrial Automation | Europe


Main > Product Type > Software > Programming
Minimize Text   Default    Enlarge Text


How Do I Convert A BCD To Floating Point (FLT)? - CX-Programmer

For a BCD number to be converted to a Floating Point (FLT) number, we must first convert the BIN (023) command into a binary (HEX) value, then the binary value can be converted to a value for the FLT FLT (452) instruction.

If you want to convert a FLT value to a BCD value, then first convert the FIX (450) instruction to the binary value, and then convert binary value to the BCD (024) instruction and convert it to a BCD value.

For double addresses use BINL (058), FLTL (453), FIXL (451) and BCDL (059) instructions.


Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2008-10-16
Modified 2008-12-10
Views 18839


You are not logged in.