EasyManua.ls Logo

Omron CX-PROGRAMMER V8.1 - SECTION 5 Structured Text (ST) Language Specifications

Omron CX-PROGRAMMER V8.1
231 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals