Campbell Scientific CR10 CR10 Measurement and Control - Page 160
Ifx+y, Number
View all Campbell Scientific CR10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 160 highlights
SECTION 12. PROGRAM CONTROL INSTRUCTIONS TABLE 12.4. Example: Loop with Delay -1 Table 1 Programs 01: 10 Sec. Execution Interval 01: P87 01: o 02: 0 Beginning of Loop Delay Loop Count 11: P86 01: 1 Do CallSubroutine 1 12: P89 01: 25 02: 3 03: 6 04: 31 lf XF X Loc DAY >= F Exit Loop if true 13: P95 End 14: P87 01: 1 02: 0 Beginning of Loop Delay Loop Count 27: P86 01: 1 Do CallSubroutine 1 28: P89 01: 25 02., 3 03: 16 o4: 31 lf XF X Loc DAY >= F Exit Loop if true 29: P95 End P87 6 0 P86 1 P89 25 3 5 32 P95 P 3 01: P85 01: 1 02: P18 01: 2 02: 24 03: 25 03: P95 Beginning of Loop Delay Loop Count Do CallSubroutine 1 lf XF X Loc DAY >= F Exit Loop if false End End Table 1 Table 3 Subroutines Beginning of Subroutine Subroutine Number Time Hours into current year (maximum 8784) Mod/by Loc [:DAY 1 End r** 88 IF X COMPARED TO Y *** FUNCTION This lnstruction compares two input locations and, if the result is true, executes the specified Command. The comparison codes are given in Table 12-5. PARAM. DATA NUMBER TYPE 4 02: 2 03: 4 04: 2 DESCRIPTION lnput location for X Comparison code (Table 12-5) Input location for Y Command (Table 3.8-1) TABLE 12-5. Comparison Codes Parameter 1 1 2 3 4 Function IFX=Y IFX+Y IFX>Y IFX