help converting SIemensS7-300 from STL to LADD

vpmsarvananr

Member
Join Date
Sep 2011
Location
singapore
Posts
22
Hi friends,
Help me to convert from STL to LADD below the statement,

O "M 1226.5" M226.5 -- step 5 length of hood
O "M 1226.6" M226.6 -- step 6 film separators up
O "M 1226.7" M226.7 -- step 7 sealing - cutting
O "M 1227.0" M227.0 -- step 8 pressure arms forward
O "M 1227.1" M227.1 -- step 9 hood over stack
O "M 1227.2" M227.2 -- step 10 start burner
A "M92.7" M92.7 -- double hood
AN M 128.5
AN "M 128.6" M128.6 -- speed change to slow down
JC M007
JU M008
M007: = "M 130.0" M130.0 -- lift speed n11
= "M 130.1" M130.1 -- lift speed n12
= "M 130.2" M130.2 -- lift parameter commutitation
BEU
M008: NOP 0



In future how to convert similar statement,
Got one option there, but some network unable to convert,
On the particular network how will change to LADD,


Thankyou in advance!
Saravanan
 
If there are NO other jumps to label M007 (that is, M007 is used only twice in the whole block), then this code is equivalent to yours and Step7 can convert it to LAD:
Code:
//Network1
      A(    
      O     M    226.5
      O     M    226.6
      O     M    226.7
      O     M    227.0
      O     M    227.1
      O     M    227.2
      )     
      A     M     92.7
      AN    M    128.5
      AN    M    128.6
      S     M    130.0
      S     M    130.1
      S     M    130.2
If the network you posted is NOT the last one in the block, you will also need to:
1) define a new Temp variable (Bool datatype)
2) add this line to the end of network I posted (Network1)
Code:
      =     #YourTempVariable
3) add this network immediately after the network I posted
Code:
//Network2
      A     #YourTempVariable
      SAVE  
      BEC

If there are two or more jumps to M007 then it may not be so easy to convert to LAD!

In future how to convert similar statement
If Step7 can't convert the code for you automatically then the most reasonable choise is to learn STL ;)
 
convert STL to LADD,

Hi frd,
Thank you for your reply,
Please refer below my program details,
i need to control the speed of outerhood film,(example network-5)
please advise me some more details for speed control and convert the ladd program,
and how to change,

Thankyou in advance!
Saravanan


FC27 - <offline>
"speed shrink frame" speed shrink frame:

