Help to translate a bit of S7 STL into LAD

uptown47

Lifetime Supporting Member
Join Date
Feb 2008
Location
Over there, next to those boxes
Posts
1,146
Hi all,
Wondered if someone could help translate the following bit of STL into LAD in S7.
Here is the STL...
Code:
AN M215.2
ON M214.0
A M150.0
O M 4.6
S M141.2
My attempt at translation is:
Code:
 M 215.2                         M141.2
--|/|-----------------------------(S)
                 |
 M214.0  M150.0  | 
--|/|-----| |-----
        |        |
        | M4.6   |    
        |-| |-----
Is this right ?

** EDIT **

I'm also a bit confused by this bit:
Code:
L DBW 382
OPN DB 150
L DBW 24
+I
T MW 34

Am I right in thinking that this is the same as:
Code:
OPN DB 150
L DBW 382
L DBW 24
+I
T MW 34

Or is it:
Code:
L DB(previously opened DB).DBW382
L DB150.DBW24
+I
T MW 34


Many thanks for any help you can give me.
Cheers
;-)
 
Last edited:
Its not right, think about it.

If not m215.2 or not 214.0 and m150.0 or m4.6 then set m141.2.

Then make how you think it is on ladder, and from editor choose show as stl. Then compare to that code.
 
No. Niranjans code is wrong. It can be written like this, then it will translate to LAD

Code:
 A(    
 ON    M    215.2
 ON    M    214.0
 )     
 A     M    150.0
 O     M      4.6
 S     M    141.3
Ill try to illustrate what happens in more detail.
Code:
IF NOT M215.2
OR NOT M214.0
= RLO
IF RLO
AND M150.0
= RLO
IF RLO
OR M 4.6
THEN
SET M141.2
For DB it is this one.

Code:
L DB(previously opened DB).DBW382
L DB150.DBW24
+I
T MW 34
 
Last edited:

Similar Topics

I only have done LAD diagrams so far and now I got a task to convert these 4 LAD diagrams to FBD and STL. Can anyone help me with that? Thanks!
Replies
16
Views
8,322
Hi Everyone, i was hoping for a little help with this module. i have data that needs to be read from a different plc through the Modbus plus...
Replies
7
Views
56
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
9
Views
88
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
318
Back
Top Bottom