Posted 8 Nov 2018 I have an omron CJ2M PLC, and am trying to do a conversion but I can't find the instruction for it. how do i convert a udint to a double floating point number (64bit). I need the accuracy for further calculations. Thanks in advance Share this post Link to post Share on other sites
Posted 8 Nov 2018 Benlawder. Take a look at the DBLL instruction. Not sure if that is what you are looking for. Share this post Link to post Share on other sites
Posted 8 Nov 2018 DBLL is 32 bit to 64 bit float - DBL is 16 bit to 64 bit float. Share this post Link to post Share on other sites
Posted 8 Nov 2018 Thanks guys that is exactly what I was looking for. The description in the help is apparently wrong: it says that DBLL converts double floating to 32 bit signed binary. Wrong direction. One more question while you are here... to move the double floating point is it best to use XFER and move it as a block, or use MOVL twice? Are there benefits to one or the other? Share this post Link to post Share on other sites
Posted 8 Nov 2018 I noticed the incorrect description also. I would use XFER. Should be a bit easier to understand down the road. Share this post Link to post Share on other sites
Posted 19 Nov 2018 (edited) DBLL converts a 32-bit signed binary value to double-precision (64-bit) floating-point data. Not UDINT. Edited 19 Nov 2018 by Sergei Troizky Share this post Link to post Share on other sites