Dynamic DB Management with STL

erdemsvri

Member
Join Date
Jul 2009
Location
Germany
Posts
172
Hello

I want to write a function that will check for a avaible DB which doesnt exist on CPU and create that DB for example DB12 is avaible with the number of data types written on the input of fc,fb like 256 integer or 512 real when CPU is running.

like input of fb,fc

512 , 1 (1 stands for int for example 2-> real 3 -> dint ...)

output is

a diagnostic which says the function has done its job or not
and the number of the DB that has been created.

like

diagnostics = 0 -> job done
db_no = 12 -> db12 created with 512 integer.

Is this possible?

I have checked sfc22 sfc23 sfc24 (create,delete,test dbs) but I cant find a way to tell the PLC number of the data type and the data type I want to create.

I am new in S7 and STL. I want to learn S7 programing with STL what is the best way for me to learn?

[PS: I dont like reading Siemens manuals :(]
 
Last edited:
Thanks for your answer

Is there a way to check the empty work memory?
While I was writing the code I realised that might be overflow in memory if I dont take control of it.

I mean if something went wrong with the program and PLC tries to create 1 bilion of real number in a DB I should prevent that.

And where can I find the work memory of a S7-300 offline?

Thanks.
 

Similar Topics

Hello, I have a requirement to manage the text alignment dynamically. So, for example: 1. English Texts should be displayed from Left in...
Replies
0
Views
90
Rockwell Tech Support seemed to have hit a wall with this question. Already updated the version to 5.00.13 per their suggestio but am still...
Replies
2
Views
224
Maybe this is just not possible, or maybe I am doing something wrong. Background; I have a data array of over 1500 products. For sorting I...
Replies
6
Views
759
HEllo, still satruggling with the curse WinCC Unified. See attached picture. I just want to change the fill colour from turqoise to grey and then...
Replies
5
Views
471
I need assistance with writing a logic for sending data from a Station PLC using 1 MSG instruction to an AGC PLC in every cycle using a CIP Data...
Replies
2
Views
581
Back
Top Bottom