Converting Structured List Program to Ladder Logic

xzen

Lifetime Supporting Member
Join Date
Jun 2006
Location
Oslo
Posts
97
Hello,
Calling on all SattCon nerds – or any other helpful souls!
I have to transcribe a program originally written in DOX 10 for SattCon 200-CPU30/20. Can anybody help me draw a ladder rung from this code? What I don't understand is the use of parentheses. How come there are two end parentheses while only one start parenthesis?

Code:
00570  LD   M 01007
00571  AND  (
00572  AND  M 04102
00573  OR   M 00300
00574  OR   M 02057
00575  OR   M 02056
00576  OR   M 01005
00577  ANDN T 84
00578  )
00579  OR   M 02101
00580  AND  M 02066
00581  OR   M 02101
00582  AND  M 04102
00583  OR   M 00300
00584  AND  M 00002
00585  )
00586  AND  M 02074
00587  AND  M 00003
00588  ST   M 01007
 
Yes, this is all the code for one spesific rung or segment starting on address 570.
 
Something like this would be my best guess.

I presume the LD at the start is just loading an address into an accumulator equivalent?

attachment.php


If you can get online with the existing system maybe you can test fire the bits and see if the output comes on as you would expect to test your ladder conversion theories ?

I realise this isn't much help.

Good luck with it. 🍺

MWSnap155 2012-02-29, 14_53_51.jpg
 
the ladder is not complete correct however very fine.
the first LD is not in diagram, so he is missing one contact.
The ( should be in line 1 but may be ommited (was case in KM PS3)
 
Thank you all!
This is my guess:
Xzen, Still the top-left part does not make logical sense. If M01007 is OFF, then the first banch consisting of {OR(M04102 through M01005) AND Not T84} can never go ON, so therefore the first M01007 || bit seems to be almost useless.

It only would make sense if instead the M1007 bit is PARALLED with the 4 other rung branches. Then it could serves as a "seal-in" contact when one of the other branches turns on M01007.
 
Last edited:
Xzen, Still the top-left part does not make logical sense. If M01007 is OFF, then the first banch consisting of {OR(M04102 through M01005) AND Not T84} can never go ON, so therefore the first M01007 || bit seems to be almost useless.

I agree it looks odd, but M01007 would go on if the lower branches (starting with M02101 or M00300) were true, and then 'seal in' if the conditions on the top branch were true. Sort of an upside-down version of a 'traditional' seal in rung, where the seal in contact is below.

🍻

-Eric
 
Hello, to All
I have same situation, how to convert STL to LDR

265: A Q 5
266: AN I 17
267: O T 2
268: A M 6
269: O(
270: A M 4
271: AN M 6
272: )
273: A(
274: A T 1
275: A I 17
276: AN I 16
277: AN I 24
278: AN I 15
279: O(
280: AN I 7

281: A I 22
282: )
283: O(
284: A I 24
285: A I 17
286: )
287: )
288: O(
289: A I 17
290: A I 22
291: AN I 24
292: O(
293: A I 17
294: A I 23
295: A I 22
296: )
297: )
298: AN M 109
299: = Q 5

It is in old AEG A020 plc
Can everybody convert for me....

Regards
 

Similar Topics

Hello there! I have a code that is in ladder logic and would like to see it in structured text. The software in which the code was written in was...
Replies
9
Views
21,924
Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
210
Hello PLCs Forum, I am in a bit of a pickle and was hoping someone could offer me some help. I have a .rss file and just need to see the ladder...
Replies
2
Views
124
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
320
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
391
Back
Top Bottom