APPENDIX C. BINARY TELECOMMUNICATIONS
C-7
TABLE C.4-2. Example Program Listing
From
D
Command 1
MODE 1
SCAN RATE 5
1:P17
1:1
2:P86
1:10
3:P70
1:1
2:1
4:P0
MODE 2
SCAN RATE 0
MODE 3
1:P0
MODE 10
1:28
2:64
3:0
4:5332
5:1971
MODE 12
1:0
2:0
MODE 11
1:6597
2:30351
3:48
4:0
5:0
^E ^E
LOAD PROGRAM FROM ASCII FILE
Command 2 sets up the CR23X to load a
program which is input as serial ASCII data in the
same form as sent in response to command 1.
A download file need not follow exactly the
same format that is used when listing a program
(i.e., some of the characters sent in the listing
are not really used when a program is loaded).
Some rules which must be followed are:
1.
"
M
" must be the first character other than a
carriage return, line feed, semicolon, or 7D
Hex. The "
M
" serves the same function as
"
∗
" does from the keyboard. The order in
which the Modes are sent in does not
matter (i.e., the information for Mode 3
could be sent before that for Mode 1).
2.
"
S
" is necessary prior to the
S
can Rate
(execution interval).
3.
The colons (
:
) are used to mark the start of
actual data.
4.
A semicolon (
;
) tells the CR23X to ignore
the rest of the line and can be used after an
entry so that a comment can be added.
There are 4 two-character control codes which
may be used to verify that the CR23X receives
a file correctly:
^B ^B
(2hex, 2hex)--Discard current buffer
and reset signature
^C ^C
(3hex, 3hex)--Send signature for
current buffer
^D ^D
(4hex, 4hex)--Load current buffer and
reset signature
^E ^E
(5hex, 5hex)--Load current buffer, Exit
and compile program
As a download file is received, the CR23X
buffers the data in memory; the data is not
loaded into the editor or compiled until the
CR23X receives a command to do so. The
maximum size of the buffer is 1.5K. The
minimum file that could be sent is the program
listing, then ^E ^E. ^C ^C tells the CR23X to
send the signature (Appendix C.3) for the
current buffer of data. If this signature does not
match that calculated by the sending device, ^B
^B can be sent to discard the current buffer and
reset the signature. If the signature is correct,
^D ^D can be sent to tell the CR23X to load the
buffer into the editor and reset the signature.
Once the complete file has been sent and
verified, send ^E ^E to compile the program and
exit the load command.
Содержание 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 ...