![Omron CX-PROGRAMMER V8.1 Operation Manual Download Page 113](http://html1.mh-extra.com/html/omron/cx-programmer-v8-1/cx-programmer-v8-1_operation-manual_744203113.webp)
88
Procedures
Section 3-2
Note
(1) Tabs or spaces can be input to create indents. They will not affect the al-
gorithm.
(2) The display size can be changed by holding down the
Ctrl
Key and turn-
ing the scrolling wheel on a wheel mouse.
(3) When an ST language program is input or pasted into the ST input area,
syntax keywords reserved words will be automatically displayed in blue,
comments in green, errors in red, and everything else in black.
(4) To change the font size or colors, select
Options
from the Tools Menu
and then click the
ST Font
Button on the Appearance Tab Page. The font
names, font size (default is 8 point) and color can be changed.
(5) For details on structured text specifications, refer to
SECTION 5 Struc-
tured Text (ST) Language Specifications
in
Part 2: Structured Text (ST).
Registering Variables as Required
The ladder program or structured text program can be input first and variable
registered as they are required.
Using a Ladder Program
When using a ladder diagram, a dialog box will be displayed to register the
variable whenever a variable name that has not been registered is input. The
variable is registered at that time.
Use the following procedure.
1,2,3...
1.
Press the
C
Key and input a variable name that has not been registered,
such as
aaa,
in the New Contact Dialog Box.
Note
Addresses cannot be directly input for instruction operands within
function blocks. Only Index Registers (IR) and Data Registers (DR)
can be input directly as follows (not as variables): Addresses DR0
to DR5, direct specifications IR0 to IR15, and indirect specifications
,IR0 to ,IR15.
2.
Click the
OK
Button. The New Variable Dialog Box will be displayed. With
special instructions, a New Variable Dialog Box will be display for each op-
erand in the instruction.
ST program input directly or pasted from one
created in a text editor.
Set the data type and other
properties other than the name.
Summary of Contents for CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......