Step 7 STL to LAD??

Make a timer and don't fill in all in- out outputfields, convert to stl and you will see 'NOP 0' (no operation). Delete one or more 'NOP' and try to convert back to LAD. This will not go because Step7 needs this NOP to make the conversion.

Also some instruction are only possible in STL e.g. 'LAR'.

There a more things to watch out for but this takes more then a simple post to cover them all.
 
It doesn't have the required NOP 0's or the required BLD 0, BLD 7, BLD 8 and such to 'create' the LAD blocks.
Also if you do:

A #one
A #two
= #three
A #four
A #five
= #six

That won't convert, but if you split them up into 2 networks, it will.
Also the way brackets are used makes it sometimes impossible to convert, yet if put in correct order (not changing actual working of code ofc) it can convert.
The use of jumps immediatly eliminates the option.
Lots of ways to program in STL, yet only very few can be converted to LAD.

Best thing to learn what is possible is to rewrite your STL blocks in LAD where possible and then convert them to LAD, to see whats missing.
 
Jeebs said:
The use of jumps immediately eliminates the option.

...actually you can jump in ladder using the LABEL instruction

...it's not very elegant though...
 

Similar Topics

Can somebody help me to translate these lines in STL to a LAD i can´t find the real logic, O #F_reset_pulse_raise O...
Replies
9
Views
3,671
I have a hard type grasping branches (I guess they'd be ORs of some sort) in STL. I'm a LAD guy myself. I'd like to display this network in LAD...
Replies
8
Views
5,634
I am trying to convert some block calls from STL to LAD and I need a little help. In the attached file I have network 3 in STL and network 4 in...
Replies
2
Views
4,393
I am doing a program in the LAD format. Then automatically the rungs in the program become in the STL format. I can not convert them back even...
Replies
13
Views
11,120
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
677
Back
Top Bottom