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
Содержание CR23X
Страница 8: ...CR23X TABLE OF CONTENTS vi This is a blank 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 ...
Страница 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Страница 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Страница 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Страница 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Страница 103: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 15 CR23X AVW1 FIGURE 7 15 2 Well Monitoring Example ...
Страница 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Страница 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Страница 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Страница 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Страница 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Страница 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 ...
Страница 239: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 13 S A N Y O FIGURE 14 11 6 Removal of band clamp and battery ...
Страница 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Страница 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Страница 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Страница 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Страница 278: ...This is a blank page ...
Страница 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Страница 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Страница 300: ...This is a blank page ...
Страница 302: ...This is a blank page ...
Страница 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Страница 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Страница 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Страница 342: ...This is a blank page ...
Страница 373: ...This is a blank page ...