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 2 of 4

QTERM-J10/N15 User's Manual, pages 10 to 18

Pages 10 to 18 of 34

The original document is the PDF (766 KB). 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 N15, Beijer QTerm N15 and QSI Corp QTerm-J10

Page 10

2

QTERM-J10/N15 User's Manual

Table 1-1. QTERM Pin Assignments. 6-pin Modular Connector

DB9 Female

Panel-Mount 6 x 1 2 mm Pin

QTERM EIA-232 Function

QTERM EIA-422 Function

1

3

1 receive

+receive

2

6

2 no connection

-receive

3

2

3 transmit

+transmit

4

1

4 no connection

-transmit

5

9

5 power power

6

5

6 ground ground

1.3

Apply Power

Table 1-1 shows the pin assignments for the power and ground lines. Connect your DC power supply to the appropriate two pins. WARNING: Power supplied to the QTERM must be from an SELV power source, and should have a current limit on its output of 5 Amperes. If you did not order the regulator option, the supply to the QTERM must provide a minimum of 4.75 volts DC and be limited to a maximum of 5.25 volts DC. If you did order the regulator option, the supply to the QTERM must provide a minimum of 7.5 volts DC and be limited to a maximum of 24 volts DC. Limiting may be inherent to the supply, or may be provided by supplementary overcurrent devices.

!

If the QTERM does not respond, or exhibits abnormal behavior on power up, disconnect power and contact QSI for technical support.

1.4

Communicate

At this point, characters which are transmitted by the host will be displayed on the QTERM display. If you press keys on the keypad, the QTERM will transmit the appropriate codes to the host computer. Any software commands sent by the host will be processed by the QTERM.

1.5

Running JDEMO

To demonstrate some of the features of the QTERM, run the JDEMO program included with this users manual: ! Connect your QTERM to the serial COM port on an IBM-style PC. (If you have an EIA-422 QTERM, you will need to provide an interface unit such as QSI’s QCOM-2; you cannot directly connect an EIA-422 QTERM to the COM port on an IBM-style computer!) ! Copy the file JDEMO.EXE to your hard disk. ! Apply power to the QTERM. ! Run the JDEMO program. ! Follow the on-screen instructions to demonstrate the use of some of the features of the QTERM terminal. JDEMO will allow you to exercise many of the features of the QTERM. It includes a terminal emulator so that you can also communicate directly with the terminal.

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 11

CHAPTER 2. QTERM SOFTWARE 2.1

Operation only has eight bytes used, it will send an XON, and the host can resume transmitting.

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 to the host. The QTERM has many additional capabilities which are accessed using software commands from the host which are described in this chapter. 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 (20 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 (13h). The QTERM starts placing characters into the transmit buffer rather than transmitting them. When the host is ready to receive characters, it sends an XON character (11h), at which time the QTERM will start transmitting the characters in the buffer. The QTERM's receive buffer is large enough to accept a maximum of 32 characters or software commands without overrunning the buffer. However, some operations can take a longer time to execute, such as scrolling the entire screen up one line. In this case, the QTERM will send an XOFF to the host when it has only eight bytes empty in its buffer. When it has processed input data to the point that the buffer

XON/XOFF handshaking can also be disabled (by software command) 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. Default Parameters

There are numerous parameters which can be changed by software commands. For example, key repeat can be disabled by the Key Repeat/ Click On/Off command. Once a parameter has been changed by a software command, it does not get stored in EEPROM; therefore, when power is turned off, the new value is lost and when the terminal is turned on again, the default parameter value is re-loaded. If you wish to have the parameter value permanently stored and used at power up, you can use the Save Configuration to EEPROM command. This saves all currently-set parameters to the EEPROM, which makes them the current power-on defaults. If you wish to return to the factorydefault settings for all parameters, you can use the Restore Factory Defaults command. This will reset all parameters (except baud rate and data format) to a pre-defined default value, and also store these values in EEPROM as the current power-on defaults.

2.2

Software Commands

Once you have your host communicating with your QTERM, 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.

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 12

4

QTERM-J10/N15 User's Manual

Table 2-1. QTERM-J10 and QTERM-N15 Software Commands. Command

Code

Command

Code

Bell (^G)

07h

Query Version

]N

Backspace (^H)

08h

Buzzer On/Off/Beep

]O

Horizontal Tab (^I)

09h

Auto Wrap Mode

]R

Line Feed (^J)

0Ah

Auto Scroll Mode

]S

Vertical Tab (^K)

0Bh

Auto Line Feed Mode

]T

Form Feed (^L)

0Ch

Display Backlight On/Off/Toggle

]V

Carriage Return (^M)

0Dh

Query Status

]W

XON (DC1 or ^Q)

11h

Query Cursor Position

]X

XOFF (DC3 or ^S)

13h

Query Character

]Y

Delete

7Fh

Key Repeat/Click Mode

]a

Cursor Up

]A

Set Cursor Mode

]b

Cursor Down

]B

Set Shift Mode

]c

Cursor Right

]C

Save Config to EEPROM

]i

Cursor Left

]D

Transmit Buffer Flush

]k

