Campbell Scientific CR10 CR10 Measurement and Control - Page 161
command., realtime, willalways, realtime, hour., realtime interual., second., willonly,
View all Campbell Scientific CR10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 161 highlights
SECTION 12. PROGRAM CONTROL INSTRUCTIONS PARAM. DATA NUMBER TYPE 01: 2 DESCRIPTION lncrement for the loop index counter *** 91 IF FLAG / PORT *** FUNCTION This lnstruction checks the status of one of the ten Flags or one of the eight ports and conditionally performs the specified Command. The first Parameter specifies the condition to check: 21XX 4X 5X Execute command if Flag X is high Execute command if Flag X is low Execute command if port X is high Execute command if port X is low PARAM. DATA NUMBER TYPE DESCRIPTION 01: 2 Flag or Port condition to check O2: 2 Command (Table 3.8-1) t** 92 lF TIME *** FUNCTION The user specifies the number of minutes or seconds into an interual, the duration of the interval, and a command. The command is executed each time the realtime is the specified time into the interval. The "lf" condition willalways be false if 0000 is entered as the time interval. The time interval is synchronized with realtime; 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 synchronized internally by making a modulo divide (lnstruction 46) of the number of minutes since midnight by the specified realtime interual. lf the result is 0, the interual is up. Thus, the first interval of the day always starts at midnight (0 minutes). The time into an interual is only true the first time lnstruction 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 willonly be one output generated by this instruction, not five. The time into intervaland the interval may 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 intervalwillalso be interpreted as seconds. The Output Flag (Flag 0) is a specialcase in that it will automatically be cleared if it is not time to set it. 01: t PARAM. NUMBER TDAYTAPE DESCRIPTION l,ir"",llf,il"?ll.0. n entered XXXX--) 02: 4 Time interval(minutes or seconds if time into interualis XXXX-) 03: 2 Command (Table 3.8-1) *** 93 BEGIN CASE STATEMENT *** The value in the specitied input location is compared against parameters in following lf Case instructions (83). When a comparison is true, the command in the lf Case instruction is executed and the program flow goes to the End instruction (95) associated with the Begin Case instruction. PARAM. NUMBER TDAYTAPE 01: 4 DESCRIPTION Input location for subsequent comparisons E)(AMPLE: 01: P93 01: 2 02 P83 01: 69.4 02: 3 else 03: P83 01: 72 02: 10 else 04: P83 01: 77.3 02: 30 Case Case Loc lf Case Location < F F CallSubroutine 3 lf Case Location < F F Set high Flag 0 (output) lf Case Location < F F Then Do 12-5