How implement a timmer???

gutierrj

Member
Join Date
Jun 2005
Posts
12
Hi I'm working with S7-300 with STL, my problem is the next one: I am trying to delay a loop, just I want to spend time maybe 20s, then make a loop. Here is the structure of my program. I hope u can help with this.

Thanks.



Next: T #counter

Open a DB

Read data

Make operations

DELAY

L #counter

LOOP Next
 
Hi,
Try this within your code

 
L S5T#20S // LOAD 20 SEC
SD T1 // SD = ON DELAY TIMER/ T1 JUST FOR EXAMPLE
AN T1 // WHEN 20 SEC HASN'T EXPIRED
JC M001 // JUMP CONDITIONALLY TO LABEL
L #counter
LOOP Next
M001:NOP 0



Regards
 
Last edited:

Similar Topics

Hi I'm working with S7-300 with STL, my problem is the next one: I am trying to delay a loop, just I want to spend time maybe 20s, then make a...
Replies
7
Views
2,800
Let's say I have an inverter fed three phase induction motor drive where in the braking phase (when the motor operates in a generator mode) the...
Replies
2
Views
123
I want to improve a semi custom product I am delivering to a customer with implementation of safety relays. The system is fairly simple with just...
Replies
5
Views
543
I'm struggling to implement the test case which is highlighted. What ends up happening is the servo starts when I turn the cycle on, but it...
Replies
3
Views
1,046
I am trying to implement FIFO for filling tanks in the order it went empty in easysoft or some of you might know it by easydoft 7. I am trying to...
Replies
2
Views
2,297
Back
Top Bottom