
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-8
07:
Z=X (P31)
1:
2
X Loc [ 0_360_WD ]
2: 10
Z Loc [ 0_540_WD ]
08:
IF (X<=>F) (P89)
1: 10
X Loc [ 0_540_WD ]
2:
4
<
3: 180
F
4: 30
Then Do
09:
If Flag/Port (P91)
1: 11
Do if Flag 1 is High
2: 30
Then Do
10:
Z=X+F (P34)
1: 10
X Loc [ 0_540_WD ]
2: 360
F
3: 10
Z Loc [ 0_540_WD ]
11:
Z=X (P31)
1: 10
X Loc [ 0_540_WD ]
2:
6
Z Loc [ 0_540_out ]
12:
End (P95)
13:
End (P95)
14:
End (P95)
INPUT LOCATIONS
2 0_360_WD
6 0_540_out
10 0_540_WD
8.8 USE OF 2 FINAL STORAGE AREAS
- SAVING DATA PRIOR TO EVENT
One of the uses of 2 Final Storage Areas is to
save a fixed amount of data before and after
some event.
In this example, a load cell is measured every
second. It is assumed that at some random
interval the load will exceed 25 pounds for less
than 10 seconds. Exceeding 25 pounds is the
event to be captured. The data from the 10
seconds before the event and 10 seconds after
the event is to be saved (21 seconds including
the scan in which the load first exceeds 25
pounds).
Every second the load cell is measured; hours-
minutes, seconds, and the load are output to
Final Storage Area 2 (4 values with the Array
ID). 84 locations are allocated to Final Storage
Area 2. Thus, Area 2 holds 21 seconds (4
values/second x 21 seconds = 84 locations).
When 25 pounds is exceeded, 10 is loaded into
an input location and flag 1 is set high. The
input location is used as a down counter. The
flag indicates an event has occurred and
prevents the input location from being reloaded
until 11 seconds have passed.
The down counter is decremented by 1 each
time the table is executed. When it equals 0 all
the data in Final Storage Area 2 is transferred to
Final Storage Area 1 (using Instruction 96) and
Flag 1 is set low.
The down counter is set to 10 instead of 11
because it is decremented after checking to see
if it is 0.
PROGRAM
*
Table 1 Program
01:
1
Execution Interval (seconds)
01:
Full Bridge (P6)
1:
1
Reps
2:
21
±10 mV Slow 60 Hz Rejection
Range
3:
1
DIFF Channel
4:
1
Excite all reps w/Exchan 1
5: 2500
mV Excitation
6:
1
Loc [ Force_kg ]
7:
15.120
Mult
8:
0
Offset
02:
Do (P86)
1:
10
Set Output Flag High
03:
Set Active Storage Area (P80)
1:
2
Final Storage Area 2
2:
10
Array ID or Loc
[ _________ ]
04:
Real Time (P77)
1:
11
Hour/Minute,Seconds
05:
Sample (P70)
1:
1
Reps
2:
1
Loc [ Force_kg ]
06:
IF (X<=>F) (P89)
1:
1
X Loc [ Force_kg ]
2:
3
>=
3:
25
F
4:
30
Then Do
Summary of Contents for CR23X
Page 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Page 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Page 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Page 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Page 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Page 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Page 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Page 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Page 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Page 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Page 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Page 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Page 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Page 278: ...This is a blank page ...
Page 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Page 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 300: ...This is a blank page ...
Page 302: ...This is a blank page ...
Page 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 342: ...This is a blank page ...
Page 373: ...This is a blank page ...