comment multiple lines in STEP7 STL

Supreame

Member
Join Date
Jul 2008
Location
Brasov
Posts
33
Hello,

How could multiple lines of STL code be commented at once in STL?

PS: This question goes beyond putting manually the // in front of each line of code...
 
Last edited:
Example: if you have the following code

<code>
SLD 3 //Convert to pointer format
+D
T LD [AR1,P#6.0]

LAR1 #T_AR1
</code>

How can all those lines be commented at once?

The result should be:
<code>
// SLD 3 //Convert to pointer format
// +D
// T LD [AR1,P#6.0]

// LAR1 #T_AR1

</code>

I can achieve this only by putting // in front of each line, so in these case for 4 times. If I want to comment 100 lines this means 100 x // !!!
 
Supreame said:
Ok, I knew this :) but the code sequence is lost.
So there is no possibility for multiple line comment in STL?

No don't believe so.

If your just trying to disable code, you could jump over sections.
 
PeterW said:
No don't believe so.

If your just trying to disable code, you could jump over sections.
I agree with Peter here, I don't think there is a way to comment multiple lines in one go.

//**********************************************************
//
//I also use the system of jumping over code I temporarily
//don't want to use and make sure it's well highlighted and
//commented - at the other end where I jump to, as well.
//
JU Link
//
//**********************************************************
 

Similar Topics

commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
127
I am passing DINTs between a Micro800 and CompactLogix - each bit in the DINT has its own unique meaning. On the Studio5000 side I can just write...
Replies
3
Views
1,099
We have several PLC programs that came from Japanese built equipment. When i open these programs in CX-Programmer, most of the comments appear as...
Replies
12
Views
3,173
Direct quoting from: https://www.plcacademy.com/structured-text-tutorial/ "As you gradually get better and better, you should make fewer and...
Replies
54
Views
18,036
Hi to everybody. I need to remove memories and rungs comment from a SLC500 program because was used as a base program a wrong file project and...
Replies
8
Views
2,397
Back
Top Bottom