background image

10

QTERM-IV/P40 User's Manual

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

2.2.32

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

2.2.33

Query Status - 

]

 W

The Query Status command (

]

 W) returns a character indi-

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

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.

2.2.34

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
 (ESC I) command. See Table 1-2 for a 
detailed listing.

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

@ -

 click off, repeat off

A -

 click off, repeat on

B -

 click on, repeat off

C -

 click on, repeat on

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

2.2.38

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

@ -

 block off, underline off (no cursor)

A -

 block off, underline on

B -

 block on, underline off

C -

 block on, underline on

2.2.39

Set Shift Mode - 

]

 c #

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

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

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

@ -

 function mode, shift LED enabled

A -

 lock mode, shift LED enabled

B -

 function mode, shift LED disabled

C -

 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 pur-
poses, or they can be used to drive an external buzzer or 
horn. 

Valid values for # are

@ -

 dig0 off (low)

A -

 dig1 off (low)

H -

 dig0 on (high)

I -

 dig1 on (high)

P -

 dig0 blink

Содержание 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...

Отзывы: