Help with STL

ArikBY

Member
Join Date
Oct 2003
Location
Oranit Israel
Posts
1,434
Can someone help me with this.
I would like to see how it look with LAD.

TIA

O M 10.0
O M 10.1
O M 10.2
O M 10.3
O M 10.4
A M 1.6
S M 1.4
A M 1.4
A M 2.3
= Q 0.0
O M 6.0
O M 6.7
O I 0.4
R M 1.4
 
Put it like this:

Code:
O     M     10.0
      O     M     10.1
      O     M     10.2
      O     M     10.3
      O     M     10.4
      A     M      1.6
      S     M      1.4

//New Network

      A     M      1.4
      A     M      2.3
      =     Q      0.0

//New Network

      O     M      6.0
      O     M      6.7
      O     I      0.4
      R     M      1.4

It should convert after that.
 
This code can be done in one S/R network, and I think that's what the intent was at some point:

Code:
       A(    
      A(    
      O     M     10.0
      O     M     10.1
      O     M     10.2
      O     M     10.3
      O     M     10.4
      O     M      1.6
      )     
      S     M      1.4
      A(    
      O     M      6.0
      O     M      6.7
      O     I      0.4
      )     
      R     M      1.4
      A     M      1.4
      )     
      A     M      1.4
      =     Q      0.0


The result will be in one network. But, if the original programmer thought that the first AND instruction (A M1.6) is anded with the five ORs before it (it isn't although it looks like it is), then the code would look like this:

Code:
     A(    
      A(    
      O     M     10.0
      O     M     10.1
      O     M     10.2
      O     M     10.3
      O     M     10.4
      )     
      A     M      1.6
      S     M      1.4
      A(    
      O     M      6.0
      O     M      6.7
      O     I      0.4
      )     
      R     M      1.4
      A     M      1.4
      )     
      A     M      1.4
      =     Q      0.0
 

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,071
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