2/13/2022 11:11 PM | |
Joined: 9/27/2006 Last visit: 8/18/2024 Posts: 12279 Rating:
|
Hello Hasan; A few years ago some of our members faced a very similar issue Here is the discussion they started online: Look at the post where Ssc_Mikro shows us the answer recived from Siemens Support; "The behavior you describe is a normal for PLCSIM. PLCSIM works like a PLC 400. The PLC 400 has four accumulators. If you make a addition in a PLC 300 you has in the accu 2 the last value from accu 1. In a PLC 400 you have only the resolut in accu 1. The worthy of the other accumulators slip after.(accu3-->accu2)..." From the PLCSIM operating instructions manual (secion Differences from a "Real" PLC:: "PLCSIM supports four accumulators like a S7-400 CPU. In some cases a program running on S7-PLCSIM with four accumulators might behave differently than on an S7-300 CPU that only has two accumulators." https://support.industry.siemens.com/cs/ww/en/view/54667828/28932144779 Hope this helps, Daniel Chartier |
2/14/2022 1:40 PM | |
Joined: 9/27/2006 Last visit: 8/18/2024 Posts: 12279 Rating:
|
Hello Hassan; Jacek's treak works because the ENT instruction (only in STL) copies values of liwer accumulators into higher ones. See the screenshot below, taken from the S7-300/400 STL programming manual: https://support.industry.siemens.com/cs/ww/en/view/109751814 Hope this helps, |
Follow us on