I have several ON delay timers. Every time i have to change the delay time i have to search for each timer and change their time.
All of them have same delay time.
I want to call the delay time from a db variable so that i only have to change the time in db. How to do it? I have tried it but timer doesn't take time from DB.
Basically you wouldn't have any problem. Insted of using s5# you can use any word formats (MW or DB .DBW ). By default the DB it is taking 0 ms. You have to set that time you required. And download DB to CPU... Can you give more details about what did you did...
Further my program was to connect the db with wincc so that operator can give input the time value. But here i have to initialize the db values. How can i do it.
waqas_here wrote:Further my program was to connect the db with wincc so that operator can give input the time value. But here i have to initialize the db values. How can i do it.
1.First of all, you need to create a variable DB, and the type of the variable is defined as S5time.
2.LAD in your timer settings in the quoted variable DB you created.
3.If you want to use Wincc,Then you need to Wincc Manager in the establishment of variable variables and variable conversion format is set to SimaticS5time format, or in the library Step7 the use of S5time conversion FC will be converted to DINT, if the latter, please carefully, Wincc time in milliseconds for input.