## Recommended Posts

Hello,

I have a question about ladder running sequence (what happens first). To be more specific I posted a picture of ladder program. As you can see i have a MB1685 (direct contact and reset coil). I want to know if my program will be able to LOAD LAST DISPLAY (MB1685 needs to stay ON and SB16 is active), before MB1685 will get  RESET (so OFF).  I wonder what will happen first and if this logic will work (so that it will load my last display). Please if you have an answer reply to me, because I can't test it myself on PLC (I don't have one available).

Thank you!

##### Share on other sites

• MVP 2023

In UnitronicsLand, physical placement does not guarantee scan sequence.  It's what the compiler decides to do, which is not always predictable.

Right-click on the left side of the network and select STL Quick View to look at the compiled code sequence.  You should be able to figure it out and this is how the network logic will solve.

Joe T.

• 1
##### Share on other sites

So I am looking at this, but I am not sure what I am looking at, can you explain a bit how I can see from this the sequence of this net.

##### Share on other sites

• MVP 2023

The compiler has broken your logic into five separate statements.  Here are some things to remember when looking at STL lists:

! = Start new logical statement

LB = Local Bit - used as a scratchpad between statements

So it translates to this order-

1.  If MB 0 and not MB 258 and Rising Edge SB 16 then set local LB 0.

2.  MB 1685 state = LB 1  (saves a copy for later)

3.  If LB 0 then Reset MB 1685 and Reset TD 366

4.  If SI 9 NEQ 80 AND LB 0 then store constant 80 into SI 9

5.  If LB 0 and LB 1 then Load Last Display

You'll have to determine if this logic satisfies your requirements as is.   You'll see that the LD Last function has EN and ENO connections - ENO just echoes what EN was.  I would put the Reset coil after the block which will automatically make it solve afterward.  It would be interesting to see what your STL list is if you move that instruction.

Joe T.

• 1
##### Share on other sites

Thank you for explanation. I think my last display will not be loaded with this logic because MB 1685 bill be RESET before  my LD LAST element will be active. Will it help if I put my RESET coil in next net? Because it is important that my LD LAST gets active before MB1685 gets RESET.  Will next ladder logic help? (I need to have a direct contact before LD LAST element).

##### Share on other sites

Or I think this way it might work. I am posting the picture of ladder and ladder quick view. Am I correct?

##### Share on other sites

• MVP 2023

I think that will do nicely.

Joe T.

• 1
##### Share on other sites

thank you for help!

##### Share on other sites

Where in the help file is the explanation for STL. and what its purpose is, and how it works?

I found one entry, that tells how to open STL view.

##### Share on other sites

• MVP 2023
51 minutes ago, ScottF said:

Where in the help file is the explanation for STL. and what its purpose is, and how it works?

I suspect it's not there because it's not a Unitronics thing, it's a PLC thing. You should be able to find many resources online on what STL (Statement List) is, how to read it and how to program with it.

##### Share on other sites

Thanks.

(Statement List) is what I was after.    Hint to Unitronics help file writers.  Please spell out your 3 letter acronyms.

Google     "   STL  View    "  and the top results are for  3d cad viewers...

The issue is not that I am new to PLCs, rather that I am old to PLCs.      TI 530, and a plug in programing keypad.  Later we had a very expensive portable programmer with 160k floppy, and approx. 6" CRT.

##### Share on other sites

• MVP 2023

I did a little digging online on the STL language and it seems to be unique for each PLC.

The Visilogic STL language is not in the Help file.  You can't edit it, so it really doesn't matter.

@ScottF -  I am old to PLCs as well -🙂 AB T40 and Modicon P190 terminals as well as the GE Series 1 handheld.

There's a lot of information in the Visilogic Help but STL is not one of the topics.  I seriously doubt if it ever will be, as the Vision series is a mature product line and they're focusing their efforts on the UniStream series.  Their Help writing department is very small.

It is what it is.

Joe T.

##### Share on other sites

• MVP 2023
2 hours ago, Joe Tauser said:

I did a little digging online on the STL language and it seems to be unique for each PLC.

Yes, but it seems similar enough that a user familiar with STL on another product line should be able to read it, even with a little difficulty, no?

##### Share on other sites

Does Unistream have STL?   Is it documented?

If not, perhaps a separate file/pdf that covers both lines.

##### Share on other sites

• MVP 2023

UniStream can be programmed in ladder or C.  It is not IEC 1131-3 compliant.

Joe T.

## Create an account

Register a new account

×