6
QTERM-IV/P40 User's Manual
Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770
The user data memory is divided into 64-byte pages, of
which one byte is always used for an “amount used”
counter, leaving 63 bytes for actual data in each page.
There will be around 330 pages available for user data with
a typical-size QDATA file.
Pages are addressed using a “base 64” technique that guar-
antees that all addresses are valid ASCII characters. Each
page address consists of two characters, ranging from
ASCII “@” (40h) to DEL (7Fh). For example, “AA”, “3v”,
“n]” are valid page addresses; “(F” is invalid because “(” is
not in the 40h to 7Fh range.
Here are the formulas for converting between ASCII page
numbers (MSB and LSB) and decimal page numbers
(Page-Num):
Decimal to ASCII page conversion:
MSB = “@” + INT( Page-Num / 64 )
LSB = “@” + ( Page-Num MOD 64 )
ASCII to Decimal page conversion:
Page-Num = ( MSB - “@” ) * 64 + ( LSB - “@” )
All user area commands which do not explicitly specify a
page use the current (i.e. last specified) data page.
Due to RAM limitations, multidrop terminals (EIA-485 and
EIA-422) can only access the first 15 bytes of each page.
2.2
Software Commands
Once you have configured the QTERM using the power-on
setup (see Chapter 1) and configuration-file download (see
Chapter 3), you can program your host to control the
QTERM using software commands.
Table 2-1 lists the commands available. Each command is
discussed in detail below, and a command summary,
including execution times, is given in Appendix C.
The notation
]
in this chapter always means the one-byte
escape character (1Bh = 27 decimal).
Be sure to read the file READ.ME on your distribution disk
for any late changes to this manual.
Table 2-1: QTERM Software Commands.
Command
Code
Command
Code
Bell (^G)
Backspace
Horizontal Tab (^I)
Line Feed (^J)
Vertical Tab (^K)
Form Feed (^L)
Carriage Return (^M)
XON (DC1 or ^Q)
XOFF (DC3 or ^S)
Delete
Cursor Up
Cursor Down
Cursor Right
Cursor Left
Clear Screen
Set Timeout Delay
Set Tab Spacing
Cursor Home
Set Cursor Position
Erase to End of Screen
Erase to End of Line
Set COntrast
Reset QTERM
Query Version
Buzzer On/Off/Beep
LEDs On/Off/Blink/Toggle
Insert/Replace Mode
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
11h
13h
7Fh
]
A
]
B
]
C
]
D
]
E
]
F..
]
G..
]
H
]
I..
]
J
]
K
]
L..
]
M
]
N
]
O..
]
P..
]
Q..
Auto Wrap Mode
Auto Scroll Mode
Auto Line Feed Mode
Display Off
Backlight On/Off/Toggle
Query Status
Query Cursor Position
Query Character
Scroll Down
Key Repeat/Click Mode
Set Cursor Mode
Set Shift Mode
Control dig0 and dig1
Set Buzzer Duration
Set Key Click Duration
Set Key Repeat Rate
Set LED Blink Rate
Save Parameters to EEPROM
Auxiliary Serial Port Control
Transmit Buffer Flush
XON/XOFF Mode
User Area Read/Write
Get Free User Area
User Area Page Control
Macro String Execution
Query Multidrop Buffer
]
R..
]
S..
]
T..
]
U
]
V..
]
W
]
X
]
Y
]
Z
]
a..
]
b..
]
c..
]
d..
]
e..
]
f..
]
g..
]
h..
]
i
]
j..
]
k
]
l..
]
m..
]
n
]
o..
]
p..
]
q