Clear Screen

]E

XON/XOFF Mode

]l

Cursor Home

]H

User Area Read/Write

]m

Set Cursor Position

]I

Restore Default Parameters

]r

Erase to End of Screen

]J

Verify MID Code

]u

Erase to End of Line

]K

VFD Display Intensity

]w

Set Contrast

]L

Power-On Setup Mode

]x

Reset Terminal

]M

The notation ] in this chapter always means the one-byte ASCII escape character (1Bh = 27 decimal).

also the Delete command (7Fh). 2.2.3

Be sure to read the file READ.ME on your distribution disk for any late changes to this manual. 2.2.1

Bell (^G) - 07h

This causes the buzzer to beep for one-half second. Note that sending this command is identical to sending the Buzzer On/Off/Beep command (ESC O B). 2.2.2

Horizontal Tab (^I) - 09h

Moves the cursor right to the next tab column. The tab spacing is every four columns.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.

Backspace (^H) - 08h 2.2.4

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

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.

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 13

QTERM-J10/N15 User's Manual 2.2.5

Vertical Tab (^K) - 0Bh

Performs the same function as Line Feed. 2.2.6

Form Feed (^L) - 0Ch

5 2.2.13 Cursor Right - ] C Moves the cursor right one space without changing its vertical position. Has no effect if the cursor is at the right-most position on the current line.

Performs the same function as Line Feed.

2.2.14 Cursor Left - ] D

2.2.7

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

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

XON (^Q) - 11h

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

XOFF (^S) - 13h

Disables all QTERM transmission except for information requested via the Query Status command (ESC 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.15 Clear Screen - ] E Clears the display and moves the display cursor to home (the left-most position in the top line of the display). 2.2.16 Cursor Home - ] H Moves the cursor to home (top left) position on the display. 2.2.17 Set Cursor Position - ] I # * Positions the cursor to the specified location. The command has the form ] I # *, where # sets the row and * sets the column. For example, the string: ]IBD sets the cursor to row 2 (third row) and column 4 (fifth column). See Table 2-2 for a complete list of valid codes and cursor positions. (Note that rows are numbered 0 to 3, starting at the top, and columns are numbered 0 to 19, starting at the left.)

2.2.10 Delete - 7Fh 2.2.18 Erase to End of Screen - ] J Delete works in the same way as Backspace (08h, ^H), except that characters are erased as the cursor moves over them.

Erases from the current cursor position to the end of the screen. The cursor position is unchanged.

2.2.11 Cursor Up - ] A

2.2.19 Erase to End of Line - ] K

Moves the cursor up one line without changing its horizontal position. Has no effect if the cursor is on the first line.

Erases all displayed characters from the current cursor position to the end of the line. The cursor position is unchanged.

2.2.12 Cursor Down - ] B

2.2.20 Set Contrast - ] L #

Moves the cursor down one line without changing its horizontal position. Has no effect if the cursor is on the last line.

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.

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 14

6

QTERM-J10/N15 User's Manual

2.2.21 Reset Terminal - ] 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 default configuration.

@ - auto scroll off A - auto scroll on

Table 2-2. Cursor Position and Query Status Characters.

2.2.22 Query Version - ] N

Query & Set Cursor Position (row col)

Query Status (chars)

ASCII Char

Hex Value

Decimal Value

@

40h

64

0

0

0

A

41h

65

1

1

1

B

42h

66

2

2

2

C

43h

67

3

3

3

D

44h

68

4

4

E

45h

69

5

5

F

46h

70

6

6

G

47h

71

7

7

The fixed duration beep command (ESC O B) is identical to sending a Bell command (07h, ^G).

H

48h

72

8

8

I

49h

73

9

9

2.2.24 Auto Wrap Mode - ] R #

J

4Ah

74

10

10

K

4Bh

75

11

11

L

4Ch

76

12

12

M

4Dh

77

13

13

N

4Eh

78

14

14

O

4Fh

79

15

15

P

50h

80

16

16

Q

51h

81

17

17

R

52h

82

18

18

S

53h

83

19

19

T

54h

84

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.23 Buzzer On/Off/Beep - ] O # This command controls the buzzer. It has the form ] O #, where # is: @ - turn buzzer off A - turn buzzer on B - beep for ½ second

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 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: @ - auto wrap off A - auto wrap on 2.2.25 Auto Scroll Mode - ] S # 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. every lines moves up, and the last line becomes blank), and the cursor moves to the first position in the last line. Valid values for # are:

20

2.2.26 Auto Line Feed Mode - ] T # 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 linefeed had been received. Valid values for # are: @ - auto line feed off A - auto line feed on

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 15

QTERM-J10/N15 User's Manual 2.2.27 Backlight On/Off/Toggle - ] V # This command turns the backlight on and off. Valid values for # are: @ - backlight off A - backlight on B- backlight toggle

7 @ - block off, underline off (no cursor) A - block off, underline on B - block on, underline off C - block on, underline on 2.2.33 Set Shift Mode - ] c # The shift key on the QTERM can operate in one of two ways:

