Siemens STL help needed

mike_l

Member
Join Date
Aug 2015
Location
OC, CA
Posts
2
Hi All,
I am a ladder programmer but I have to reverse engineer some STL code. I can't figure out this part. Can anyone help me translate this? Thanks..

L "GEN CTRL CMDS".DIS_MODE_DISSOLV DB504.DBW46
L 8
==I
= L 26.0
A L 26.0
BLD 102
L "DENSTY_TO" MW18
SD "DIS_DNS_TO" T14
A L 26.0
A "DIS_DNS_TO" T14
= L 26.1
A L 26.1
A(
L "P2H AI".AI_F0010 DB202.DBD392
L "PROCESS_SP".SP2478 DB505.DBD712
>R
)
S "ALARMS COMMON".Common_Alarm4_6 DB53.DBX4.6
A L 26.1
A(
L "P2H AI".AI_F0010 DB202.DBD392
L "PROCESS_SP".SP2477 DB505.DBD708
<R
)
S "ALARMS COMMON".Common_Alarm4_5 DB53.DBX4.5

Specifically I do not understand the [= L 26.0, A L 26.0] lines.
I need to convert this to ladder. Thanks for any help.
Mike
 
The code is translatable to ladder. You probably have the wrong type (HEX instead of INT or similar) on one or more addresses. You could try to disable the type check and switch from STL/LAD this is however a good check to have if you are a beginner.

Untitled.jpg
 
The L bits are bits in the tempstack added by the compiler when you program in lad or fbd so this network is most likely created in lad or fbd originally
 
The code is translatable to ladder. You probably have the wrong type (HEX instead of INT or similar) on one or more addresses. You could try to disable the type check and switch from STL/LAD this is however a good check to have if you are a beginner.

View attachment 37918

That did it! Thank you so much!
I was wondering why half the code was ladder and half STL!

Mike
 
The real fix is to set the symbol types correctly.

"GEN CTRL CMDS".DIS_MODE_DISSOLV (DB504.DBW46)
should be an INT.

"GEN CTRL CMDS".DIS_MODE_DISSOLV (DB504.DBW46),
"PROCESS_SP".SP2478 (DB505.DBD712) and
"PROCESS_SP".SP2477 (DB505.DBD708)
should be REALs.
 

Similar Topics

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,185
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,244
I need some assistance to any Siemens Gurus' who can help me convert the following from STL to Lad. I have tried all the old tricks I can...
Replies
4
Views
4,319
Hello all. I am a newbie when it comes to Siemens and I have looked in the STL programming help but there are some things that isn't explained...
Replies
11
Views
3,040
Hi, I have been given the task of implementing some limited changes to an existing Siemens S7-300 application. The program was created around...
Replies
16
Views
19,248
Back
Top Bottom