About the Structured Text Editor routine window

When you open a structured text routine, it is displayed within the
Structured Text Editor
routine window. This window appears within the main
Logix Designer
application screen. It contains tabs for all open routines, a view for each routine, and the structured text editor toolbar to help you work with each routine.
The following table describes the routine window components.
Component
Description
Structured Text Editor title bar
The title bar of the Structured Text Editor routine window displays the scope of the routine, followed by the routine name. If the routine is a controller-scoped routine, the word Controller appears; otherwise the name of the program to which the routine is scoped appears.
Depending on the state of the routine, an additional character may appear in its title. For instance, a * indicates that the routine has been modified (that is, it is "dirty").
Data Context (for Add-On Instruction routines only)
This control is only displayed when an Add-On Instruction routine is displayed in the editor. Use this control to select a specific instance of the Add-On Instruction to use for animating values. If you set the selector to <definition>, the logic can be edited. If you select any other context, the editor is in read-only mode (however, values can still be edited).
Structured Text Editor toolbar
The structured text editor toolbar lets you quickly use Structured Text Editor functions like indent and comment.
Left margin
The left margin of the structured text editor routine window consists of a narrow gray area that you can use for selecting entire lines of your program. This area is used to show execution of your routine when online (in powerflow color). This area of the window is not used for editing.
Text editing window
The text editing window makes up the primary portion of the structured text routine window. In this area, you add all of the text and make any edits to your routine. The maximum width of this window is 2048 characters. The maximum length is 2,000,000 lines, or available memory.
As you enter instructions into the text window and pass your mouse over them individually, a tooltip displays for the selected instruction, indicating the expected parameters.
Routine tabs
The routine window contains a tab representing each open routine. Each tab is labeled with the name of the routine with which it is associated. If there are a large number of routines open, the names are shortened. Position your mouse over a tab to see a tooltip with the full name of the routine.
To cycle through the tabs, press
Ctrl + Page Up
;
Ctrl + Page Down
lets you cycle through the tabs in the reverse direction.
Right-click on a tab to display a context-sensitive popup menu that lists operations you can perform on the specified routine.
Routine splitter
The routine window contains a routine splitter which lets you split the routine window into two parts of equal or varying size. This is useful if you want to copy and paste something from one part of the routine into another part of the routine without having to do a lot of scrolling.
Routine scroll bars
The routine window contains scroll bars that let you scroll the routine view’s pane up, down, left, or right. You can scroll this view by using the arrow keys, the
Page Up
/
Page Down
keys, or the mouse. In addition, the
Logix Designer
application supports the use of the Microsoft Intelli-Mouse. By rotating the mouse wheel, the routine window scrolls up or down. If you hold down the
Shift
key and rotate the mouse wheel, the window scrolls left or right.
Status bar
The status bar panes of the
Logix Designer
application window display specific information while the structured text editor is open. This includes an indicator for when the
Overtype (OVR)
key is pressed, alerting you that any keystroke you make will overwrite the existing characters. In addition, the status bar provides the current line and column position of the caret inside the text window.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal