![Campbell CR510 Скачать руководство пользователя страница 182](http://html1.mh-extra.com/html/campbell/cr510/cr510_operators-manual_489094182.webp)
APPENDIX B. BINARY TELECOMMUNICATIONS
B-6
SENDING ASCII PROGRAM INFORMATION
Program listings are sent in ASCII. At the end
of the listing, the CR510 sends control E (5 hex
or decimal) twice.
Table 1.8-4 is an example of the program listing
sent in response to command. Your numbers
may be different. Note that the listing uses
numbers for each mode: The numbers for
∗
A,
∗
B, and
∗
C modes are 10, 11, and 12,
respectively.
TABLE B.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
6:
2:30351
7:
3:48
8:
4:0
9:
5:0
10:
^E ^E
11:
LOAD PROGRAM FROM ASCII FILE
Command 2 sets up the CR510 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 CR510 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 CR510 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 CR510
buffers the data in memory; the data is not
loaded into the editor or compiled until the
CR510 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 CR510 to
send the signature (Appendix B.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 CR510 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.
Содержание CR510
Страница 1: ...CR510 DATALOGGER OPERATOR S MANUAL REVISION 2 03 COPYRIGHT c 1986 2003 CAMPBELL SCIENTIFIC INC ...
Страница 2: ...This is a blank page ...
Страница 4: ...This is a blank page ...
Страница 10: ...This is a blank page ...
Страница 44: ...SECTION 1 FUNCTIONAL MODES 1 14 This is a blank page ...
Страница 56: ...SECTION 3 INSTRUCTION SET BASICS 3 8 ...
Страница 104: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 8 This is a blank page ...
Страница 128: ...SECTION 10 PROCESSING INSTRUCTIONS 10 8 This is a blank page ...
Страница 144: ...SECTION 12 PROGRAM CONTROL INSTRUCTIONS 12 10 This is a blank page ...
Страница 172: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 10 This is a blank page ...
Страница 176: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Страница 184: ...This is a blank page ...
Страница 188: ...APPENDIX D DATALOGGER INITIATED COMMUNICATIONS D 4 This is a blank page ...
Страница 196: ...APPENDIX F MODBUS ON THE CR10 X AND CR510 F 4 This is a blank page ...
Страница 197: ...APPENDIX G TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Страница 198: ...This is a blank page ...
Страница 200: ...This is a blank page ...
Страница 206: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Страница 222: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Страница 238: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Страница 240: ...This is a blank page ...