timers only work during first cycle? mitsubishi plc

nilesanderson

Member
Join Date
May 2005
Posts
9
This is my first PLC program for a mitsubishi plc for a liquid filling machine. The program works great the first time through. But then the timers don't work when the program cycles through again. Everthing else works fine for infinate future cylcles. Once I turn the plc off and on again the program works fine for one cycle only. See attached jpg of the ladder diagram. If you need the instructions printout I could attach that also,Timer are in lines 47 and 62.
 
Place a not T0 infront of the timer. The timer is timing out, but nothing resets it. Putting the not T0 will cause the timer to reset itself.


Marc
 
Not

I don't think NOT is a valid command in my Melsec Medoc PROGRAM. Do you think maybe I should use RST instead.

Niles

|--[STL S24]---------------------------[SET Y0]---|
| | |
| |-----[RST T0]-----------{T0 K20}---|
| | |
| |-----[T0]---------------[SET S24]--|


PS. COMPLETE ORIGINAL LADDER DIAGRAM IS AT FOLLOWING SITE http://www.holycrosslinden.com/filler.mht
 
I think the problem is that you get stuck in step S25 since you have no transition to cancel S25. I'm not familiar with STL programming, so you'll have to read up on how to end the sequence properly.

It might be something as simple as adding -----[RST S25] in parallel below your [RST Y0]... :confused:

🍻

-Eric
 
Hi Niles,
From memory the last state of the timer is maintained when the stl step is exited.
So i think you need to reset T0 in stl(24) then Again before the program leaves stl(25).
Does the RET instruction in stl(25) need a -||- from T0 before it?

ian
 
I believe Eric is right your stuck in S25. the way to get out of a "step" in STL programming is to energize another step(Sx) in your program I believe all you have to do is have N.O. T0 set S0, this will get you out of S25 and back up to S0. leave the RET instruction as is.

LD T0
SET S0
RET
END
 
STL is a very nice way of programming. However, there are some major pitfalls to watch out for. One of those is what you have done.

Never use the same timer in different states. Use T1 or any other that is spare in the laste state.

The warning is given in the manual about STL programming.
 

Similar Topics

Hi, I'm quite new to Rockwell PLC and currently trying to implement the following if Sw1 then for i:=1 to 20 by 1 do xEnable := 1...
Replies
4
Views
142
I'm writing some alterations to an FPWin program and need to see the running value of timers so I can set them correctly. It's my first time with...
Replies
0
Views
130
Hi everyone I am using Winproladder software for programming FATEK FBs PLCs and in programming, we often use Timers for activation of the...
Replies
4
Views
561
Hi all, I have what is likely not a complex issue, but I am working in Automation Studio and want an accumulating/retentive timer when a...
Replies
17
Views
1,897
Dear all, I want to use the interrupt service routine in FATEK PLC using WinproLadder Software. I had configured the interrupt in software as...
Replies
17
Views
1,562
Back
Top Bottom