135
SECTION 5
Structured Text (ST) Language Specifications
This section provides specifications for reference when using structured text programming, as well as programming
examples and restrictions.
5-1
Structured Text Language Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . .
136
5-1-1
Overview of the Structured Text Language . . . . . . . . . . . . . . . . . . .
136
5-2
Data Types Used in ST Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
137
5-2-1
Basic Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
137
5-2-2
Derivative Data Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
137
5-3
Inputting ST Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
138
5-3-1
Syntax Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
138
5-3-2
CX-Programmer's ST Input Screen Display. . . . . . . . . . . . . . . . . . .
140
5-4
ST Language Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
141
5-4-1
Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
141
5-4-2
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
142
5-4-3
Inputting Constants. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
142
5-4-4
Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
142
5-4-5
Standard Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
143
5-4-6
OMRON Expansion Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
146
5-5
Statement Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
148
5-5-1
Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
148
5-5-2
Control Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
148
5-6
ST-language Program Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
166
5-6-1
Using an ST Program in a Function Block . . . . . . . . . . . . . . . . . . . .
166
5-7
Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
167
5-7-1
Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
167
5-7-2
Commonly Asked Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
167
Содержание SYSMAC CX-Programmer 9
Страница 2: ......
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 8: ......
Страница 16: ...xvi ...
Страница 20: ...xx ...
Страница 26: ...xxvi Application Precautions 4 ...
Страница 27: ...Part 1 Function Blocks ...
Страница 28: ......
Страница 154: ...128 Procedures Section 3 2 ...
Страница 155: ...Part 2 Structured Text ST ...
Страница 156: ......
Страница 160: ...134 CX Programmer Specifications Section 4 2 ...
Страница 206: ...180 Procedures Section 6 1 ...
Страница 208: ...182 System defined external variables supported in function blocks Appendix A ...
Страница 230: ...204 Revision History ...
Страница 231: ......