Siemens STL

cornbread

Lifetime Supporting Member
Join Date
Feb 2007
Location
madison, indiana
Posts
407
As I’m new to Siemens S7-300 programming I’m having difficulty understanding this valve fault handing routine. My problem is we cannot reset the valve faults.
I have FC7 network 9, see attached. When I look at the STL I see where we call FC42 also attached. When I look at that STL on FC42, I’m really getting confused. Being an old AB guy, if someone could explain what going on here it would be greatly appreciated.
 
Im not 100% sure but the memory bits m103.5 to m104.6 are setting the alarms for the valves. This FC looks like its writing the state of the valves / pumps to the HMI.

PS. Im new to this so take what I say with a pinch of salt

Just realised there is two FC's in this PDF. You need to see whats setting the above memory bits. As this in turn trigger the alarm. You probably find the the memory bits will have a set bit or a latch of some sort..
 
Last edited:
In FC 42 the CLR is just setting the RLO to 0 so the local varibles

l 0.0
l 0.1
l 0.2

are all set to 0.

The next bit is just saying if #zu is false jump to location m001 if its true then set RLO to 1 make L 0.0 (Feedback signal) true
 
Same with the #auf if its false jump to moo2 if #auf true then load 1 making RLO 1 assigning it to L0.1

Under M002

if either;
#fehler_auf (valve not opened) or
#fehler_zu (valve not closed)

assign L0.2 with a 1

network 2 then just transfers data to and from a location
 
Ive just noticed in NW 3 of FC7, the code transfer the fault word 1 from MW104 to the HMI. I would try to see what writes to that MW104 as this is what is setting your alarms...

Good luck
 
We think we have narrowed to down to the HMI. Forgive my use of the term alarm banner, but it apprears on the Siemens HMI that we do not have an ACK button, we have reset button set up to clear the faults in the PLC. I think we have a running tab of faults.
 

Similar Topics

Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
678
I'm having trouble trying to convert this code to ladder, anyone able to help me? A M4.0 A M4.1 A M117.0 AN M17.7 A ( A I38.6 AN I3.7 O ( A M4.5...
Replies
8
Views
1,208
Hello, I am still new to STL. But from what I understand is the JC mnemonic should jump if RLO = 1. If we review both pictures the M0bf RLO = 1...
Replies
5
Views
1,055
Hello, I am working on a project to upgrade some old S5-100U processors. The programs are all uploaded and I don't have descriptors...ugh. Be that...
Replies
4
Views
1,170
I really struggle with STL in Siemens Step 7 Classic. I'll learn chunks, but then I don't use it enough to retain and build on the knowledge. When...
Replies
17
Views
3,219
Back
Top Bottom