Quick STL question...

uptown47

Lifetime Supporting Member
Join Date
Feb 2008
Location
Over there, next to those boxes
Posts
1,146
Hi,

I'm looking through some software and there's quite a few networks that end with // before the coil such as...

 

AN "A 17.1"
AN "TEXT 059"
AN "TEXT 060"
AN "TEXT 061"
AN "TEXT 030"
AN "TEXT 031"
O
AN "A 17.1"
AN "M 160.0"
AN "M 160.1"
A "E 75.5"
A "E 79.2"
// = "A 17.0"




Am I right in assuming that the coil is "commented" out and therefore nothing will happen with this network?

Also, will the state of this network be carried on to the next one via the status word or anything? Can this network (despite the commented out coil) affect the next network?

There's about five networks that all have their coils commented out.. it might be old code that was once used for testing but I want to make sure its not doing anything before I delete them.

Thanks for your advice/help

Cheers

:)
 
Your assumption is correct.

The coil is commented out, not used anymore.
Just ran a test and it seems it won't affect the next networks.
 
If you comment out an = then the preceding logic is simply added on the logic of the next network - with possible unexpected consequences. You should never comment out an = but jump around the section of code instead. Networks are a convenience for display.
 
L D[AR2 said:
If you comment out an = then the preceding logic is simply added on the logic of the next network - with possible unexpected consequences. You should never comment out an = but jump around the section of code instead. Networks are a convenience for display.

Simon is right (of course)...if you'd like to understand how this works in a bit more detail search for 'first check' or /FC in the S7 help






2^9
 
Thanks folks.

Simon, I thought as much. I hasten to add that this isn't code I've written.. simply some code that I have to work on. I did wonder about the status word but your comment about networks being solely for our convenience is very eloquently put.

Many thanks for everyones help.

:)
 

Similar Topics

Hey again everyone, Having some trouble this morning figuring out some STL. My STL is very weak and I know a lot of you on here are very good...
Replies
7
Views
2,685
Hi all, Just wondered if someone could confirm whether these 2 networks equate to the same code or not. I'm converting from STL to LAD and want...
Replies
0
Views
1,403
Hi all, I'm trying to convert some S5 STL to S7 LAD and I just need to know if I'm interpreting the following STL correctly: Original STL L...
Replies
2
Views
3,517
My minds gone blank and I need a quick question answering. I'm looking at some S5 code offline and haven't got a PLC to test this so thought I'd...
Replies
2
Views
3,817
I'm trying to import a .prj file and I keep getting the error message: Project import error. i Any ideas how to get around this? Thanks.
Replies
0
Views
67
Back
Top Bottom