(0)| 6/9/2015 3:45 PM | |
|
Joined: 8/31/2005 Last visit: 12/16/2025 Posts: 2198 Rating:
|
Try this for 32 bit values (REAL, DINT): L #R_In and for 16 byte values (INT) L #R_In
see https://support.industry.siemens.com/cs/ww/en/view/45523446 for more details |
Last edited by: miami at: 6/9/2015 3:45:58 PM |
|
This contribution was helpful to
|
|
| 6/10/2015 9:13 AM | |
|
Posts: 8 Rating:
|
ive tried it but didnt work for me as well. the strange thing for me is if i look in my recieving DB (data written by honewell) hex codes look different then when siemens writes them. for instance": typed in on the honeywellsystem - 100000.0 16#0000_47C3 ( recieved in my DB) so i swap it to this 16#47C3_0000 then i read it in an variable tabel . it reads 99840.0 when i write in TIA , 100000.0 to an MD and i look at the hex code it reads : 16#47C3_5000 im not sure if it can be looked at like this , but its strange . where comes the 5 come from... small numbers have a little offset , but the bigger they get the more offset it gets. 92.0% gets 90.5% so its a big problem for me . |
| 6/10/2015 10:37 AM | |
|
Joined: 1/17/2007 Last visit: 1/8/2026 Posts: 1561 Rating:
|
Well 100000.0 does equate to the hex code 16#47C3_5000 and 16#47C3_0000 does equate to 99840.000. So the TIA system is correct and the Honeywell system is not. If the honeywell system is transmitting 100000.0 it should most definitely send the hex value 16#47C3_5000. You need to talk to the Honeywell engineer and ask him what is going on in his system as it is clearly not correct. Maybe some issue with rounding? But it seems a very long way out for a rounding error. If he doesn't believe you, then show him the evidence using the links below. Use this link to convert decimal FP to hex equivalent:- http://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html Use this link to convert hex equivalent to decimal FP:- |
|
Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots. |
|
| 6/10/2015 1:04 PM | |
|
Posts: 8 Rating:
|
thanks for the confirmation , i will pass it trough to the automation engineer from honeywell. |
| 6/10/2015 2:24 PM | |
|
Posts: 8 Rating:
|
we found out what is was eventually , if honeywell sends out at holding register 40004 i have to read it at 40002 . the other programmer was stating i had to begin at 4001 . so the 0000 in my second word was a blank spot . the 5000 was used for the next real . so thats why all the variables were off. |
This contribution was helpful to
|
|
Follow us on