Industry Online Support
Technical Forum
2/15/2014 7:05 AM | |
Joined: 10/7/2005 Last visit: 10/9/2024 Posts: 3024 Rating: (1054)
|
Hello winarko_song you won't be able to directly replace only the commands in bold as you are dealing with direct memory addressing which is no longer possible in S7. What I can tell you is this: TIR2 transfers the value of ACCU-2-High (0 in your case) into the memory cell whose addressis located inACCU-1. As such, your logicwill fill a certain memory area with zero values (the start of memory area isthe value in FW 250 before the loop is entered, the end of the memory area is in FW 252). The simplest replacement for the whole logic would arguably be usage of SFC 21 "FILL", but writing your own loop to transfer zero values would work just as well. What you need to find out first is what is the start value of FW250 as well as the value of FW252 to determine what memory area is being written too. You'll aso nedd tograb a copy of your CPU manual as S5 CPU's differ in their memory map from each other. I hope this helps |
Cheers |
|
Follow us on