background image

26

QTERM-IV/P40 User's Manual

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

The QTERM automatically sends the EOP Terminator at 
the end of all Response Packets it returns to the host.

RESPONSE PACKET
Data Packet automatically returned by the QTERM after 
it receives a complete transmission from the host. The 
Response Packet's data portion can consist of nothing (a 
NULL packet), data returned in response to a query com-
mand or an acknowledgment byte. The Response Packet is 
always terminated with an EOP Terminator.

IDLE MODE
The operating mode of the QTERM anytime it is neither 
processing strings nor receiving data from the host.

EDIT MODE
The operating mode in which string data is entered into an 
LCD buffer and edited prior to transmission to host.

4.3.1

Receiving Data from the Host

If the QTERM is in IDLE, and the host begins a transmis-
sion, the QTERM will only process data coming from the 
host
 until the EOP Terminator is received; keystrokes will 
be buffered but not processed. While receiving the incom-
ing packet from the host, the incoming data is displayed 
and incoming commands are executed as they are received.

Upon receiving the EOP Terminator from the host, the 
QTERM will send a response packet, process any buffered 
keystrokes, and revert to IDLE to await the next event.

4.3.2

Response Packets

The QTERM always returns a response packet after receiv-
ing a host packet (unless ACK/NAK responses are dis-
abled; see below). The data portion of the response packet 
will always consist of one of the following: nothing (a Null 
Packet), query data (in answer to a query command sent by 
the host), or either an ACK (ASCII 06h) or NAK (ASCII 
15h) character. Response packets are always automatically 
terminated by the EOP character.

Null Packets are only returned in response to a Query 
Buffer command; this command is not useful in Block 
Mode since the EDIT Buffer never needs to be queried. 
Other types of query commands sent by the host will cause 
the QTERM to return data. 

If the QTERM receives a command from the host which 
requires that the QTERM return data to the host, i.e. a 
Query Cursor Position command etc., the requested data 
will be sent in lieu of any acknowledgment byte.

Acknowledgment bytes are only returned if nothing in the 
incoming host packet requires the QTERM to return query 
data. For example, if the host sends a packet containing 
only display data to the QTERM, the data portion of the 
QTERM response packet will contain only an ASCII ACK 
or NAK acknowledgement byte. If instead, the host sends 
display data and a Query Cursor Position command, the 
QTERM response packet will contain the current cursor 
position only without an acknowledgement byte.

The only acknowledgement bytes are ACK (ASCII 06h) or 
NAK (ASCII 15h) character to indicate that the QTERM 
received the host's transmission without error or that the 
QTERM was busy and ignored the host transmission, 
respectively. Automatic transmission of response packets 
containing acknowledgement bytes may be disabled, if nec-
essary, by the [MD/Block response mode] field in the 
QDATA file.

4.3.3

Transmitting Data to the Host and the Opera-

tion of EDIT Mode

The host data portion of a string is not sent immediately to 
the host when the string is executed. Instead, host data is 
buffered on the display in a special area called the EDIT 
buffer. The EDIT buffer position is variable and is reset 
each time the QTERM receives a packet from the host. At 
the termination of an incoming packet, the start of the EDIT 
buffer is relocated to the last cursor position. The EDIT 
buffer always extends to the end of the same line on which 
it started.

If a key is pressed while the QTERM is in IDLE, or if there 
are buffered keystrokes waiting to be handled after the 
QTERM received a packet, or some other string has been 
triggered (i.e. Timeout string, Autoexec string etc.) the 
QTERM enters EDIT mode.

While in EDIT mode, the host data portion of executed 
strings will be entered into the EDIT buffer up to the end of 
the buffer. Keys may be defined using certain commands as 
edit keys (described below) with which to modify the data 
in the EDIT buffer prior to transmission. While in EDIT 
mode, incoming packets from the host will not be pro-
cessed (with a few exceptions noted below) but will gener-
ate a response packet containing a NAK acknowledgement 
indicating to the host that the packet was not processed.

Keystrings will continue to be appended to the EDIT buffer 
until the EOP Terminator is encountered in the current 
string definition or until the user hits a key defined with the 
EOP character. When the EOP character is encountered, the 
entire EDIT buffer is sent to the host, the cursor is returned 
to the start of the EDIT buffer, EDIT mode is terminated 
and the QTERM returns to IDLE. Because of this, you must 

Содержание QTERM-IV

Страница 1: ...UAL REVISION 10 BEIJER ELECTRONICS 2212 South West Temple 50 Salt Lake City Utah 84115 2648 USA Phone 801 466 8770 Fax 801 466 8792 Email info beijerelectronicsinc com Web http www beijerelectronicsin...

Страница 2: ...s Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770 9241E2 Printed in USA Copyright Beijer Electronics 2011 QTERM QTERM IV QTERM P40 QCODE QDATA QSETUP and QDEMO are trademarks of B...

