(0)| 9/17/2023 4:40 PM | |
|
Joined: 6/20/2017 Last visit: 10/6/2025 Posts: 486 Rating:
|
Few years ago I get a similar problem, (https://support.industry.siemens.com/forum/it/en/posts/if-else-statement-scl-compiler-error/266348/?page=0&pageSize=10), and after a long troubleshooting work I found that the problem was the CPU firmware. If you are realy sure that your source code is correct, try the program with the last available CPU firmware. |
|
Gustavo Antonio Banchetti Brucatori. |
|
| 9/18/2023 7:47 AM | |
|
Joined: 7/5/2021 Last visit: 12/17/2025 Posts: 232 Rating:
|
to be honest it is difficult to describe the issue, i managed to do a screen capture of the problem. it is visible at line 38
as you said the ts_st_high is only written one cycle, as i am saving the time of the rising edge. if i look at this tag in a watch table i see that the value is consistent with what is shown in gray. problem is that in the following if statement, where i compare it with current time it changes, as shown in the video attachment. Today it is mostly stable, but last friday it was almost always showing random data continously changing. after several test i am shure the code works correctly, it is only a online visualization problem. last week i was having a problem and lost a bunch of time looking at this, but my issue was somwhere else. I guess what I'm trying to get to is: has anyone else experienced this behavour? are there any tweaks possible to improve/avoid this? Attachmentwww-screencapture-com-2023-9-18-09-25_jE7VsZmn.mov (326 Downloads) |
Follow us on