S7 Stl Help - Negated Nested Expressions lol

STL???

Member
Join Date
Sep 2005
Location
UK
Posts
879
Hi,
I'm trying to convert a Step7 program to ladder, i keep coming across nested expressions with a negated start.

Berger's paragraph explanation does nothing unfortunately to clear the fog as usual.

I've attached a simple example which i hope someone can help me with which doesn't convert.

Code:
AN(   
      A     #PartsPresent
      A     #LocksOn
      O     
      A     #NoPartsPresent
      A     #LocksOff
      )     
      R     #loadingOk
i interpret this to be
Code:
A(   
      An     #PartsPresent
      An     #LocksOn
      O     
      An     #NoPartsPresent
      An     #LocksOff
      )     
      R     #loadingOk
Is this right? the nesting is redundant i think also.

Thanks as always.
 
No, it would be:

Code:
A( 
ON       #PartsPresent
ON       #LocksOn
)
A( 
ON       #NoPartsPresent 
ON       #LocksOff            
)
R     #loadingOk
But, you can just use:

Code:
--|NOT|--
To negate.

Code:
--||--||----|NOT|--()
         |
         |
--||--||--
 
Last edited:

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
317
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,072
Hello everyone, friends. I asked a similar question before, and you helped, but I'm very weak in STL and I'm having trouble learning it. What I...
Replies
2
Views
741
i hope you could help me to convert the network Stl to lad it's apart from program of machine and i try to find solution for the reason of error...
Replies
10
Views
1,924
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,167
Back
Top Bottom