控制卡件PFSK141 3BSE006513R1的使用尺寸
參數(shù)和鍵字符串部分QDATA文件有兩個(gè)部分:頂部的參數(shù)部分,后面是底部的鍵字符串部分。您可以分配給標(biāo)識(shí)符的值類(lèi)型在每個(gè)部分中都不同。3.4.1參數(shù)部分在參數(shù)部分,您將為每個(gè)標(biāo)識(shí)符分配兩個(gè)項(xiàng)目中的一個(gè):?keywords(on,off,replace,df8n1)?numbers(13,x1F)keywords。對(duì)于您分配關(guān)鍵字的每個(gè)標(biāo)識(shí)符,允許的關(guān)鍵字列在標(biāo)識(shí)符后面的注釋中。您選擇的關(guān)鍵字必須是注釋中列出的關(guān)鍵字之一。不要在關(guān)鍵字中使用引號(hào)。數(shù)字。對(duì)于接受數(shù)字而不是關(guān)鍵字的標(biāo)識(shí)符,可以通過(guò)以下兩種方式之一指定數(shù)字:?十進(jìn)制數(shù)(49,27)?十六進(jìn)制數(shù)(x0D,x8C)這些數(shù)字始終是注釋指定范圍內(nèi)的正整數(shù)。十六進(jìn)制常量以字母“x”開(kāi)頭。十進(jìn)制和十六進(jìn)制常量是等價(jià)的;任何時(shí)候都可以使用更容易的方法。由于QTERM-II電子設(shè)備最多可支持八行六列鍵,因此有48個(gè)非移位和48個(gè)移位鍵串的標(biāo)識(shí)符,以及48個(gè)非平移和48個(gè)移動(dòng)鍵釋放串的標(biāo)識(shí)符。所有這些必須保留在文件中;但是,您將沒(méi)有理由為鍵盤(pán)上不存在的鍵指定鍵串。在key-string部分中,可以分配給鍵的值的類(lèi)型是?用單引號(hào)括起來(lái)的字符串('abcde')?十進(jìn)制數(shù)(49,27)?十六進(jìn)制數(shù)(x0D,x8C)?關(guān)鍵字(\l1on,\d0off)?以上的組合,用逗號(hào)分隔
自定義顯示字符
QTERM-II能夠顯示八個(gè)用戶定義的字符。每個(gè)字符都由一個(gè)八行五列點(diǎn)陣組成,您可以在其中指定哪些點(diǎn)是打開(kāi)的或關(guān)閉的。您還可以定義哪些代碼將導(dǎo)致QTERM-II顯示字符。您可以從00h到FFh中選擇任何8位值(代碼),07h到1Bh的值除外(參見(jiàn)附錄B中的圖表)。這允許您重新定義多達(dá)八個(gè)標(biāo)準(zhǔn)ASCII字符位模式。例如,您可以重新定義十六進(jìn)制值x62,它通常顯示“b”,以顯示一個(gè)小框(G)。每個(gè)自定義字符在QDATA文件中定義為八字節(jié)值的字符串,其中每個(gè)字節(jié)指定一行點(diǎn)的點(diǎn)模式。對(duì)于每個(gè)字節(jié),上三位設(shè)置為0,下五位對(duì)應(yīng)行上的五個(gè)點(diǎn)。如果位設(shè)置為1,點(diǎn)將變暗(開(kāi));如果位設(shè)置為0,點(diǎn)將變亮(熄滅)。串。文本字符串可以包含任何可打印的ASCII字符,并用單引號(hào)括起來(lái)。如果需要在文本字符串中包含一個(gè)單引號(hào),請(qǐng)終止字符串并將ASCII值指定為數(shù)字(x27十六進(jìn)制或29十進(jìn)制)。數(shù)字。數(shù)字始終是0到255范圍內(nèi)的正整數(shù)。十六進(jìn)制數(shù)字以字母“x”開(kāi)頭。十進(jìn)制數(shù)和十六進(jìn)制數(shù)相等;隨時(shí)使用更容易的。關(guān)鍵詞。密鑰串分配中的關(guān)鍵字有兩個(gè)用途:在密鑰串傳輸中插入暫停(延遲),以及控制LED和數(shù)字輸出。有效關(guān)鍵字的完整列表如表3-1所示。最后一個(gè)示例顯示了如何在一個(gè)關(guān)鍵字字符串賦值中組合字符串、數(shù)字和關(guān)鍵字。請(qǐng)注意,將鍵分配拆分為多行(如這里所做)是完全可以接受的。
Parameter and Key String Sections
The QDATA file has two sections: the parameter section at the top, followed by the key string section at the bottom. The types of values you can assign to the identifiers is different in each section. 3.4.1 Parameter Section In the parameter section, you will assign one of two items to each identifier: ? keywords (on, off, replace, df8n1) ? numbers (13, x1F) Keywords. For every identifier to which you assign a keyword, the keywords which are permissible are listed in a comment following the identifier. The keyword you choose must be one of those listed in the comment. Never use quotes with keywords. Numbers. For identifiers that accept numbers rather than keywords, the number can be specified in one of two ways: ? decimal numbers (49, 27) ? hexadecimal numbers (x0D, x8C) These numbers are always positive integer numbers within the range specified by the comments. Hexadecimal constants start with the letter 'x'. Decimal and hexadecimal constants are equivalent; use whichever one is easier at any time.Since the QTERM-II electronics can support up to eight rows and six columns of keys, there are identifiers for 48 unshifted and 48 shifted key strings, as well as identifiers for 48 unshifted and 48 shifted key release strings. All of these must remain in the file; however, you will have no reason to assign key strings to keys that do not exist on your keypad. In the key string section the type of values you can assign to a key are ?strings enclosed in single quotes ('abcde') ? decimal numbers (49, 27) ? hexadecimal numbers (x0D, x8C) ? keywords (\l1on, \d0off) ? a combination of the above, separated by commas
Custom Display Characters
The QTERM-II is capable of displaying eight user-defined characters. Each of these characters consists of an eight row by five column dot matrix, where you specify which of the dots are on or off. You also define what code will cause the character to be displayed by the QTERM-II. You may choose any 8-bit value (code) from 00h through FFh, except values from 07h through 1Bh (see Appendix B for a chart of this). This allows you to redefine up to eight of the standard ASCII character bit patterns. For example, you could redefine the hex value x62, which normally displays a 'b', to display a small box (G). Each custom character is defined in the QDATA file as a string of eight byte values, where each byte specifies the dot pattern for one row of dots. For each byte, the upper three bits are set to 0 and the lower five bits correspond to the five dots on the row. If a bit is set to 1, the dot will be dark (on); if the bit is set to 0, the dot will be light (off). Strings. Text strings can contain any printable ASCII characters and are enclosed in single quotes. If you need to include a single quote in your text string, terminate the string and specify the ASCII value as a number (x27 hexadecimal or 29 decimal). Numbers. Numbers are always positive integer numbers within the range 0 to 255. Hexadecimal numbers start with the letter 'x'. Decimal and hexadecimal numbers are equivalent; use whichever one is easier at any time.Keywords. Keywords in key string assignments serve two purposes: inserting pauses (delays) in the transmission of a key string and controlling LEDs and digital outputs. A complete list of valid keywords is shown in Table 3-1.The final example shows how to combine strings, numbers and keywords on one key string assignment. Note the splitting the key assignment onto multiple lines (as done here) is perfectly acceptable.