Help on looping through DBs. S7-1500

Piroman

Member
Join Date
Apr 2011
Location
Poltava
Posts
6
Hi to all!

I'm in need of some advice or even example of using DB number as argument for loop. Language: SCL. PLC: S7-1200. Soft: TIA V13.

More details on the task:
- I have 3 similar DBs in WORK memory created on base of UDT (that is array)
- I'm planing something near 300 similar DBs located just in LOAD memory (for logging purposes)
- Program logic is simple : writing records to WORK DBs arrays sequentially (DB1..DB2..DB3), when DB3 starts program is copying DB1 to DB1_L (to LOAD memory), when DB1 starts again (writing is cyclical) - DB2 to DB2_L ... and so on.
- Copying to LOAD memory made with WRIT_DBL function.
- When logged data requested, it is copied from LOAD memory to some other buffer DB (not the point) by READ_DBL.

As you can see, there is constant change of Source and Destination DBs in WRIT_DBL/READ_DBL functions. They are taking _variant_ parameters for both input and output. If just someone can tell me how to make _variant_ variable for temporary DB pointing... :rolleyes:... or suggest any other solution. By the way, I'm trying to use "Optimised" DBs.

Thanks in advance!
 

Similar Topics

Hello I am a rather newly hatched PLC programmer who just ran into a problem. Hopefully someone out there can give me a hint on how to move on...
Replies
5
Views
6,854
Hi all, hope you are having a great day, I am in need of your help to create a AOI or program that does this kind of job: I have a IO Link...
Replies
1
Views
74
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
339
Hi Everyone, i was hoping for a little help with this module. i have data that needs to be read from a different plc through the Modbus plus...
Replies
11
Views
220
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
13
Views
225
Back
Top Bottom