Siemens S5

Burton

Member
Join Date
Jan 2008
Location
Georgia
Posts
7
Hello, Can anyone explain the following STL logic I'm an AB guy and just starting to learn this S5. I'm trying to figure out what conditions are needed for F 11.5 to be true/on/hi/=1.
NOP 1
AN F 8.3
AN F 8.2
A F 8.0
NOP 1
S F 11.5
NOP 1
A F 8.3
O F 8.2
ON F 8.0
NOP 1
R F 11.5
NOP
*
Thanks for any help,
 
the AN = AND NOT
A = AND
S = SET, same as OTL

NOP is fillers so the STL can convert to LAD

O = OR
ON = OR NOT

R = RESET or OTU

SO,

AND NOT F8.3 AND NOT F8.2 AND F8.0 , SET F11.5
 
My take on converting it to ladder.

Edit: If RSLogix does not have an equivalent SR block, then you can split into two rungs with a set and reset respectively.

old_s5_code.png
 
Thanks,

I would like to thank everyone that replied to this post I was able to get it up and running thanks to your help.
 
NOP 0 & NOP 1 have no effect on the RLO in S5 & are ignored by the interpreter, there are a number of reasons they have been used, if there is a jump label but no code in the jump then it requires a NOP (this is one of the main reasons for it often used at the end of a segment), often people use them when removing an instruction just change it to a NOP, also it stops it being displayed back into ladder, there are many different things in S5 like getting the brackets correct for AN/OR branches, although often the logic will work as expected, not guaranteed Also many people are unaware that program segments (each ladder) has a *** which means end of segment, also called BLD255, often when programmers code using STL it is not translatable into ladder, this can be circumvented somewhat by adding BLD255 after what should be a ladder segment end providing the last instruction for the ladder is an output as such. S5 contained many rather less documented instructions that most programmers are not aware of like in S5 Datablocks could only be addressed from 0-255, however, you could create a DB length in the 1000's there was a way to address these words above 255 called 20 bit addressing, also, there can only be 255 segments (ladders) in a PB or FB, jumps could not be done from one segment to another unless using relative address jumps (there was a way but not in the S5 IDE).
As an ex Certified Siemens approved system builder I came across many things people did to try & make the code unreadable like using timers T 259 onwards, S5 timers only go from T0-T255, however, timers were 8 bit addressing so using T 259 so it actually used T 4, it ignored the second 8 bits this can only be done by passing the timer number to a function block by an input parameter I believe.
 

Similar Topics

The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
5
Views
59
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
5
Views
116
Hi need help why this “failure 5 emergency stop “ appears at every startup in the morning ? Have to shut off main switch at least 10 times on...
Replies
19
Views
286
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
100
Hi everyone hope you'll well. Is it possible for me to download a Crack version of tia portal v13..sorry to say this but the software is very...
Replies
5
Views
197
Back
Top Bottom