[?]: ON delay Timer from a DB variable

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
waqas_here
Posts: 9
Joined: Wed Jul 29, 2009 5:23 pm
Location: Karachi

[?]: ON delay Timer from a DB variable

Post by waqas_here »

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.


Image
Schtiel
Site Admin
Posts: 1122
Joined: Wed Sep 06, 2006 12:03 pm
Location: CIS

Re: [?]: ON delay Timer from a DB variable

Post by Schtiel »

waqas_here wrote:timer doesn't take time from DB.
May be you should initialize your DB?
See viewtopic.php?p=18333#18333
Umencho
Posts: 508
Joined: Mon Jul 16, 2007 12:28 pm
Location: Europe

Post by Umencho »

Hello,

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...

Regards
waqas_here
Posts: 9
Joined: Wed Jul 29, 2009 5:23 pm
Location: Karachi

Post by waqas_here »

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.
cvlsam
Posts: 48
Joined: Mon May 29, 2006 8:22 am
Location: China

Post by cvlsam »

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.
Image

2.LAD in your timer settings in the quoted variable DB you created.
Image

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.

Good Luck~