7/17/2013 8:00 AM | |
Posts: 8946 Rating:
|
All that was already said. is it really necessary to repeat? |
7/17/2013 12:10 PM | |
Joined: 12/1/2009 Last visit: 9/5/2024 Posts: 672 Rating:
|
Hi Saravana kumar, I see value 0.2and not 20.0 what do you see? Best Regards. |
Give us your feedback and show us your respect! |
|
This contribution was helpful to
1 thankful Users |
7/17/2013 12:46 PM | |
Joined: 11/21/2007 Last visit: 8/12/2024 Posts: 2325 Rating:
|
Saravana kumar,might be confusing the floating point representation of S5 with S7 In S5 +2000000+00 = 0.2 and not 2.0 as in S7 ( Pl see Attachment ) ( Decimal point is assumed to be in the beginning of the Mantissa ) i.e. +2000000+00 = +.20000000 E+000 = 0.2 ) Here DD 10 contains the value 0.2 No wonder the Integer value after conversion = 0 ---------------------- This is how I read the program : 0.2 / =MRPM = 1.3333 x DD8 = 0.2 ( Stored in DBW 10 ) DBW10 converted to Integer Transfer to REF --------------------------- Also this seems to be a FB with parameters. If this has been called multiple times in the program, the block status will show the status in the last call of the block. Hope this helps Cheers Navnag AttachmentS5_FP_Format.pdf (259 Downloads) |
Last edited by: Navnag at: 7/17/2013 12:49 PMThere is no such thing as the last bug in a program |
|
This contribution was helpful to
2 thankful Users |
Follow us on