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

Page 504

Advertising
background image

<Appendix G User Program>

App.G-5

IM 11B08A01-01E

DIV

Function

Function

Gives division results.

Format

DIV (x, y)

x, y: Equation

Explanation Gives results by calculating x/y and rounding down decimal points.

If x, y is either numerical value or variable, then it can be an integer, a single

precision real number or a double precision real number.

EXP

Function

Function

Gives the value of the exponent function against e (natural number).

Format EXP

(x)

x:

Equation

Explanation Takes the value of the exponent function result of the numerical value shown by

the either the numerical value or numeric variable of x.

When the value of x is more than 43.66827237527656, an operation overfl ow and

error will occur (when x is a double precision real number).

LOG

Function

Function

Gives natural logarithm.

Format LOG

(x)

x: Equation (x>0)

Explanation Gives the numerical value of the natural logarithm (logarithm that takes natural

number e as base) shown by either the numerical value or numeric variable of x.

x must be a positive number.

MOD

Function

Function

Gives the remainder from integer division.

Format

MOD (x, y)

x, y: Equation

Explanation Calculates x/y and gives the remainder.

If x, y are either numerical value or numeric variable, then it can be an integer, a

single precision real number or a double precision real number.

SQR

Function

Function

Gives the square root.

Format

SQR

(x)

x: Equation (x ≥ 0)

Explanation Calculates the square root of the numerical value shown by either the numerical

value or numeric variable of x.

Value of x must be more than zero.

2.2 Statements

Please note the following points.

• Layer depth of a nest (the general layer depth for IF, FOR and WHILE) can be up to 100

statements.

• Up to 100 GOTO/GOSUB statements can be used in one script fi le.
• Up to 100 labels can be used in one script fi le.
• Up to 100 DATA statements can be used in one script fi le.

Table 4 shows the statements that can be used in the GC8000 user script.

2nd Edition : May 11, 2012-00

App.G

Advertising