2.2.28 Query Status - ] W The Query Status command (]W) returns a character indicating the number of characters presently in the QTERMJ10 transmit buffer (0 to 20). Table 2-2 shows what character is returned for each number of characters in the transmit buffer. 2.2.29 Query Cursor Position - ] X Returns the cursor position as two ASCII characters. These two characters are defined in the same way as for the Set Cursor Position (] I) command. See Table 2-2 for a detailed listing.

2.2.30 Query Character - ] Y Returns the character value for the character at the current cursor position.

2.2.31 Key Click/Repeat Mode - ] a # This selectively enables and disables both key repeat and key click. Valid values for # are: @ - click off, repeat off A - click off, repeat on B - click on, repeat off C - click on, repeat on Key beeps are 50 ms long; the key repeat rate is ten per second.

2.2.32 Set Cursor Mode - ] b # 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:

! FUNCTION MODE, where the shift key stays shifted for one additional key press only ! LOCK MODE, where the shift key stays shifted until it is pressed a second time To indicate shift status, the cursor will change to a blinking block when shifted, and go back to current cursor status when not shifted. For either mode, this indicator can be enabled or disabled, and, if enabled, properly reflects the state of the shift key. Valid values for # are: @ - function mode, shift indicator enabled A - lock mode, shift indicator enabled B - function mode, shift indicator disabled C - lock mode, shift indicator disabled Note that the shift indicator does not affect the shift operation itself, only the status indicator. Also note that any time you are using the blinking block cursor, the shift indicator will not be available. 2.2.34 Save Configuration to EEPROM - ] i This command causes all parameter values to be stored to EEPROM. Any existing parameter values in the EEPROM will be overwritten. 2.2.35 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.36 XON/XOFF Mode - ] l # This command enables or disables the XON/XOFF operation of the QTERM. The valid values for # are:

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 16

8

QTERM-J10/N15 User's Manual @ - disable XON/XOFF operation A - 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. 2.2.37 User Area Read/Write - ] m # This command allows you to store your own information (such as serial numbers or parameters) in the QTERM nonvolatile EEPROM, then later read them from the terminal. There are two valid values for #: @ - read user data A - write user data (followed by data) The QTERM can store a maximum of 16 bytes in the user data area. READ DATA: if # = '@', the QTERM will transmit the data in the user area to the host in the following format: #.... where # is a character in the range of 40h to 50h, and indicates that 0 to 16 bytes of user data will follow, and '. . . .' is the corresponding number of user bytes. These bytes will be exactly what was originally stored, so they may be any 8-bit value. If # = '@' (0 bytes to follow), then there was no data stored in the user area. WRITE DATA: to write user data, use the format: ]mA#....

The only reason that the data would not be stored properly is if there was a hardware failure. 2.2.38 Restore Default Parameters - ] r This command will load a set of factory-default values for all parameters (except baud rate and data format) into memory, and write them to EEPROM making them the current power-up settings (see section 2.3 for a list of the factory defaults). 2.2.39 Verify Manufacturer ID Code - ] u # * This command is used to verify the Manufacturer ID (MID) Code which is pre-programmed into the terminal at the factory. # and * can be any two bytes. When ordering a QTERM from the factory, the customer is given the option to use this feature and will be assigned a two byte MID code. When this command is sent, along with two bytes, the terminal will compare them to its internally stored byte pair, and respond with one of the following: 06h - Acknowledge character (ACK), MID Code match. 15h - Negative Acknowledge character (NAK), MID Code does not match. 2.2.40 VFD Display Intensity - ] w # This command is only applicable to terminals configured with the optional VFD display. There are four valid values for #: @ - for display intensity 100% A - for display intensity 75% B - for display intensity 50% C - for display intensity 25% 2.2.41 Power-On Setup Mode - ] x * where # is in the range of 41h to 50h ('A' to ‘P’), and indicates that from 1 to 16 bytes of data are to follow, and '. . . .' are the data bytes to be stored. These data bytes may be any 8-bit value. After the entire string has been received, the QTERM will respond by transmitting one character to the host: 06h - Acknowledge character (ACK), data stored properly 15h - Negative Acknowledge character (NAK), data not stored

This command can be used to enable or disable the poweron setup feature. In some cases, it may be desirable to disable the power-on setup in order to protect the current baud rate and data format settings from being changed by the user. Valid values for # are: @ -fully enable power-on setup A -allow contrast adjustment, but do not allow baud rate and data format adjustment. B -disable entire power-on setup

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 17

QTERM-J10/N15 User's Manual 2.3

Default Configuration

The default configuration of the QTERM-J10 and the QTERM-N15 is as follows: ! ! ! !

operates at 9600 baud, 8 data bits, 1 stop bit, no parity contrast is set to optimal for a 90° viewing angle auto wrap is on auto scroll is on

9 ! ! ! ! ! ! ! ! !

auto line feed is on key click is on key repeat is enabled cursor is a line XON/XOFF is enabled power-on setup is fully enabled shift mode is “lock” backlight is off shift indicator is on

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770

Page 18

10

QTERM-J10/N15 User's Manual

QSI Corporation • Fax 801-466-8792 • www.qsicorp.com • Phone 801-466-8770