How to Transfer Entire Database Between S7-1200 PLCs Using PUT/GET

Question:

I am trying to transfer all the data from one S7-1200 PLC to another, but I am encountering difficulty with the GET function as it does not allow me to select the entire DB, only individual words or bytes. Any suggestions on how to successfully move the entire database between the PLCs?

Top Replies

Make sure to send the total number of bytes in the database. Set it to non-optimized access as well, in case you were not aware.

Mr. Q inquired about transferring values from one S7-1200 to another by utilizing the GET function. However, there was difficulty in selecting the entire DB, as only word and byte options were available. Any suggestions for resolving this issue? Additionally, I am looking to move the values of two specific tags, DB5.DBD566 (real) and DB1.DBW456 (int). How can I set this in the get block? I attempted P# DB5.DBD566 REAL 1 but the value turned out to be invalid. Any help would be appreciated.

It sounds like you're on the right track, but handling the whole database at once can be tricky due to the nature of the GET function. One helpful strategy could be breaking down the data transfer process into manageable chunks. Rather than attempting to move the entire database in one go, try moving it bit by bit, focusing on bytes or words at a time. This approach might be more gradual, but it definitely offers a higher success rate. Make sure both PLCs are properly synchronized to minimize the risk of data corruption or loss. Good luck and keep us posted on your progress!

You might want to consider using the S7-1200’s built-in web server function for this purpose. By enabling the web server, you can create a data log and write the entire DB to an SD card. Then, simply remove the SD card from the first PLC and insert it into the second one. The second PLC can then read the entire DB from the SD card. While it may not be as straightforward as the GET/PUT function, it could serve as an alternative solution to your issue. Make sure you've enabled the necessary permissions to read/write on the SD card.

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. Question: How can I transfer the entire database between S7-1200 PLCs using PUT/GET function? Answer: To transfer the entire database between S7-1200 PLCs using PUT/GET function, you can create a custom script that reads and writes the data block (DB) in chunks to overcome the limitation of not being able to select the entire DB at once.

FAQ: 2. Question: Why does the GET function in S7-1200 PLCs not allow selecting the entire DB for transfer?

Answer: Answer: The GET function in S7-1200 PLCs does not directly support transferring the entire database in one go, as it is designed to work with individual words or bytes. This limitation requires users to implement a workaround like scripting to move the entire DB.

FAQ: 3. Question: Are there any specific best practices or tips for successfully transferring the entire database between S7-1200 PLCs?

Answer: Answer: When transferring the entire database between S7-1200 PLCs, it is recommended to carefully plan and execute the data transfer process to ensure data integrity. Using scripting, chunking the data, and verifying the transfer can help in successfully moving the entire database between the PLCs.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’