![background image](http://html1.mh-extra.com/html/campbell/0871lh1/0871lh1_instruction-manual_3754707011.webp)
9
Program Examples
9.1
CR23X
1: Timer (P26)
1: 3 Loc [ Timer ]
2: If (X<=>F) (P89)
1: 3 X Loc [ Timer ]
2: 3 >=
3: 61 F
4: 30 Then Do
3: Set Port(s) (P20)
1: 9999 C8..C5 = nc/nc/nc/nc
2: 9988 C4..C1 = nc/nc/input/input
;This Section will read the status of the ports for comparison.
;**************************************************************
4: Read Ports (P25)
1: 1 Mask (0..255)
2: 2 Loc [ IceStat ]
5: Read Ports (P25)
1: 2 Mask (0..255)
2: 1 Loc [ FaultStat ]
;Check to see if there is a fault in the unit and output it.
;***********************************************************
6: If (X<=>F) (P89)
1: 1 X Loc [ FaultStat ]
2: 1 =
3: 1 F
4: 30 Then Do
7: Do (P86)
1: 10 Set Output Flag High (Flag 0)
8: Set Active Storage Area (P80)^3085
1: 1 Final Storage Area 1
2: 10 Array ID
9: Real Time (P77)^1712
1: 1220 Year,Day,Hour/Minute (midnight = 2400)
10: Sample (P70)^23951
1: 1 Reps
2: 1 Loc [ FaultStat ]
11: End (P95)
;Check to see if there is Ice on the unit and output it.
;*******************************************************
12: If (X<=>F) (P89)
9