Siemens STL syntax

Cudos to you LD for doing this.

I took a look at the STL code but was a bit stumped when I saw this:

Code:
      CLR   
      A     L     10.2
      NOT   
      A     L     12.2
      L     #RFID
      L     DW#16#0
      =     L     26.2
      ==D   
      A     L     26.2
      JCN   A7d2

Why
A L 10.2
NOT


instead of
AN L 10.2
?

And why not store the intermediary result in L26.2 immediately instead of waiting to just before the compare ?
I can see that it works the same, but it made it harder to read and I thought maybe there was something I was missing.

STL generated from SCL sure isnt meant to be reverse engineered.
 
L D[AR2, P#0.0].

You are indeed a scholar and a gentleman!

If this were tek-tips I would be throwing stars at you (in a nice way of course)

You probably just saved me about a weeks work. Next time i'm back in the UK, beers are on me.

(y)🍻
 

Similar Topics

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
690
I'm having trouble trying to convert this code to ladder, anyone able to help me? A M4.0 A M4.1 A M117.0 AN M17.7 A ( A I38.6 AN I3.7 O ( A M4.5...
Replies
8
Views
1,211
Hello, I am still new to STL. But from what I understand is the JC mnemonic should jump if RLO = 1. If we review both pictures the M0bf RLO = 1...
Replies
5
Views
1,059
Hello, I am working on a project to upgrade some old S5-100U processors. The programs are all uploaded and I don't have descriptors...ugh. Be that...
Replies
4
Views
1,177
I really struggle with STL in Siemens Step 7 Classic. I'll learn chunks, but then I don't use it enough to retain and build on the knowledge. When...
Replies
17
Views
3,231
Back
Top Bottom