Страница 3: ...limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio freque...

Страница 4: ...iv QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 5: ...art If you wish to start using your QTERM immediately this chapter will show you how to con nect to the terminal and how to run the example software Chapter 2 QTERM Software This chapter provides a de...

Страница 6: ...8 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 7: ...r Up A 7 2 2 12 Cursor Down B 7 2 2 13 Cursor Right C 7 2 2 14 Cursor Left D 7 2 2 15 Clear Screen E 7 2 2 16 Set Timeout Delay F 7 2 2 17 Set Tab Spacing G 8 2 2 18 Cursor Home H 8 2 2 19 Set Cursor...

Страница 8: ...QDATA File Concepts 20 3 5 1 String Terminology 20 3 5 2 String Concepts 21 3 5 3 String Definitions 21 3 5 4 String Examples 22 3 6 Custom Display Characters 22 CHAPTER 4 QTERM SERIAL MODES 25 4 1 S...

Страница 9: ...5 7 The EEPROM Disable Jumper 37 5 5 8 Adding Another PC Board 37 5 6 QTERM IV Specifications 37 CHAPTER 6 QTERM P40 HARDWARE 41 6 1 Panel Mount QTERM P40 41 6 2 Interfaces 41 6 2 1 EIA 232 Interface...

Страница 10: ...12 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 11: ...up follow these steps Hold down any key and apply power to the QTERM you do not need to connect the transmit and receive lines The version of software in the QTERM will be dis played as long as you ho...

Страница 12: ...do not need to connect a power supply just install six alkaline AA batter ies in the battery compartment 1 4 Communicate At this point characters which are transmitted by the host will be displayed o...

Страница 13: ...hen a key is pressed or to mod ify the eight custom characters is by modifying and downloading the QDATA file Chapter 3 shows how to modify this file and how to load it into your QTERM There are also...

Страница 14: ...4 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 15: ...ill 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 r...

Страница 16: ...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 n...

Страница 17: ...oves 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 car...

Страница 18: ...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...

Страница 19: ...croll 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 29 Auto Scroll Mode S Auto scroll mode determines what happens when the cu...

Страница 20: ...ey click The key click duration and key click rate are set in the QDATA file Valid values for are click off repeat off A click off repeat on B click on repeat off C click on repeat on This command glo...

Страница 21: ...QDATA defaults which have been modi fied by software commands will be replaced by their modi fied values Note that the EEPROM used in the QTERM has a guaran teed write endurance of 10 000 write cycles...

Страница 22: ...n the range of 41h to 47h and is the cor responding 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 da...

Страница 23: ...s 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 hos...

Страница 24: ...62h 63h 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 disable 0 20 0 40 1 00 1 20 1 40 2 00 2 20 2 40 3 00 3 20 3 40 4 00 4 20 4 40 5 00...

Страница 25: ...79h 7Ah 7Bh 7Ch 7Dh 7Eh 7Fh 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 12 00 12 20 12 40 13 00 13 20 13 40 14 00 14 20 14 40 15 00...

Страница 26: ...16 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 27: ...t ware version represented by Version x y For example QDATA24 V21 would be the QDATA file for a 24 key QTERM with version 2 1 QCODE You will only need to use the QDATA file that matches the hardware o...

Страница 28: ...comments in it The retrieved file will have exactly one identifier per line so it will have many more lines than the default QDATA file which puts several identifiers on one line in the key sections S...

Страница 29: ...hese numbers are always positive integer numbers within the range specified by the comments Hexadecimal con stants start with the letter x Decimal and hexadecimal constants are equivalent use whicheve...

Страница 30: ...Macros and Event Triggered Strings This is the last section of the QDATA file and contains macro strings and strings that get executed according to certain events The following section explains these...

Страница 31: ...and of string execution apply to all references to strings on the QTERM key strings executed when a key is pressed key release strings executed when a key is released macro strings executed when a th...

Страница 32: ...follows k00 Entering Menu L 27 p If the user presses this key which we might want labeled MENU on the graphic overlay the QTERM will send the string Entering Menu to the host and then execute Macro 00...

Страница 33: ...r Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770 Default dot patterns and character assignments for all eight custom characters are shown in the chart in Appendix B F...

Страница 34: ...24 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 35: ...ior to trans mission without host intervention In Block Mode all communication between the Host and the QTERM is done with data packets A valid Block Mode data packet consists of a data portion follow...

Страница 36: ...equires the QTERM to return query data For example if the host sends a packet containing only display data to the QTERM the data portion of the QTERM response packet will contain only an ASCII ACK or...

Страница 37: ...TX buffer k Backspace Delete and Cursor Left will only move the cur sor left to the start of the EDIT buffer Home Cursor homes the cursor to the start of the EDIT buffer and Flush TX Buffer clears the...

