Not sure why this is? (Step 7)

uptown47

Lifetime Supporting Member
Join Date
Feb 2008
Location
Over there, next to those boxes
Posts
1,146
I was just messing around with the following code:

Code:
A   I 0.0
AN  T 9
L S5T#5S
SD  T 9
A   T 9
S   M 40.0

Why isn't M 40.0 being 'set' ??

I know that as soon as T 9 comes on, it then turns itself off on its Start Input but I would have thought that the scan would evaluate the rest of the Timer before evaluating the Start Input. Clearly it doesn't but I wondered if there is a reason for this as the scan is operating counter to what I would have expected.

Many thanks for any info on this

;-)
 
I have not used STL but in ladder I would usually check that M40.0 is on before t9 is turned off
even use AN M40.0 instead of t9

See how I went - I have not been taught or read a lot yet
 
Ian,

You're completely right.

I do know how to make the code work but I was more interested in the intracasies of the scan.

I would have assumed that M 40.0 would have Set as the power would have gone through the Timer for one scan (until the next scan then turned the timer off).

This isn't the case. So the timer must be evaluated at the end of the scan to decide it is 'true' (i.e. timed out). Then on the next scan this opens the T 9 contact and prevents the RLO going through the timer to Set the marker.??!? (I'm presuming / guessing...)

???
 
we will both have to wait on Kalle or one of the other guys to correct it then
.
 
As stated by Turpo.....

Don't use the timer itself but assign it to a flag instead.

Code:
      A     I      0.0
      AN    M     40.1
      L     S5T#5S
      SD    T      9
      A     T      9
      =     M     40.1
      A     M     40.1
      S     M     40.0
 
The old S5 timers are prime examples of good employees.
You tell em once what to do and they do it. No need to check back on them. Once it's done they'll inform you right away.
The new IEC timers are kinda like younger employees. You have to tell them what to do each and every time. The moment you stop telling them what to do, they stop working.

[/off topic]

When working with s5 timers, always remember: They don't need to be scanned to be working, which also means they don't update their status at the point where you scan them.
 

Similar Topics

Hi all, I'm currently converting some S5 software to S7. I've got the following code and I'm struggling on converting it to S7. AN T 18 JC...
Replies
8
Views
2,667
Does anyone have experience wiring this type of analog pressure transmitter up? It's 4 wires. 3 blacks and 1 green which I assume is earth...
Replies
9
Views
264
I need an enclosure for wifi access points that will be outdoors. The antennas will mount outside the box but everything else inside. Standard...
Replies
4
Views
156
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
Replies
1
Views
130
I need to protect some pressure transmitters from hot (120°C) oil. Does anyone have a favorite transmitter cooling element/standoff they use...
Replies
4
Views
166
Back
Top Bottom