11/9/2010 8:39 AM | |
Joined: 10/7/2005 Last visit: 11/28/2023 Posts: 2996 Rating:
|
Hello melsec- I presume you have an EPROM in your 921 CPU, correct? If so, the short answer is: Do not worry about OB255 and simply delete its call from the S5program. The background behind this advise is: A S5 921 CPU needseither a RAM or EPROM card to store the User program. To be able for the S5 program to store/write data into DB's, youhad to load the DB's upon PLC startup (e,g, OB22) from the EPROM into the inbuilt so called "Data Block RAM" of the CPU. This is what OB255 does in your logic and there is no need for it anymore in an S7 PLC. Just in case you have a RAM in 921 CPU, you can still safely delete the call (the most likely reason for using OB255 is now to free up memory on the RAM card by transfering the DB to the inbuilt DB RAM) I hope this helps |
Cheers |
|
11/10/2010 9:43 AM | |
Joined: 10/7/2005 Last visit: 11/28/2023 Posts: 2996 Rating:
|
Hello melsec- I can't say from the pic if it is a RAM or EPROM, you will have to "find" its part number to find out what type it is. Having said that (and as mentionedbefore), it doesn't really matter asyou do NOT needthe "OB255 functionality" in your S7, so simply delete its call (as well as the then surplus "L KB20") when converting. As for what your code exactly does, please see below: L KB 20 // DB Number thatis to be copied from (RAM or EPROM) User memory JU OB 255 //Copy DB20 from User memory to CPU internal DB-RAM I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
Follow us on