Jump to content

Recommended Posts

Posted (edited)

I'm trying to recreate this program drop down list that has structure text programs in it, but I can't figure out how to add ST programs. I'm only getting an option to add a Section of ladder. Sysmac Studio

image.png.7d329c827a955ef64bd653017c40c9fd.png image.thumb.png.cc36a2ac82df16571f4f0f3746475f48.png

Edited by Fable

Posted

You need to add a new program.  A program of ladder can only contain sections of ladder.  A separate program can contain ST code.  Right click on the programs folder and add a new program.

  • Like 1
Posted

If you only want a small section of ST, you could right click a line in ladder and choose 'Insert Inline ST'. Otherwise, you'll need to do as Crossbow suggests.

I prefer to program in ladder but I like to use ST for large array calculations and FOR / END_FOR loops.

Posted (edited)
18 hours ago, Crossbow said:

You need to add a new program.  A program of ladder can only contain sections of ladder.  A separate program can contain ST code.  Right click on the programs folder and add a new program.

I have added two ST programs, how do I put them under one drop down. I'm trying to get to this type of setup. (Programming in only ST)

image.png.b3aeeadd0dd24f6ba13d2910981ec91e.png        image.png.b53a1480c66ab6700762206e842483b0.png

Edited by Fable
Posted (edited)

I don't think you can do that for ST programs. Ladder programs allow you to RMB and "Add Section", but ST programs don't appear to have this option.

 

Alternatively, use Ladder programs and use inline ST in the ladder. Then you could add sections accordingly, similar to your screenshot. Although I will admit it is probably a bit more "clunky" as the windows don't auto-resize etc.

Edited by BE

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...