Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with Time delay in step 7

Status
Not open for further replies.

waqas_here

Junior Member level 2
Joined
Jan 20, 2008
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,463
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.


https://img200.imageshack.us/img200/4866/41679707.th.jpg
 

venix

Member level 4
Joined
Mar 20, 2008
Messages
73
Helped
10
Reputation
20
Reaction score
3
Trophy points
1,288
Location
EU
Activity points
1,702
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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top