Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 4 of 10

QTERM-IV/P40 User's Manual: Chapter 2.

Pages 15 to 26 of 64, from QTERM-IV/P40 User's Manual

The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the QSI Corp QTerm-IV and Beijer QTerm-IV

Page 15

CHAPTER 2. QTERM SOFTWARE 2.1

Operation

The operation of the QTERM is quite simple:

• Power is applied to the QTERM. • Commands or data can be transmitted to the QTERM. Commands are executed as required; data is displayed.

• When a key is pressed, the QTERM transmits the appropriate character(s) to the host. The QTERM has many additional capabilities which are accessed in three ways:

• Power-On Setup (see Chapter 1) • Software commands from host (this chapter) • Configuration-file download (see Chapter 3) 2.1.1

Handshaking

The QTERM has buffers for both receiving and transmitting characters. However, these buffers may not be large enough for some applications. If this is the case for your application, then your host must use XON/XOFF handshaking to make optimal use of the QTERM's capabilities. The QTERM's transmit buffer (16 bytes long) is used when a host does not wish to receive characters for a period of time. The host sends an XOFF character to the QTERM. The QTERM starts placing keycodes (one character per keystroke, regardless of how many characters are in the string assigned to the key) into the transmit buffer rather than transmitting them. When the host is ready to receive characters, it sends an XON character, at which time the QTERM will start transmitting the characters in the buffer. The QTERM's receive buffer is large enough to accept a full screen of text at the maximum baud rate (9600) without overrunning the buffer. However, some operations can take a longer time to execute, such as scrolling the entire screen down one line. In this case, the QTERM will send an XOFF to the host when it has only six bytes empty in its buffer. When it has processed input data to the point that the buffer only has six bytes used, it will send an XON and the host can resume transmitting. The command summary in Appendix C shows approximate execution time for each of the various operations of the QTERM. XON/XOFF handshaking can also be disabled (by software command or the QDATA file) if you do not wish to use it. However, if you do not use handshaking, you must take extra care that you do not overrun the QTERM's receive buffer. The two easiest ways to do this are to use a slower baud rate (which gives the QTERM more time to process each byte), or add delays to your code after each write to the QTERM. 2.1.2

Commands vs. QDATA Parameters

There are numerous parameters which are set by the QDATA configuration file (see Chapter 3), but which can be overridden by a software command. For example, tab spacing is set in the QDATA file but can be changed by the Set Tab Spacing command. In all such cases, the software command overrides the QDATA configuration file setting but does not store the new setting into EEPROM. Therefore, when power is turned off, the overriding value is lost, and when the terminal is turned on, the QDATA parameter will be used again. If you wish to have the software command permanently override the QDATA configuration file setting, you can use the Store Parameters to EEPROM command. This saves all currently-set parameters to the EEPROM which makes them the current power-on defaults. 2.1.3

User Data Memory Organization

The QTERM has about 22 Kbytes of storage for user data. Some of this is used for the information from the QDATA file, so the exact amount depends on how much data you put into key strings, macro strings. Typically, you will have about 20 to 21 kbytes available for user data.

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 16

6

QTERM-IV/P40 User's 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

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 guarantees 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.

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 17

QTERM-IV/P40 User's Manual 2.2.1

Bell (^G) - 07h

This causes the buzzer to beep. The default beep duration (½ second) is set in the QDATA file; it can be overridden with the Set Buzzer Duration command (] e). Note that sending this command is identical to sending the Buzzer On/Off/Beep command for a beep (] O B).

7 2.2.8

Enables the QTERM to transmit keys pushed after receiving an XOFF. XON is used to re-enable QTERM transmission after an XOFF has disabled it, allowing handshaking with the host system. 2.2.9

2.2.2

XON (^Q) - 11h

XOFF (^S) - 13h

Backspace (^H) - 08h

Causes a nondestructive backspace, i.e. characters are not erased as the cursor is backspaced over them. With auto wrap mode off, the backspace stops at the left edge of the current display line. With auto wrap mode on, the cursor will wrap to the last position on the previous line. The command is ignored if the cursor is at the home position. See also the Delete command (7Fh).

