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

Hi everyone, i have a Siemens S7-300 Cpu 314C-2 DP with several cards of i/o and servos my laptop has TIA version 16 and 17 loaded and...
Replies
3
Views
23
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
2
Views
30
Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
26
Views
311
Hi everyone, I am an omron plc tec , lately I came across a siemens s7 200 cn plc . Can someone help me regarding the software required and...
Replies
26
Views
472
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
118
Back
Top Bottom