electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Problem with Time delay in step 7


Post new topic  Reply to topic    EDAboard.com Forum Index -> Robotics and Automatics Forum -> Problem with Time delay in step 7
Author Message
waqas_here



Joined: 20 Jan 2008
Posts: 24


Post09 Aug 2009 17:41   

step 7 timer


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.


http://img200.imageshack.us/img200/4866/41679707.th.jpg
Back to top
Google
AdSense
Google Adsense




Post09 Aug 2009 17:41   

Ads




Back to top
venix



Joined: 20 Mar 2008
Posts: 86
Helped: 9


Post10 Aug 2009 6:42   

delay step7


Hello!

When you declare the variables in your datablock you must declare them as s5time.The initial value is expressed like this S5T#xMS (x integer in miliseconds,).

Ex: S5T#500MS (500 miliseconds)
S5T#5S (5 seconds)

A S5TIME variable occupies a word.So when you want to call the variable from datablock you have : DBx.DBWy

x=no of DB
y=no of Datablock Word

Ex: DB2.DBW4 declared as S5Time

Best regards!
Venix
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Robotics and Automatics Forum -> Problem with Time delay in step 7
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
PIC Programming . Problem Reg- Time Delay (1)
time delay with op-amp (4)
Trigger mechanisim with time delay?? (10)
Problem with delay routine (1)
Problem: Simple Square wave Generator with delay (11)
some problem about input delay and output delay (5)
Problem with negative hold time (2)
Problem with Oscillator rise Time (1)
A Problem in Simulink with sample time (10)
Time accuracy problem with DS 1307. (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS