12.07.2015 Views

GX Works 2 Operating Manual Structured Project - Automation ...

GX Works 2 Operating Manual Structured Project - Automation ...

GX Works 2 Operating Manual Structured Project - Automation ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.1 ST Editor7.1.1 Writing ST programs1Write a ST program.For functions/instructions used for ST program, refer to the structured programming manuals.<strong>Operating</strong> procedure• Write a program in the text format using a keyboard.The colors of defined labels, devices, syntaxes, operators,constants, string constants, and comments change when they areentered.Syntaxes entered in lower-case characters are automaticallychanged to upper-case characters.2OVERVIEWSCREEN 3CONFIGURATION● Options of labels displayed while typing a labelLabels match to the entered characters are displayed while typing a label. If only one option is available, it isentered automatically.Global labels and local labels of corresponding POU are displayed.PROGRAMMING 4PROCEDURE● Entering assignment operatorsPress the + + keys to enter an assignment operator (:=).PROGRAM 5CONFIGURATIONS7.1.2 Automatic indentionInsert a tab as the indention at the head of a new line automatically when a line feed is inserted duringprogram editing.The indention can be set in the option setting.<strong>Operating</strong> procedure1. Select [Tool] ⇒ [Options] ⇒ "Program Editor"⇒ "ST".6SETTING LABELSCOMMON OPERATIONS7OF PROGRAM EDITORS2. Select "Auto Indention".3. Enter the ST control statement to the ST editor(such as a FOR statement).When a line feed is inserted, the next line is indented based on the content of the statement.EDITING ST 8PROGRAMSEDITING STRUCTUREDLADDER PROGRAMS7.1.1 Writing ST programs 7 - 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!