12/10/2013 11:01 AM | |
Joined: 11/16/2012 Last visit: 2/26/2019 Posts: 42 Rating:
|
Hello, I have a problem with a temp variable that is not read in one of my networks. The temp variable is written in the first block as it should but the second block does not read this (see pic1). I have also added a contact with the same signal at the end to see how this work and it is following the output (the contact has also been added between ENO and EN and it is still showing the correct value). The temp variable is not used in any other places. When changing the temp bit to a memory bit the status is correct. It is also correct when I'm splitting the network and still using the temp variable. Is there any problem with the execution order that I don't consider? The way I see it is that block 1 is executed first (reads input --> writes outputs) and after this block 2 is executed and that it should also catch the signal change from block 1. I have tested this with a CPU 319-3 PN/DP and the PLC simulator. Why is the temp variable not updated as it should be? Best regards iad AttachmentPictures (1).zip (163 Downloads) |
12/10/2013 4:44 PM | |
Joined: 1/3/2006 Last visit: 2/19/2024 Posts: 726 Rating:
|
and this is what behind the scene STL compiler does. [img]/tf/WW/en/postattachments/download?attachmentId=41827[/img]
|
Follow us on