Converting a DINT to a REAL value
fvadnais
✭
Hi,
fvadnais2010-11-12 21:09:06
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)?
- Francois
0
Comments
-
fvadnais,If you have already converted the number to DINT at the PLC it won't be floating point any more will it?RegardsDave0
-
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?- Francois0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings