1/27/2018 2:17 PM | |
Joined: 5/6/2010 Last visit: 6/1/2023 Posts: 1882 Rating:
|
Hello Duccio, the REAL-numbers at the S5 are a little bit different to S7. Please look at this link at page 41 at the pdf. https://support.industry.siemens.com/cs/ww/en/view/1087149 There is a explanation for REAL numbers in S5. At your program you should write for 100.0 - you do it right at 27468 L KG +1000000 +03 // 0.1 10exp3
regards
|
Last edited by: Jen_Moderator at: 1/29/2018 11:59:48 AMInserted right link. |
|
This contribution was helpful to
3 thankful Users |
1/27/2018 10:39 PM | |
Joined: 3/30/2011 Last visit: 6/1/2023 Posts: 731 Rating:
|
Hello, i think this problem is related to floating point accuracy. If you push this key in your keyboard : "L K G 1 0 0" S5 editor "understands" : mantissa=1 and exponent=0 that is 0,1. In S5 notation "L KG+1000000+00"(rounded value) but editor shows :"L KG+9999999-01"(unrounded value). Same thing appens if you push this key in your keyboard : "L K G 1" or "L K G 1 0" or "L K G 1 0 0 0". S5 editor always "understands" 0,1 and shows :"L KG+9999999-01". To write 100.0 you have to push this key in your keyboard : "L K G 1 + 3" then S5 show "L KG+10000000+03"that is 0,1x10^3=100 here you can find some theory : What every computer scientist should know about floating-point arithmetic. Hope this helps ciao |
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ |
|
1/28/2018 6:10 PM | |
Joined: 12/7/2011 Last visit: 4/26/2023 Posts: 376 Rating:
|
Hi guys, Thanks to everyone for the support. Regards. Duccio. |
This contribution was helpful to
1 thankful Users |
Follow us on