Disables all QTERM transmission except for information requested via the Query Status command (] W). After receiving an XOFF command, the QTERM stores characters typed on the keypad in a transmit buffer. These characters will be transmitted when an XON is received. If the buffer becomes full before an XON is received, additional characters which are typed will be ignored. 2.2.10 Delete - 7FH

2.2.3

Horizontal Tab (^I) - 09h

Moves the cursor right to the next tab column. The default tab spacing is set in the QDATA file; it can be overridden with the Set Tab Spacing command (] G). (The QDATA default tab spacing is every 4 spaces.) With auto wrap on, the cursor will wrap down to the first column in the line below when it is tabbed beyond the last column in the current line. If auto wrap is off, the cursor will stop at the end of the current line. If auto scroll and auto wrap are both on, then the display will scroll up as the cursor is tabbed beyond the last column in the last line. 2.2.4

Line Feed (^J) - 0Ah

Moves the cursor down one line without changing its horizontal position. When auto scroll mode is on and a line feed is performed on the last line, the display will scroll up with the horizontal cursor position unaltered. 2.2.5

Delete works in the same way as Backspace (08h, ^H), except that characters are erased as the cursor moves over them. 2.2.11 Cursor Up - ] A Moves the cursor up one line without changing its horizontal position. It has no effect if the cursor is on the first line. 2.2.12 Cursor Down - ] B Moves the cursor down one line without changing its horizontal position. It has no effect if the cursor is on the last line. 2.2.13 Cursor Right - ] C Moves the cursor right one space without changing its vertical position. It has no effect if the cursor is at the rightmost position on the current line.

Vertical Tab (^K) - 0Bh 2.2.14 Cursor Left - ] D

Performs the same function as Line Feed. 2.2.6

Form Feed (^L) - 0Ch

Moves the cursor left one space without changing its vertical position. It has no effect if the cursor is at the left-most position on the current line.

Performs the same function as Line Feed. 2.2.15 Clear Screen - ] E 2.2.7

Carriage Return (^M) - 0Dh

Moves the cursor to left edge of the display on the current line. If auto line feed mode is on, then the cursor moves to the left edge of the next line. If auto scroll and auto line feed are both on, a carriage return on the last line will cause the display to scroll up and the cursor to be positioned at the left edge of the last line.

Clears the display and moves the display cursor to home (the left-most position in the top line of the display). 2.2.16 Set Timeout Delay - ] F # This sets the time after which, if no activity has occurred, the QTERM will automatically turn off the display (in

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 18

8

QTERM-IV/P40 User's Manual order to save power). Once the display has been turned off, it is turned back on by either of two events:

• If the operator presses a key, the display is turned back

ESC I # *, where # sets the row and * sets the column. For example, the string ]IBD on. However, the key is not transmitted to the host.

