Omron WS02-CXPC1-V9 - V9 Operation Manual page 114

Table of Contents

Advertisement

Procedures
Note
Registering Variables as Required
Using a Ladder Program
1,2,3...
88
(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).
The ladder program or structured text program can be input first and variable
registered as they are required.
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. 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.
Section 3-2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents