7/26/2011 10:43 AM | |
Posts: 3 Rating:
|
Dear All, Pls, help me how to convert from hexa to decimal number in step 7. Many thanks. Ha |
7/26/2011 5:30 PM | |
Joined: 8/31/2005 Last visit: 4/24/2023 Posts: 2194 Rating:
|
Hello, As written in your post, the GEfloating-point format is non-standard. So it has to be converted. In the attachment you find, - the explanation of the SIMATIC Real format - the source of a function that converts to the SIMATIC format (FC100.AWL) - a print out of this function Due the GE format seems not to have negative values, the FC100 does not look for the signum of the value to be converted and converts allto positive values. What are we doing in FC100? We check the signum of the exponent and split in two parts. If it is positive (first part) we follow your example calculation [exept we have to do some mathmatics, because 2^X must be calculated as e^(X * ln(2)) ] If it is negative we have to change the exponent into a positive value and divide the matissa wirth 2^X With the example of your post the FC100 worked! AttachmentFC100.zip (423 Downloads) |
|
|
This contribution was helpful to
2 thankful Users |
7/26/2011 5:47 PM | |
Joined: 8/31/2005 Last visit: 4/24/2023 Posts: 2194 Rating:
|
The problem is the floating point valuesare different stored, so it is not so easy toconvert them: SIMATIC S7 (IEEE 754): value = signum * (1.0 + matissa) * 2^(exponet-127) GE UPS: value= matissa* 2^exponent |
|
|
7/27/2011 6:37 AM | |
Posts: 3 Rating:
|
Hi Dirk, It worked OK, Thank you very much for your help. Cheer ! Ha. |
Follow us on