• If the host sends a command or character to the QTERM, the display is turned back on, and the command or character will be processed normally. If the QTERM has a backlight, and it is on when the timeout occurs, the backlight is turned off along with the display. When the display is turned back on, the backlight is turned on if it was on when the timeout occurred. Anything displayed on the LCD screen when the timeout occurs is lost; i.e. when the display is turned back on it will be blank. Custom character definitions are not lost. The format for this command is ] F #, where # is a character in the range of 40h to 7Fh (“@” to DEL). 40h disables the timeout function. Other values set the timeout delay in 20 second increments, from 20 seconds through 21 minutes. See Table 1-2 (at the end of this chapter) for a complete list of codes and timeout delays. The only thing the host can do that will not turn on the display is to issue the Query Status command (] W). 2.2.17 Set Tab Spacing - ] G # This sets the width of the horizontal tab columns. The command has the form ] G #, where # is a character in the range of 40h to 53h (“@” to “S”). 40h causes tab characters to be ignored; 41h sets tabs at every column (which causes tabs to be treated as spaces), 42h sets tabs to every second column, etc. If # is outside this range, the command sequence is ignored. For example, the three-byte command string ]GD sets tab spacing to every four spaces. See Table 1-2 (at the end of this chapter) for a complete list of codes and tab spacings. 2.2.18 Cursor Home - ] H Moves the cursor to the home (top left) position on the display. 2.2.19 Set Cursor Position - ] I # * Positions the cursor to the specified location (Table 1-2 shows location numbering). The command has the form sets the cursor to row 2 (third row) and column 4 (fifth column). See Table 1-2 for a complete list of valid codes and cursor positions. 2.2.20 Erase to End of Screen - ] J Erases from the current cursor position to the end of the screen. The cursor position is unchanged. 2.2.21 Erase to End of Line - ] K Erases all displayed characters from the current cursor position to the end of the line. The cursor position is unchanged. 2.2.22 Set Contrast - ] L # This command sets the display contrast. It has the form ] L #, where # is in the range of 40h to 7Fh (“@” to DEL). The smaller the ASCII value of the character, the lower the contrast. The higher the ASCII value of the character, the higher the contrast. 2.2.23 Reset QTERM - ] M Resets the QTERM to its power-up state. This includes clearing all input and output buffers and the display, and resetting all parameters to the configuration set by the QDATA file, or a subsequent Save Parameters to EEPROM command. 2.2.24 Query Version - ] N This tells the QTERM to transmit its software version to the host. The version will consist of four ASCII characters in the format vx.y, where x and y are single ASCII digits. 2.2.25 Buzzer On/Off/Beep -] O # This command controls the buzzer. It has the form ] O #, where # is @AB- turn buzzer off turn buzzer on beep for fixed duration

The fixed duration beep command (] O B) is identical to sending a Bell command (07h, ^G). The duration used for beeping is set by the Set Buzzer Duration command (] e) and by the QDATA file (default is ½ second).

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 19

QTERM-IV/P40 User's Manual

9

2.2.26 LEDs On/Off/Blink/Toggle - ] P #

2.2.29 Auto Scroll Mode - ] S #

This controls the LEDs on the QTERM keypad, including the shift key LED. Any of these LEDs can be set to on, off or blink (the blink rate is set in the QDATA file and by the Set LED Blink Rate command). If a shift key is used, pressing the shift key will cause the proper state of the shift LED to override whatever state is set by this command. If no shift key is used, the shift LED is controlled solely by this command.

Auto scroll mode determines what happens when the cursor moves past the end of the last line. With auto scroll off, the cursor will stay in the last position. With auto scroll on, the display scrolls (i.e. all lines move up, and the last line becomes blank), and the cursor moves to the first position in the last line.

See Table 1-2 for a list of valid values for # and the effect of each such value. As an example of this command, the string

Valid values for # are @A- auto scroll off auto scroll on

2.2.30 Auto Line Feed Mode - ] T # ]PR sets the second LED from the right to blink. 2.2.27 Insert/Replace Mode - ] Q # In insert mode, when a character is displayed at any position on the display, all following characters are moved right one position. The character in the current cursor location is also moved before the incoming character is displayed. In delete mode, the character displayed simply over writes whatever character was there previously. Valid values for # are @A- set replace mode set insert mode

With auto line feed off, when a carriage return is received, the cursor returns to the first position in the current line. With auto line feed on, the cursor moves to the first position in the next line, i.e. it acts as if both a carriage return and a line feed had been received. Valid values for # are @A- auto line feed off auto line feed on

2.2.31 Display Off - ] U This turns off the display. Once the display has been turned off, it is turned back on by either of two events:

2.2.28 Auto Wrap Mode - ] R #

• If the operator presses a key, the display is turned back

The auto wrap mode determines what happens when the cursor moves past the end of a line. With auto wrap off, the cursor stays at the last position in the line. With auto wrap on, the cursor moves down to the first position in the next line.

• If the host sends a command or character to the on. However, the key is not transmitted to the host.

If the cursor moves past the end of the last line, and auto wrap is on, then the action depends on the auto scroll mode. If auto scroll is off, the cursor will wrap to the first position of the line, but the display will not scroll. Otherwise, the display will scroll, and the cursor will return to the first position in the last line. Valid values for # are @A- auto wrap off auto wrap on

QTERM, the display is turned back on, and the command or character will be processed normally. If the QTERM has a backlight, and it is on when the command is received, the backlight is turned off along with the display. When the display is turned back on, the backlight is turned on if it was on when the command was processed. Anything displayed on the LCD screen when the command is processed is lost; i.e. when the display is turned back on it will be blank. Custom character definitions are not lost. The only thing the host can do that will not turn on the display is to issue the Query Status command (] W). The only reason to use this command is that it substantially reduces the power consumption of the QTERM.

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 20

10

QTERM-IV/P40 User's Manual

2.2.32 Backlight On/Off/Toggle - ] V # This command turns the backlight on and off.

This command globally enables and disables the key repeat. Which specific keys repeat is defined in the QDATA file.

Valid values for # are

2.2.38 Set Cursor Mode - ] b #

@AB- backlight off backlight on backlight toggle

2.2.33 Query Status - ] W The Query Status command (] W) returns a character indicating two things: the number of characters presently in the QTERM transmit buffer (0 to 15), and whether the display is on or off. Refer to Table 1-2 at the end of this chapter for the exact values returned for various conditions.

The QTERM cursor can be an underline cursor, a block cursor, neither or both. When neither is selected, no cursor is visible to the user. Valid values for # are @ABC- block off, underline off (no cursor) block off, underline on block on, underline off block on, underline on

2.2.39 Set Shift Mode - ] c # This is the only command which you can send to the QTERM which does not cause the display to be turned back on if the display is off when this command is received.

The shift key on the QTERM can operate in one of two ways:

2.2.34 Query Cursor Position - ] X

• FUNCTION MODE, where the shift key stays shifted

Returns the cursor position as two ASCII characters. These two characters are defined in the same way as for the Set Cursor Position (ESC I) command. See Table 1-2 for a detailed listing.

• LOCK MODE, where the shift key stays shifted until for one additional key press only

2.2.35 Query Character - ] Y Returns the character value for the character at the current cursor position. 2.2.36 Scroll Down - ] Z This causes the top three lines on the display to move down one line. The top line is cleared, and the cursor remains at the same absolute location on the display; i.e. it does not scroll down with the text. 2.2.37 Key Click/Repeat Mode - ] a # This selectively enables and disables both key repeat and key click. The key click duration and key click rate are set in the QDATA file. Valid values for # are @ABC- click off, repeat off click off, repeat on click on, repeat off click on, repeat on it is pressed a second time For either mode, the shift LED can be enabled or disabled, and, if enabled, properly reflects the state of the shift key. Valid values for # are @ABC- function mode, shift LED enabled lock mode, shift LED enabled function mode, shift LED disabled lock mode, shift LED disabled

Note that the shift LED enable/disable does not affect the shift operation itself, only the LED indicator. If you do not wish to have a shift key at all, you can disable the shift function by a parameter in the QDATA file. 2.2.40 Control dig0 and dig1 - ] d # These two digital lines can be used for general control purposes, or they can be used to drive an external buzzer or horn. Valid values for # are @AHIP- dig0 off (low) dig1 off (low) dig0 on (high) dig1 on (high) dig0 blink

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 21

QTERM-IV/P40 User's Manual QXY'a- dig1 blink dig0 buzzer dig1 buzzer dig0 toggle dig1 toggle

The blink mode blinks the line at the rate defined for LED blinking in the QDATA file. The buzzer mode causes the line to go on (high) when the internal buzzer is on, and to go off (low) when the internal buzzer is off. The toggle mode reverses the current state of the line. If the line is blinking and a toggle command is sent, the line will be toggled from its current state and will remain there (i.e., it will stop blinking).