Network: 1 initialisieren
&
M0.6
FALSE
"M 0.6"
=
M130.0
lift
speed n11
"M 130.0"
=
M130.1
lift
speed n12
"M 130.1"
=
M130.2
lift
parameter
commutitat
ion
"M 130.2"
--------
Network: 2 (N = 0,53m/s bis Ablage Schrumpfrahmen)
O "M 1226.5" M226.5 -- step 5 length of hood
O "M 1226.6" M226.6 -- step 6 film separators up
O "M 1226.7" M226.7 -- step 7 sealing - cutting
O "M 1227.0" M227.0 -- step 8 pressure arms forward
O "M 1227.1" M227.1 -- step 9 hood over stack
O "M 1227.2" M227.2 -- step 10 start burner
AN "M 128.0" M128.0 -- lift pos.place shrink frame
AN "M 128.1" M128.1 -- lift pos.speed up after place shrink fra
AN "M92.7" M92.7 -- double hood
JC M001
JU M002
M001: = "M 130.0" M130.0 -- lift speed n11
= "M 130.1" M130.1 -- lift speed n12
= "M 130.2" M130.2 -- lift parameter commutitation
BEU
M002: NOP 0
------------
Network: 3 (N = ca.0.03m/s Ablage Schrumpfrahmen)
A "M 1227.2" M227.2 -- step 10 start burner
A "M 128.0" M128.0 -- lift pos.place shrink frame
AN "M 128.1" M128.1 -- lift pos.speed up after place shrink fra
AN "M92.7" M92.7 -- double hood
O "M 170.4" M170.4 -- start maintenance mode
JC M003
JU M004
M003: = "M 130.0" M130.0 -- lift speed n11
BEU
M004: NOP 0
----------
Network: 4 (N = 0.53m/s nach Ablage Schrumpfrahmen)
A "M 1227.2" M227.2 -- step 10 start burner
A "M 128.0" M128.0 -- lift pos.place shrink frame
A "M 128.1" M128.1 -- lift pos.speed up after place shrink fra
AN "M92.7" M92.7 -- double hood
JC M005
JU M006
M005: = "M 130.0" M130.0 -- lift speed n11
BEU
M006: NOP 0
-----------
Network: 5 (N = 0,53m/s Spreizfinger Rahmen senken Folie 2 (schwarze Folie))
O "M 1226.5" M226.5 -- step 5 length of hood
O "M 1226.6" M226.6 -- step 6 film separators up
O "M 1226.7" M226.7 -- step 7 sealing - cutting
O "M 1227.0" M227.0 -- step 8 pressure arms forward
O "M 1227.1" M227.1 -- step 9 hood over stack
O "M 1227.2" M227.2 -- step 10 start burner
A "M92.7" M92.7 -- double hood
AN M 128.5
AN "M 128.6" M128.6 -- speed change to slow down
JC M007
JU M008
M007: = "M 130.0" M130.0 -- lift speed n11
= "M 130.1" M130.1 -- lift speed n12
= "M 130.2" M130.2 -- lift parameter commutitation
BEU
M008: NOP 0
-----------
Network: 6 (N = 0,53m/s bis take up Shrinkframe)
A "M 1227.5" M227.5 -- step 13 shrink frame up
AN "M 128.2" M128.2 -- lift pos.take up shrink frame
AN "M 128.3" M128.3 -- lift pos.speed up after take up shrinkf
AN "M 126.4" M126.4 -- lift pos.1 change speed
AN "M 126.5" M126.5 -- lift pos.2 change speed
AN "M 126.6" M126.6 -- lift pos.3 change speed
AN "M 126.7" M126.7 -- lift pos.4 change speed
JC M009
JU M010
M009: = "M 130.0" M130.0 -- lift speed n11
BEU
M010: NOP 0
-------------
Network: 7 (N = ca.0.03m/s take up Schrumpfrahmen)
A "M 1227.5" M227.5 -- step 13 shrink frame up
A "M 128.2" M128.2 -- lift pos.take up shrink frame
AN "M 128.3" M128.3 -- lift pos.speed up after take up shrinkf
AN "M 126.4" M126.4 -- lift pos.1 change speed
AN "M 126.5" M126.5 -- lift pos.2 change speed
AN "M 126.6" M126.6 -- lift pos.3 change speed
AN "M 126.7" M126.7 -- lift pos.4 change speed
JC M011
JU M012
M011: = "M 130.0" M130.0 -- lift speed n11
BEU
M012: NOP 0
 
It doesn't convert directly to ladder because it was written in STL. Why not try and learn to understand it in STL? You have a series of logic statements (A, O, AN, ON) which each, in turn, contribute to the RLO (Result of Logic Operation) followed by some conditional jumps. If you highlight an instruction and press F1 you will get a description of that instruction from the help system. In status mode you will see the status of each line in the STA column followed by the RLO in the RLO column; in this way you can see what is going on as each instruction is processed.

Nick
 

Similar Topics

Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
314
Hi! I am working on a project were we will be replacing an 300 CPU with a 1500 CPU and we are working on migrating / converting code. There is a...
Replies
9
Views
1,064
Hi! I need help converting an old MicroLogix 1100 project to Micro 820. Project Details I have an old MicroLogix 1100 program that has been in...
Replies
0
Views
467
Hope someone is really bored this late on Memorial day!!! I have spent the last 5 hours researching this and trying everything I could find on...
Replies
9
Views
3,261
I am needing to convert the low DWORD of a timestamp into a LREAL. The DWORD is a 32bit unsigned number. In TwinCat2, I keep getting a negative...
Replies
3
Views
1,676
Back
Top Bottom