Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

S7 Real Numbers problem

Status
Not open for further replies.

snydl0ga

Industrial
Joined
May 26, 2004
Messages
12
Location
US
I have to interface to a program that is using DINT data in DBlocks. The DINT is data coming into the PLC and I have to do calculations on these numbers as Real types. My problem is that when I use the DI to R Converter the numbers do not match. At the input the number in DINT is 7 million and something and the Real is 12 billion or so.

Maybe I should convert the datatypes to DINT if this is going to get ugly.

Any suggestions?
 
Disregard...It turns out the Reals are displayed in a different format than the DInts so I was looking at them wrong. Reals are in a Scientific notation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top