S7-SCL V11: copy DB1 -> DB2

Join Date
Jul 2013
Location
Here
Posts
31
I want to copy the contents of one DB, let's call it DB1, to DB2, which has the same variables/types in it.

As I have learned, in older versions of S7 SCL there was a function called MOVBLK or similar, which is not available here, as are not ANY pointers in TIA portal V11, at all (just read it on siemens site in black on white).

There is only MOVE_BLK, which can at most copy arrays, not DBs, and MOVE, which would at least be able to copy a whole struct, where I could put my named members into, from one DB to another, is available only to the other languages, not to SCL.

Then there is READ_DBL, which is only for copying between different memory areas, my DBs are both in RAM.

Are there other possibilities? If not a ready-to-use function, can I write one?
I have seen some functions using VARIANT to get passed in DBs, but have not found anything how I could use variant to copy from a source to a destination, byte wise or so.
 

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
81
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
559
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
317
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
512
Back
Top Bottom