Translate Siemens Step5 program to Step 7

gConejo

Member
Join Date
Mar 2020
Location
Mexico
Posts
3
Hello Everyone! I just became a member of this great site.

I have a PLC program from an S5-100U PLC, and now I want to make a PDF report of all Blocks and Functions of the PLC in LAD lenguage. I found that the proper way was to convert the S5 PLC program to S7 and then translate from STL to LAD. And everything was converted from STL to LAD well so far, but some of STLs were not converted.

For example the next STL could not be converted to LAD, does anyone know what do I have to correct in this code in order to be translatable? đź“š I'm not good at STL language... Any help is appreciated. Thank you!

L #MIN
L #_REAL
>I
JC M001
BEU
M001: L #MIN
T #_REAL
L #MIN
L #_REAL
>I
 
PS: BEU is "block end unconditional"

But if this is the entire block, you don't really need it (if the last 3 lines are pasted in error.

IF you do need the BEU... make a JMP to the end of the function or function block,

I made the opposite of >I which is <=I to jump to a label which is at the end of the block. The MOV _REAL to _REAL is just a "placeholder" logic because the rung can't be empty.

S5_STL_to_S7_LAD_2.PNG
 
Wow..!! Thank you SigmaDelta.

Your last post did work! Now I have my file ready to download. As you said, I repeted the last STL code line. Sorry about that.

Thx again!!
 

Similar Topics

I need to Translate a Siemens S7 project into Delta PLC. I am responsible for Electrical so I will not care about software. Delta does have PLCs...
Replies
0
Views
1,189
Can some one transfer this to ladder logic please L #InR T #PuntoX L #Punto2 L #Punto1 -R T...
Replies
3
Views
1,985
Helo guys, New to siemens and STL . Can some one translate this ladder logic. In simatic manager when I change language it doesnt work. A...
Replies
5
Views
2,276
Hi folks, I'm working on a glass jar packing machine and trying to figure out how this STL code works. Most of the code is in ladder or FBD. But...
Replies
25
Views
9,212
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,337
Back
Top Bottom