CR10X Reference Manual
12-8
The first parameter specifies the condition to check:
1X
Execute command if flag X is high
2X
Execute command if flag X is low
20
Execute command if modem is on
4X
Execute command if port X is high
40
Execute command if modem is on
5X
Execute command if port X is low
50
Execute command if modem is off
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Flag or port condition to check
02:
2
Command
Instruction 92: If Time
This instruction allows you to specify the number of minutes or seconds into an
interval, the duration of the interval and a command. The command is executed
each time the real time is the specified time into the interval. The ‘If’ condition
will always be false if 0000 is entered as the time interval.
The time interval is synchronised 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 synchronised internally by making a modulo
divide (see Instruction 46) of the number of minutes since midnight by the
specified real time interval. If the result is 0, the interval has elapsed. Thus, the
first interval of the day always starts at midnight (0 minutes). The time into an
interval is only true the first time Instruction 92 is executed within a given minute
(or second). For example, if the command is to set the Output Flag at 0 minutes
into a 10-minute interval, and the execution interval of the table is 10 seconds,
every 10 minutes there will only be one output generated by this instruction, not
five.
The time into interval and the interval may only be entered in seconds for
intervals less than 60 seconds.
To enter the times in seconds, press ‘
C
’ after keying in the number of seconds into
the interval for parameter 1; two dashes will appear to the right of the number
(XXXX--). When the time into interval is entered as seconds (XXXX--), the time
interval will also be interpreted as seconds.
The maximum number of seconds that can be specified for parameter 1 is 59 and
the maximum number for parameter 2 is 60.
The Output Flag (flag 0) is a special case in that it is automatically cleared if it is
not time to set it.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Time into interval (minutes, or seconds if entered as
XXXX--)
02:
4
Time interval (minutes, or seconds if time into interval
is entered as XXXX--)
03:
2
Command
Instruction 93: Begin Case Statement
Instruction 93 specifies an input location for comparison with fixed values in
subsequent If Case instructions (i.e. Instruction 83). When a comparison is true,