3/5/2013 8:28 AM | |
Joined: 10/7/2005 Last visit: 6/9/2023 Posts: 2969 Rating:
|
Hello Asw19flier
The Process image is updated at the start of the scan (in S5 as well as in S7). All this does is tomanually refresh (or update) IW8in the Process Image with the actual values from the input card to have the absolute latest values available (for any numberof possible reason which I can't say without knowing the whole S5 program and application requirements)
QW82 is well and trulyOutput Word 82 in the Process Image of the Outputs which canbe read accessed (it is NOTa DBWof the currently open DB). Why they also use an MWto store values is something I can't say (this part of the logic is not shown in your example). Note though that MW access is easier and faster in S5 as you don't have to explicitly open the correct DB firstso usage of MW's is/was commonly done.
What "byte wise addressing of data" are you referring too? Anyhow, I agree that you clean up this section and simply call SFC22 with the correct values to create the DB (the S5 to S7 converter errs on the safe side with this kind of stuff to ensure the contents of accu 1 and 2 and the status word are preserved. This does lead to a rather convoluted converted S7 logic though). As for a good write up on this this, well,the S5 to S7 converter manual is not a bad place to startand there are plenty of FAQ's and forum post available too which you can find with a search here. I hope this helps |
Cheers |
|
This contribution was helpful to
3 thankful Users |
3/5/2013 5:58 PM | |
Joined: 1/16/2013 Last visit: 5/15/2023 Posts: 36 Rating:
|
-Operating on MBs I do understand, however with the newer PLC it is cleaner and more funcional to use the DBs. According to my colegaue theyused Q's for the shift register because lack of memory space.
What "byte wise addressing of data" are you referring too? Anyhow, I agree that you clean up this section and simply call SFC22 with the correct values to create the DB (the S5 to S7 converter errs on the safe side with this kind of stuff to ensure the contents of accu 1 and 2 and the status word are preserved. This does lead to a rather convoluted converted S7 logic though). As for a good write up on this this, well,the S5 to S7 converter manual is not a bad place to startand there are plenty of FAQ's and forum post available too which you can find with a search here. I hope this helps - Im referring to constant buffering of STW in order to contantly preserve the state in local data. |
Follow us on