11 Note that the EEPROM used in the QTERM has a guaranteed write endurance of 10,000 write cycles. Although this is far more than most applications will ever require, if you use this command frequently in your application, you should take this endurance into consideration. 2.2.46 Auxiliary Serial Port Control - ] j # This command is used to control the auxiliary serial port, if one is installed. The Auxiliary Port operation is mostly transparent to the QTERM: data sent to the Auxiliary Port is simply transmitted as received, and data received from theAuxiliary Port is transmitted directly to the host. The Auxiliary serial port does not support handshaking, which requires that the host interface run at 1200 baud or faster.

2.2.41 Set Buzzer Duration - ] e # The are three valid values for #: This sets the duration for a “beep” command. The beep command can either be a Bell (07h, ^G) or the Buzzer On/ Off/Beep command for beep (] O B). The valid range for # is 41h through 7Fh (“A” to DEL). See Table 1-2 for the duration set by each character. 2.2.42 Set Key Click Duration - ] f # This sets the length of the key click, which is actually a very short beep from the buzzer. The valid range for # is 41h through 7Fh (“A” to DEL). See Table 1-2 for the duration set by each character. Use the Key Click/-Repeat Mode command (] a) to disable the key click. 2.2.43 Set Key Repeat Rate - ] g #

@AB- disable receive from auxiliary port enable receive from auxiliary port transmit a string to the auxiliary port

DISABLE RECEIVE FROM AUXILIARY PORT: if # = “@”, anything which the auxiliary port receives will be ignored. ENABLE RECEIVE FROM AUXILIARY PORT: if # = “A”, anything which is received by the auxiliary port will be transmitted to the host. Bytes are transmitted exactly as received, so the host will receive the data as if the device connected to the auxiliary port was transmitting directly to the host serial port.

This sets the key repeat rate. The valid range for # is 41h through 7Fh (“A” to DEL). See Table 1-2 for the rate set by each character. See the Key Click/Repeat Mode command (] a) to globally disable key repeats. Use the QDATA file to disable key repeats for selected keys.

TRANSMIT TO AUXILIARY PORT: if # = “B”, then the host is transmitting data to the auxiliary port. The complete form of this command has this format:

2.2.44 Set LED Blink Rate - ] h # where * indicates how many bytes are to follow in the “. . . .” string.

This sets the LED blink rate and the PENDING mode LCD flash rate. The LEDs and the LCD flash at the same rate.. The valid range for # is 41h through 7Fh (“A” to DEL). See Table 1-2 for the rate set by each code. See also LEDs On/ Off/Blink (] P). See Chapter 5 for more information on PENDING mode. 2.2.45 Save Parameters to EEPROM - ] i This command causes all parameters to be stored to EEPROM. Any QDATA defaults which have been modified by software commands will be replaced by their modified values.

]jB*....

The first four characters (] j B *) are not transmitted to the auxiliary port; the “. . . .” string is transmitted without any modification. The character * must have a value of 41h through 7Fh (“A” to DEL), which indicates that the string will be from 1 byte to 63 bytes long. See Table 1-2 for a listing of values for * and the corresponding string length. As an example of using this QTERM command, consider the situation where a Hewlett-Packard SmartWand barcode reader is connected to the Auxiliary Port. To send a

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 22

12

QTERM-IV/P40 User's Manual command string to the bar code wand, assume we wish to send this string to the wand: ]-y4YFAIL (This command would tell a Hewlett-Packard SmartWand to send the string “FAIL” if a read failure occurred.) This string is nine characters long, so the exact string to transmit to the QTERM would be ]jBI]-y4YFAIL The first four characters tell the QTERM to transmit the following nine characters directly to the bar code wand. 2.2.47 Transmit Buffer Flush - ] k If the host has transmitted an XOFF to the QTERM, and the user has pressed any keys, this command will clear the buffer, so that when the host sends XON to the QTERM, there will be nothing in the buffer for the QTERM to transmit to the host. 2.2.48 XON/XOFF Mode - ] l # This command enables or disables the XON/XOFF operation of the QTERM.