Страница 38: ...as a command to accept a speed param eter Then the default EOP Terminator x0D is encountered so sp is sent to the host Remember the prefix is sent to the host in a packet which is terminated by the E...

Страница 39: ...ep tion of the last byte of an incoming packet to when the ter minal switches on its transmitter to send a response packet This time is programmable on the QTERM via a setting in the QDATA file BROADC...

Страница 40: ...byte Unit Address Each QTERM attached to a multidrop net work must have a unique address from 01 to 99 This address can be set either during power on setup or by a QDATA download To send a packet to...

Страница 41: ...and The host must send a packet containing the Query Buffer command to receive the contents of the QTERM s EDIT buffer When the QTERM receives the Query Buffer command its EDIT buffer will be transmit...

Страница 42: ...32 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 43: ...switched from one end of the housing to the other The pin assignments for the connectors for each of the available interfaces are shown in Table 5 1 The lines dig0 and dig1 are discussed in section 5...

Страница 44: ...mount QTERM IV connector are shown in Table 5 1 the lines dig0 and dig1 are discussed in section 5 5 3 The connector pin numbering is shown in Figure 5 3 5 4 Interfaces 5 4 1 EIA 232 Interface With pr...

Страница 45: ...s can be displayed Hosts which transmit 8 bit data can also display an additional 64 characters including Greek letters katakana characters non English alphabetic characters and math symbols Appendix...

Страница 46: ...ion due to lack of connector pins Software commands can be used to set these lines high or low or to have one or both function as an external buzzer or horn signal Both lines are 74HC bus driver outpu...

Страница 47: ...t want the EEPROM to be modified under any conditions move this jumper from the enable to the disable position This will prevent any writes to the EEPROM including downloading of QCODE or QDATA files...

Страница 48: ...nge 20 to 70 C Storage temperature all components 40 to 85 C Maximum humidity range all components 0 to 95 non condensing Operating voltage range without regulator option 4 8 to 5 5 volts Operating vo...

Страница 49: ...s COM Ports with DB25 Male Connectors COM Ports with DB9 Male Connectors Pin Function Pin Function 2 PC transmit 1 CD 3 PC receive 2 PC receive 5 CTS 3 PC transmit 6 DSR 5 ground 7 ground 6 DSR 8 CD 8...

Страница 50: ...40 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 51: ...ached before inserting the termi nal into the panel Once the brackets have been installed the terminal is inserted into the panel and the brackets are slid outward Then the screws are tightened and th...

Страница 52: ...the resistor is to be soldered in Do not attempt to remove the PC board from the case For volume orders Beijer Electronics can supply the QTERM IV with this resistor installed 6 2 3 5 volt Buffered In...

Страница 53: ...value it can receive Note that the ASCII portion of the chart the first 128 characters is similar but not identical to the true ASCII chart shown in Appendix A 6 3 2 Keypad The lower right key on both...

Страница 54: ...n The QTERM P40 has a built in 5 volt regulator This allows the QTERM P40 to be operated from a 5 5 to a 24 volt SELV DC source The power supply should have a current limit on its output of 5 Amperes...

Страница 55: ...Specifications Table 6 3 lists various specifications for the QTERM P40 Note that all components of the QTERM P40 other than the display will operate over the industrial temperature range of 40 to 85...

Страница 56: ...46 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 57: ...DIX A ASCI ICHART NUL blank SOH start of header STX start of text ETX end of text EOT end of transmission ENQ enquiry ACK acknowledge BEL bell BS backspace HT horizontal tab LF line feed VT vertical t...

Страница 58: ...48 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Страница 59: ...igned are defined in the QDATA file see Chapter 3 The following restrictions apply to assigning the codes Custom characters may not be mapped to any code from 07h through 1Bh inclusive This includes t...

Страница 60: ...3 4 2 1 0 3 0 1 2 4 5 6 A 7 8 9 B C D F E 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 Notes and are on the previous page 50 QTERM IV P40 User s M...

Страница 61: ...so it is impossible to give exact figures Command String Timing ms Notes Parameters display character 0 7 14 0 37 0 typical in replace mode typical in insert mode worst case in insert mode Bell G 07H...

Страница 62: ...l On Off Blink Toggle P 1 2 to U see Table 1 2 Insert Replace Mode Q 1 2 set replace mode A set insert mode Auto Wrap Mode R 1 2 auto wrap off A auto wrap on Auto Scroll Mode S 1 2 auto scroll off A a...

Страница 63: ...Set LED Blink Rate h 1 2 see Table 1 2 Save Parameters to EEPROM i 6 0 see note in section 2 2 45 Auxiliary Port Control j 1 2 1 2 disable receive from Auxiliary Port A enable receive from Auxiliary...

Страница 64: ...54 QTERM IV P40 User s Manual Beijer Electronics Fax 801 466 8792 Web www beijerelectronicsinc com Phone 801 466 8770...

Отзывы: