Operator`s manual

SECTION 1. FUNCTIONAL MODES
1-8
1.8.1 TRANSFER TO COMPUTER/PRINTER
This section describes commands 1 and 2
(Table 1.8-1). TERM (PC208 Software)
automatically uses these commands for
uploading and downloading programs.
SENDING ASCII PROGRAM INFORMATION
Command 1 is to send the program listing in
ASCII. At the end of the listing, the 21X sends
control E (5 hex or decimal) twice. Except when
in telecommunications, the baud rate code must
be entered after command 1.
Table 1.8-4 is an example of the program listing
sent in response to command 1 (the actual
listing is in one column but is printed in two
columns to save space). Note that the listing
uses numbers for each mode: The numbers for
*A, *B, and *C modes are 10, 11, and 12,
respectively.
TABLE 1.8-4. Example Program Listing
From *D Command 1
MODE 1
SCAN RATE 2
1:P17
1:1
1:P0
2:P14
1:1
2:1
3:5
4:1
5:1
6:2
7:1
8:0
3:P92
1:0
2:5
3:10
MODE 1
SCAN RATE 2
4:P71
1:2
2:1
5:P0
MODE 2
SCAN RATE 0
MODE 3
MODE 4
1:0
2:0
MODE 10
1:28
2:64
3:19328
4:934
MODE 12
1:0
2:0
MODE 2
SCAN RATE 0
LOAD PROGRAM FROM ASCII FILE
Command 2 sets up the 21X to load a serial
ASCII program. The format is the same as sent
in response to command 1 (Table 1.8.4).
Except when in telecommunications, the baud
rate code must be entered after command 2.
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 (CR) or line feed (LF). The
"M" serves the same function as "*" does
from the keyboard. The order that the
Modes are sent in does not matter (i.e., the
information for Mode 4 could be sent before
that for Mode 1).
2. "S" is necessary prior to the execution
interval (Scan rate).
3. The colons (:) are used to mark the start of
actual data.