![background image](http://html1.mh-extra.com/html/patton-electronics/2003/2003_user-manual_4011486010.webp)
17
18
Rule #6. Characters are not echoed when the Model 2003 is
addressed.
Rule #7. If line turn around is set or if the Model 2003 is
addressed, a colon is sent back acknowledging the data sent.
Rule #8. After receiving an addressed message, a colon is sent
back immediately.
Rule #9. If not addressed but line turn around is set, a colon is
sent back after the data has been processed, signaling that anoth-
er command can be sent.
5.2 OPERATING MODES
Four operating mode commands set the way Model 2003 inter-
prets incoming data. Once set, the Model 2003 operating mode stays
the same until you change it or until a power failure occurs.
~C
Character Mode - is the default mode of operation. When
this mode is set, any ASCII character except ~ (tilde, hex 7E),
^ (caret, hex 5E), and CR (return, hex 0D) is converted to the
scan codes for that character. Each ASCII character will be
sent to the keyboard with the corresponding make and
release codes. Allow enough time for the codes to be sent
through to the computer, as an ASCII code can require up to
10 keyboard codes to execute.
(default operating mode)
Control codes may be sent by a combination of a ^ (caret, hex
5E),a nd the corresponding letter. For example, a control C
(Hex 03) is ^C.
~H
Hex ASCII Mode - Data is interpreted as hexadecimal encod-
ed ASCII. For example, to send the computer the character
‘A’, you would need to send its hexadecimal ASCII value (Hex
41) as two ASCII digits, 4 and 1.
~S
Scan Code Mode - In this mode, date is translated to the cor-
responding keyboard scan codes. For an ASCII transfer, each
pair of ASCII encoded characters is interpreted as a DOS
scan code. For a binary transfer, each 8 bit character is inter-
preted as a DOS scan code. DOS assigns each key a DOS
scan code. Note that all DOS scan codes are sent complete
with make and break sequences.
~K
Key Code Mode - In this mode, codes are sent directly to the
computer without interpretation. For an ASCII transfer, each
pair ASCII encoded characters is interpreted as a keyboard
code. For a binary transfer, each 8 bit character is interpreted
as a keyboard code. Care should be taken in using keyboard
scan codes, as the computer can be left in a very confused
state if the scan code sequence is not properly completed.
5.3 DATA TRANSFER COMMANDS
~A
ASCII Transfer - Default setting. If ASCII transfer is set, all
data is interpreted as ASCII.
~B
Binary Transfer - In scan code (~S) or key code (~K) modes.
Data is sent as 8 bit binary
5.4 KEYBOARD COMMANDS
~Dnn
Set/Clear Keyboard LEDs - Use this command to turn on or
off local keyboard LED indicators. The nn field is an ASCII
hex encoded binary field, where:
b0 = Scroll Lock
b1 = Num Lock
b2 = Caps Lock
Examples:
~D01
Scroll Lock on, Caps & Num Lock off
~D04
Caps Lock on, Scroll & Num Lock off
~D00
Turns off all LEDs
~Xnn
Send Data to Keyboard - Use this command to send the
ASCII hex encoded byte nn to the keyboard. This command
requires technical knowledge of the keyboards.
5.5 TURN AROUND COMMANDS
~I
Immediate Turn Around - Data is interpreted ‘on-the-fly’.
Special address switch setting of 59 makes this default for
non-addressed mode. Note that in this mode <ENTER/CR>
(Hex 0D) is not a special character, and passed on to the
computer.
~L
Line Turn Around - Set Model 2003 to a line oriented basis,
each line ending with an <ENTER/CR> (Hex 0D).