Siemens Statement list to Ladder utility

ranjana

Guest
R
Is there any utility that converts Siemens Step 5 Statement list program to Ladder logic.

I am new to Statement list and also siemens PLC. I find it realy hard to understand a program which came on our signode strapping machine.

We have two strapper each with S5 PLC and all logic are in statement list. Our strapper A is not functioning and it is realy hard to troubleshoot with this statement list.

I am only familiar with Allen bradley Ladder logic.

So i thought of converting siemens statement list to a ladder logic and then i could understand the program.

Many thanks
 
Hi Ranjana,

There should be an f key you can press that converts the stmt list to fbd which is easier to work,on the other hand i have worked with signode strapping machines and have some code in AB which if you told me what was wrong i may be able to help.
 
Start The S5 software and in ver 7.?? pres SHIFT F5 to change from STL-->CSF-->LAD#

ie: Every press of "SHIFT F5" will change the display format of the program.

Please note that not all commands in STL can be converted into LAD or CSF.

If you send me a copy of the program I will try and convert it for you!!
 
Thanks Garryt1 and Moggie,

we two S5-115U 942B CPU.
We have only S5 software loaded on PG170 programmer.

i can send the program to you or is it possible to post the program here. i donot know how to post the program here. If not i can send the program to you.

we have one Function block (FB190) which we donot understand.

i am just writing the contents of FB190 and i will post it in my next post.

my email address: [email protected]

Many thanks
 
Dear Garryt1 & Moggie,
Below is the Function block no. 190 which i donot understand even a single line. can you just tell me what that means. other wise i can send you the program.

o.k our programmer is PG720. sorry for the previous post.

FB 190 :

SEGMENT 3 0040 stop working on this head?

0040 :L =PM>2 GET PARAMETER 2
0041 :L KM 00000001 00000000 GET BIT 0 (HEAD SELECT)
0043 :AW IS IT “0” ?
0044 :JN =M001 HEAD IS SELECTED, GO ON
0045 :L DW 65 GET HEAD STATUS-FLAGS (FW172)
0046 :L KM 10001000 1000000 F172.3 , F172.7 , F173.7 SET?
0048 :AW SELECT SPEC. BITS
0049 :L KM 10001000 1000000 TEST IF “1”
004B :!=F NOT ACTIVE ?
004C :JC =M002 STOP WORKING
004D :L DW 62 GET FLAG FW166
004E :L KM 00000000 10000000 GET F167.7 (BUSY-FLAG)
0050 :AW IS IT “0”
0051 :JN =M001 - > GO ON , HEAD IS STILL “BUSY”
0052 :L DW 65 GET FW172
0053 :L KM 00000000 10000000 GET F173.7 (RESET-FLAG)
0055 :AW IS IT “0” (STILL ACTIVE)
0056 :JZ =M001 - > DO ONE CYCLE MORE
0057 :SU D 65.15 LAST CYCLE, SET F172.7
0059 :JU =M001 - > DO LAST CYCLE
005A M002 :L KH 0000 END IT! (HEAD IS OFF)
005C :T =PM<5 - > DONOT SEND ORDERS TO MACHINE
005D :T =PM<7 DONOT SEND FAULTS TO MACHINCE
005E :L DW 62 - > GET SIGNALS
005F :T =PM<6 SEND IT TO MACHINE
0060 :BEU - > END
0061 M001 :***


Like this we have many segments. if you can helpus in understanding one segment then i will try my best to understand other segments in FB190.

Many Thanks
 
Ranjana

What you have posted here also includes the anotation of what each line does, perhaps you can work out what the program is trying to do from that.
Are you confused with the terms that siemens use?

L stands for load
KM is a byte in bit pattern form
AW i believe is 'and word', where two words are 'anded' together
!=F is just a compare of two words
JN, JZ and JC are jump commands, I am familiar with JC (jump conditional) and JU (jump unconditional) but I have never seen JZ and JN, maybe someone else would like to enlighten me on this
DW is a specific dataword from a data block called earlier within this function block
=M001 and =M002 refer to set points within the function block, a bit like a sub routine
SU - I am not sure what this is, i would think that it means Set Unconditional, as it is used in your FB to set D65.15 (data word 65 bit 15), which looks like that will be F173.7 in your FB

I hope this helps you out a bit, it might have been a bit easier if I had the original program and read it from a S5 plc.

One other thing the PM>2, PM<5 are nicknames assigned to specific bits/bytes by the original programmer.

Paul
 
JZ is jump if result is zero.
JN is jump if result is not zero.
You're right SU is unconditional set.
Whenever an address is preceded by '=' in S5 it is a formal parameter inside a function block. You need to check the call to the FB to see what parameter has been passed to it.

Rob
 
I haven't worked with Seimens for awhile but if I remember correctly the bit pattern in a dataword goes from right to left and 0 to 15 so the leftmost bit will be 15 and the rightmost bit will be 0. You should be able to get a programming manual that will list all the commands. Also if you were so inclined you can buy the S5 software and put it on a laptop, much easier to cart around...
 
Ranjana,

Visit the Siemens site at www4.ad.siemens.de and enter the number 1085938 in the search area. This will allow you to download a reference manual that briefly explains all the operations that pertain to the CPU 942.

Regards,

Dave
 
Many thanks for all your help.

O.K I will tell you the reason. We have some solenoids all operated from 32 bit 24VDC output module. Addressed Q16.

Now this entire Q16 output is switched on from Function block (FB 190). So we wanted to know the conditions for switching on or off a solenoid valve and to our surprice QW16 appread only in a lengthy FB190.

O.k i will download the manual and will let you know once we sort out our problem.

Many thanks again for your help.
 

Similar Topics

Kindly assist with the meaning of the following functions calls: CALL FC 122 IN0 :=P#DB121.DBX 336.0 IN30 :=DB121 IN31...
Replies
9
Views
3,281
I am interpreting STL for the first time for a Siemens S5 PLC. In the STL, I often see !=F in the code. What is this? Thanks.
Replies
4
Views
8,157
Hello Everyone, I am not proficient with STL so I wanted to get another opinion on this big of logic. A( L #MaxPos...
Replies
11
Views
4,297
Hello all, I am Confusing with below equation. i express with blue color .Please kindly explain me below FOR ..., Where can i find good SCL...
Replies
7
Views
2,552
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
20
Views
221
Back
Top Bottom