App.g-6 – Yokogawa GC8000 Process Gas Chromatograph User Manual

Page 505

Advertising
background image

<Appendix G User Program>

App.G-6

IM 11B08A01-01E

Table 4 List of statements

No.

Statement Format

1

DATA

2

DEFINT/DEFSNG/DEFDBL

3

DIM

4

DP

5

END

6

FOR/NEXT

7

GOSUB/RETURN

8

GOTO

9

IF...THEN/ENDIF, IF...THEN/ELSE/ENDIF,

IF..THEN/ELSEIF…..THEN/(ELSE/)ENDIF

10

LET

11

READ

12

REM

13

RESTORE

14

WHILE/END WHILE

See the following for details regarding to statement content.

DATA

Statement

Function

READ statement sets replacement data in each variable.

Format

DATA constant [, constant, …]

Constant:

Numeric

Explanation DATA statement can be placed anywhere in the program or even dispersed.

Space is ignored for numeric variables in the READ statement.

The RESTORE statement enables the DATA statement read by the READ

statement to be set by line unit

Up to 1024 constants can be used as a parameter after DATA.

DEFINT/DEFSNG/DEFDBL Statement

Function

Declares type of variable.

Format

(1) DEFINT variable name [, variable name…]

(2) DEFSNG variable name [, variable name…]

(3) DEFDBL variable name [, variable name…]

Explanation Declares type of variable. All variables specifi ed with initial characters of variables

become the specifi ed type.

DEFINT declares variable as an integer.

DEFSNG declares variable as a single precision real number type.

DEFDBL declares variable as a double precision real number type.

The

specifi ed initial character of the variable is one uppercase alphabetic

character. For any of the formats (1) to (3) listed above, it is necessary to make the

declaration before the variable name is described in the program block. Complex

sentences cannot be described.

The maximum of 16 variables can be defi ned at one time.

Regarding to the defi nition of variables, see Section 1.5 Variables.

DIM

Statement

Function

Declares array variables.

Format DIM_ARRAYNAME_AS_TYPE

Array name: Name of array

Type: INTEGER, REAL, DOUBLE

Explanation Declares as either one-dimensional array or two-dimensional array.

Regarding to the defi nitions of array variables, see Array Variables in Section 1.5

Variables.

2nd Edition : May 11, 2012-00

Advertising