where # is a character in the range of 40h to 7Fh, and indicates the number of data bytes to follow (for multidrop units, # is in the range of 41h to 47h), and “. . . .” is the corresponding number of user bytes. These bytes will be exactly what was originally stored, so they may be any 8bit value. If # = “@” (0 bytes to follow), then there was no data stored in the user area, i.e. the page is empty. WRITE DATA: to write user data, use the format: ]mA#.... where # is in the range of 41h to 7fh (“A” to DEL), and indicates that from 1 to 63 bytes of data are to follow (for multi-drop units, # is in the range of 41h to 47h). After receiving the number of bytes, the QTERM will return an ACK (06h) or a NAK (15h) to the host to indicate whether the string will fit in the current page. After the data is written to EEPROM, the QTERM sends another ACK or NAK to the host to indicate successful completion of the command. For multidrop units, the ACK or NAK is sent as a packet as soon as the write operation is complete. Refer to Table 1-2 for a complete list of values of # and the corresponding number of data bytes for both the read and write commands. 2.2.50 Get Free User Area - ] n

Valid values for # are @A- disable XON/XOFF operation enable XON/XOFF operation

If you disable XON/XOFF operation, then any keys pressed by the user will be sent to the host immediately. If the host sends data fast enough to the QTERM to fill up the receive buffer, additional characters will be ignored.

This command tells the QTERM to transmit one character to the host indicating the total size of the current page of the user area. This will always be 63 bytes (DEL character), unless you are accessing the very last available page, and it is a partial page. Note that the value returned by this command does not tell you how much more you can write to the current page, but tells you how much total you can write to the current page.

2.2.49 User Area Read/Write - ] m # This command allows you to store up to 63 bytes of your own information (such as serial numbers or parameters) in the current page of the user area of the QTERM nonvolatile EEPROM, then later read them from the terminal.

This command is primarily for compatibility with the QTERM-II (not discussed in this manual); it will have limited usefulness for the QTERM-IV and the QTERM-P40, because there are always many complete pages available. 2.2.51 User Area Page Control - ] o #

There are two valid values for #: @A- read user data write user data (followed by data)

READ DATA: if # = “@”, the QTERM will transmit the data in the current page of the user area to the host in the following format: #....

This command allows you to access multiple data pages. You can get or set the current User Area page or you can obtain the total number of User Area pages available. See section 2.1.3 for more information about memory organization. There are three valid values for #: @-

Get the number of User Area pages

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 23

QTERM-IV/P40 User's Manual AB-

Set the current User Area page Get the current User Area page

GET NUMBER OF USER AREA PAGES: This command tells the QTERM to return two ASCII characters (MSB and LSB) indicating the total number of User Area pages available. SET CURRENT USER AREA PAGE: This command sets the currently active User Area page to the value specified by ## (MSB and LSB). GET CURRENT USER PAGE: This command tells the QTERM to return two ASCII characters (MSB and LSB) indicating the currently active page number. 2.2.52 Macro String Execution - ] p # This command allows you to “execute” any of the 48 macro strings defined in the QDATA file (see Chapter 3 for more information on using the QDATA file). Since macro strings can contain commands to the QTERM, data for the host

13 and/or data for the QTERM, a single macro string can configure almost any aspect of the QTERM operation. The value of # can vary from “@” (macro 00) to “o” (macro 47). For example, the string ]pA will execute the macro string stored in the QDATA file under the “A” location. 2.2.53 Query Multidrop Buffer - ] q This command (ignored by non-multidrop units) causes the QTERM to return its multidrop buffer as the response packet. Do not send this command in the same packet with other response-generating commands, or as a part of a broadcast event. If the multidrop buffer is empty, or this command is sent to the QTERM-IV during EDIT mode, the QTERM-IV will return a Null packet.

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 24

14

QTERM-IV/P40 User's Manual Table 1-2: Command Values for ASCII Characters. Note: the column labeled “Time” refers to several commands:

-T=duration of beep -T=duration of key click -2*T=period; 1 / (2*T) = rate -2*T=period; 1 / (2*T) = rate

Set Buzzer Duration Set Key Click Duration Set Key Repeat Rate Set LED Blink Rate Set Tab Spacing (spaces)

