11/5/2015 4:43 PM | |
Posts: 1 Rating: (0) |
Hi, A determined function is responsible to increment a variable in a DB. I don't know why this variable is being displayed in hexa (DW#16#7F800000) - Take a look at the attachment. When I simulated this software, this variable was incremented in decimal, with no problem. Could you help me to identify the possible reasons of a value has been displayed in Hexadecimal? ------------------------------------------------------------------------------------------ |
Last edited by: The Helping Hand at: 11/6/2015 9:48:26 AMNew subject after splitting |
|
11/6/2015 5:17 AM | |
Joined: 1/28/2009 Last visit: 10/26/2024 Posts: 6852 Rating: (1365)
|
Hello ,
The only reason for that would be values such as "DW#16#7F800000" are not valid floating-point variables and it may lead from using wrong calculation instructions that is hidden in S7-PLCSIM(Read more HERE).It is known that S7-PLCSIM have major different with a real CPU and for your case, I suggest checking your program step-by-step again . I hope this helps, hdhosseini |
9/21/2024 7:35 PM | |
Joined: 1/27/2023 Last visit: 10/16/2024 Posts: 5 Rating: (0) |
Did you get solution for that. I'm also facing same issue. 16#FFC0_0000 & 16#7FC0_0000 |
Follow us on