EasyManua.ls Logo

ABB PGC2000 - IDLE ALARM Function; IF Statement; INJECT TIME Function; INJECT UCT Function

ABB PGC2000
400 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...
2000-OSM, F1 10-17
IDLE ALARM Function
Description: Returns the state of GCC Idle Alarm.
Syntax: IDLE_ALARM
Example: 0010 IF IDLE_ALARM THEN LPRINT “ALARM
IF Statement
Description: Makes a decision.
Syntax: IF expression THEN stmt [ELSE stmt]
IF expression GOTO line [ELSE stmt]
Comments: expression is a logical expression whose result is TRUE or FALSE.
stmt is a single or multiple statement separated by colons.
Example: 0010 IF A = 1 AND B = 2 GOTO 50
0020 LPRINT “ONE”
0030 END
0040 50 LPRINT “TWO”
If the expression between IF and GOTO is true, a branch to statement 50 is
performed; otherwise, execution continues with line 0020.
INJECT TIME Function
Description: Returns a string with the sample inject date and time for the current stream,
uses the same format as TIME$ and PREV_INJT.
Syntax: INJT
Example: 0010 A$ = INJT
String variable A$ gets inject time and date for the current sample.
INJECT UCT Function
Description: Returns a two-element array with the sample inject date and time for the
current stream. The first element in the array gives the UCT date since 1
January 1970; the second element gives the time in seconds since midnight.
Syntax: INJT_UCT(T!)
Example: 0010 DIM T!(2)
0020 INJT_UCT(T!)
INSTR Function
Description: Returns an integer indicating the position of string2 in string1; otherwise 0 is
returned.
Syntax: INSTR(string1$,string2$)
Comments: string1$ is any string expression.
string2$ is any string expression.
Examples: 0010 P = INSTR(“ABCDEFGHIJKLMNOP”,“HI”)
The variable P is set to 8.
0010 P = INSTR(“ABCDEFGHIJKLMNOP”,“RS”)
The variable P is set to zero.
0010 P = INSTR(“ABCDEFGHIJKLMNOP”,“HO”)
The variable P is set to zero.
INTEGER TYPE Conversion Routine
Description: Returns the integer value of an expression.

Table of Contents

Related product manuals