Query & Set Cursor Position (row col)

ASCII Char

Hex Value

Decimal Value

Set Timeout Delay

@ A B

40h 41h 42h

64 65 66 disable 0:20 0:40

C D E

43h 44h 45h

67 68 69

1:00 1:20 1:40 shft 1 2 off off off on on on

3 4 5

0.15 0.20 0.25

F G H

46h 47h 48h

70 71 72

2:00 2:20 2:40

3 4 5 off off off on on on

6 7 8

0.30 0.35 0.40

I J K

49h 4Ah 4Bh

73 74 75

3:00 3:20 3:40 shft on on on on

9 10 11

0.45 0.50 0.55

L M N

4Ch 4Dh 4Eh

76 77 78

4:00 4:20 4:40

1 2 3 on on on on on on

12 13 14

0.60 0.65 0.70

O P Q

4Fh 50h 51h

79 80 81

5:00 5:20 5:40

4 5 on on on

15

.075 0.80 0.85

R S T

52h 53h 54h

82 83 84

6:00 6:20 6:40

U V W

55h 56h 57h

85 86 87

7:00 7:20 7:40

X Y Z

58h 59h 5Ah

88 89 90

8:00 8:20 8:40

[ \ ]

5Bh 5Ch 5Dh

91 92 93

9:00 9:20 9:40

^ _

`

5Eh 5Fh 60h

94 95 96

10:00 10:20 10:40 a b c

61h 62h 63h

97 98 99

11:00 11:20 11:40 disable 1 2

0 1 2

3 4 5

3 4 5

6 7 8 9 10 11

0 1 2 3

12 13 14 15 16 17 18 19

6 7 8 9 10 11 12 13 14 15 16 17 18 19

LEDs On/Off/Blink (led state)

Query Status (ds buf)

Time “T” (seconds)

on on on

0 1 2

0.05 0.10 shft 1 blink blink

0.90 0.95 1.00

2 3 4 blink blink blink

1.05 1.10 1.15

5 blink

1.20 1.25 1.30 shft 1 2 toggle toggle toggle

1.35 1.40 1.45

3 4 5 toggle toggle toggle off

0

1.50 1.55 1.60 off off off

1 2 3

1.65 1.70 1.75

Bar Code User Area String Length 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 continued

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 25

QTERM-IV/P40 User's Manual

15

Table 1-2: Command Values for ASCII Characters. Set Tab Spacing (spaces)

Query & Set Cursor Position (row col)

LEDs On/Off/Blink (led state)

Query Status (ds buf)

Time “T” (seconds)

Bar Code User Area String Length

ASCII Char

Hex Value

Decimal Value

Set Timeout Delay d e f

64h 65h 66h

100 101 102

12:00 12:20 12:40

1.80 1.85 1.90

36 37 38 g h i

67h 68h 69h

103 104 105

13:00 13:20 13:40

1.95 2.00 2.05

39 40 41 j k l

6Ah 6Bh 6Ch

106 107 108

14:00 14:20 14:40

2.10 2.15 2.20

42 43 44 m n o

6Dh 6Eh 6Fh

109 110 111

15:00 15:20 15:40

2.25 2.30 2.35

45 46 47 p q r

70h 71h 72h

112 113 114

16:00 16:20 16:40

2.40 2.45 2.50

48 49 50 s t u

73h 74h 75h

115 116 117

17:00 17:20 17:40

2.55 2.60 2.65

51 52 53 v w x

76h 77h 78h

118 119 120

18:00 18:20 18:40

2.70 2.75 2.80

54 55 56 y z {

79h 7Ah 7Bh

121 122 123

19:00 19:20 19:40

2.85 2.90 2.95

57 58 59

| } ~

7Ch 7Dh 7Eh

124 125 126

20:00 20:20 20:40

3.00 3.05 3.10

60 61 62 del

7Fh

127

21:00

3.15

63 off off off

4 5 6 off off off

7 8 9 off off off

10 11 12 off off off

13 14 15

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770

Page 26

16

QTERM-IV/P40 User's Manual

Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770