# Converting a DINT to a REAL value

**URL:** <https://tech-community.robotics.abb.com/t/converting-a-dint-to-a-real-value/3912>\
**Category:** Robot Controller\
**Created:** [November 12, 2010, 9:08pm UTC](https://tech-community.robotics.abb.com/t/converting-a-dint-to-a-real-value/3912 "2010-11-12T21:08:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fvadnais](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@fvadnais](https://tech-community.robotics.abb.com/u/fvadnais)\
**Post date:** [November 12, 2010, 9:08pm UTC](https://tech-community.robotics.abb.com/t/converting-a-dint-to-a-real-value/3912/1 "2010-11-12T21:08:06Z")

</div>

Hi,  
my PLC is mapped with the IRC5 trought Devicenet. The data type used for PLC to be passed over DeviceNet is DINT (32bit).  
Note that the DINT value that I’m working with is already converted from a REAL value in the PLC.

How should I proceed to convert the DINT value found in my Analog Input signal to a REAL value (floating point)?

---

<div class="post-metadata">

**Author:** ![Quat](https://avatars.discourse-cdn.com/v4/letter/q/b5e925/32.png) [@Quat](https://tech-community.robotics.abb.com/u/Quat)\
**Post date:** [November 28, 2010, 8:33pm UTC](https://tech-community.robotics.abb.com/t/converting-a-dint-to-a-real-value/3912/2 "2010-11-28T20:33:39Z")

</div>

fvadnais,

If you have already converted the number to DINT at the PLC it won’t be floating point any more will it?

Regards  
Dave

---

<div class="post-metadata">

**Author:** ![fvadnais](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@fvadnais](https://tech-community.robotics.abb.com/u/fvadnais)\
**Post date:** [November 29, 2010, 2:11pm UTC](https://tech-community.robotics.abb.com/t/converting-a-dint-to-a-real-value/3912/3 "2010-11-29T14:11:48Z")

</div>

Hi, the size of PLC data is DINT 32 bit over the DNet Network. The value contained in one of the DINT 32 is a bit copy of a FLOAT 32 (no conversion here). I think the Float format is from a standard called IEEE754. I was just wondering if the ABB controller could read this format directly from their Ainputs.  
The workaround is to convert the Float to INT x 1000 with the PLC and then, take this value on the robot side divided by 1000 to get the floating value back with 3 digit after decimal point. Is this sounds fair?
