Operator`s manual

SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-5
the loop. Instruction 90 does not affect the loop
counter which still counts by 1.
PAR. DATA
NO. TYPE DESCRIPTION
01: 2 Increment for the loop index counter
*** 91 IF FLAG, PORT ***
FUNCTION
This instruction checks one of the ten flags or 8
ports and conditionally performs the specified
command.
The high input of any differential channel may be
used to sense the status of a logic signal
(3 V<high<5.5 V; -0.5 V<low<0.8 V). This option
only exists with 21X PROMS released after July
1993 (OSX-X.1 revision 3 and greater).
The first parameter specifies the flag or port to
check and the state (high or low) on which to
execute the command.
1X = execute Command if Flag X is high
2X = execute if Flag X is low
4X = execute if Port X is high
5X = execute if Port X is low
PAR. DATA
NO. TYPE DESCRIPTION
01: 2 Flag/status
02: 2 Command
*** 92 IF TIME ***
FUNCTION
The user specifies the number of minutes into
an interval, the duration of the interval, and a
command. The command is executed each
time the real time is the specified number of
minutes into the interval.
The time interval is synchronized with real time;
if a 60 minute time interval is specified with 0
minutes into the interval, the Command will be
executed each hour on the hour. The time
interval is automatically synchronized by making
a modulo divide of the number of minutes since
midnight by the specified real time interval. If
the result is 0, the interval is up. Thus, the first
interval of the day always starts at midnight (0
minutes). Only one execution is allowed in any
minute (e.g., if the command is to set the Output
Flag, and the execution interval of the table is 10
seconds, there will only be one output generated
by this instruction, not six.)
The Output Flag (Flag 0) is a special case in
that it will automatically be set low if it is not time
to set it high.
PAR. DATA
NO. TYPE DESCRIPTION
01: 4 Time into interval (minutes)
02: 4 Time interval (minutes)
03: 2 Command
*** 93 BEGIN CASE STATEMENT ***
Instruction 93 specifies an input location for
comparison with fixed values in subsequent If
Case instructions (83). When a comparison is
true, the command in the If Case instruction is
executed and at the next Instruction 83
execution jumps to the End Instruction 95
associated with the Begin Case Instruction.
PAR. DATA
NO. TYPE DESCRIPTION
01: 4 Input location for subsequent
comparisons
EXAMPLE:
01: P93 Case
01: 2 Case Loc
02: P83 If Case Location < F
01: 69.4 F
02: 3 Call Subroutine 3
else
03: P83 If Case Location < F
01: 72 F
02: 10 Set high Flag 0 (output)
else
04: P83 If Case Location < F
01: 77.3 F
02: 30 Then Do
05: P30 Z=F
01: 0 F
02: 0 Exponent of 10
03: 25 Z Loc :
06: P95 End Then Do
07: P95 End of Case Statement
*** 94 ELSE ***
FUNCTION
When Command 30 (Then/Else) is used with If
Instruction, the Else Instruction is used to mark