STL to LAD conversion (COMPLEX)

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
We have an issue with the trigger of a scanner (M21.3).
Problem is, I need to convert the code first into a LAD kidna thing because it is too complex to analyse right now.

So far I can see that the first things before the first OR is all manual stuff and that everything behind it is in automatic mode.

But there there are some weird nestings that I cannot convert to LAD at this moment.

This is the code:
Code:
     A     "=2+A2 172S6"
      A     "M       3.6"
      AN    "I210.4"
      AN    "=2+A2 171S15"
      A     "=2+A2 171S11"
      AN    "=2+A2 171S6"
      AN    "=2+A2 171S2"
      AN    "=2+A2 170S15"
      A     "=2+A2 170S11"
      A     "=2+A2 170S6"

      O(    

      A(    

      A(    
      A     "=2+A2 166S6"
      A     "=2+A2 168S2"
      A     "=2+A2 165S6"
      A     "=2+A2 165S11"
      O     "M      21.3"
      )     

      S     "M      21.2"

      A(    
      O     "M      21.4"
      O     "=2+A2 168S6"
      )     

      R     "M      21.2"

      A     "M      21.2"
      )     

      A(    
      A(    
      A(    
      A     "70106 SPEED".run_fwd
      A     "=2+A2 251K11"
      A     "=2+A2 168S11"
      A     "=2+A2 257K7"
      L     S5T#450MS
      SD    "T21"
      NOP   0
      NOP   0
      NOP   0
      A     "T21"
      )     
      =     "M      21.4"

      A     "M      21.4"
      NOT   
      )     
      )     
      AN    "M       3.6"
      AN    "M       6.0"
      )     
      =     "M      21.3"

Anyone with lots of time who sees how this would look like in LAD ?

:rolleyes:


Kind regards,
Combo
 
code

Code:
    a     i    210.6
      a     m      3.6
      an    i    210.4
      an    i    210.3
      a     i    210.1
      an    i    210.2
      an    i    210.0
      an    i    209.7
      a     i    209.5
      a     i    209.6

      o(    

      a(    

      a(    
      a     i    207.6
      a     i    208.4
      a     i    207.2
      a     i    207.1
      o     m     21.3
      )     

      s     m     21.2

      a(    
      o     m     21.4
      o     i    208.6
      )     

      r     m     21.2

      a     m     21.2
      )     

      a(    
      a(    
      a(    
      a     db27.dbx   18.3
      a     q    265.1
      a     i    208.5
      a     q    285.2
      l     s5t#450ms
      sd    t     28
      nop   0
      nop   0
      nop   0
      a     t     28
      )     
      =     m     21.4

      a     m     21.4
      not   
      )     
      )     
      an    m      3.6
      an    m      6.0
      )     
      =     m     21.3
 
That code will not convert automatically to LAD, but it will convert to FBD.
Convert to FBD, and use that to understand what it should look like in LAD.
 
Cut out the timer part that ends with the #M21.4, and place that in its own rung.
Then in the original rung, put the negated M21.4 in the place where the cut-out code used to be.
The code will then convert to LAD, but as two rungs instead of one.
 

Similar Topics

Hello ; Is there anyway to translate BEU instruction to convert to LAD ? In LAD we already have (RET) but this is equal of BEC .. what i can...
Replies
1
Views
2,615
Hi all, I have a bit of a problem. I work, as you can probably guess by my name, as an apprentice at BMW. I'm currently at college and im doing...
Replies
10
Views
3,133
Hi.Can I convert the block written in stl mode below to ladder mode? L #InOctet SLD 3 L #InBit OW T...
Replies
2
Views
563
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,941
Hi, Im about to edit a SCL program from a FB but this error appeared "The Maximum number of lines that can be processed was exceeded". I can't do...
Replies
4
Views
1,989
Back
Top Bottom