控制卡件PFSK141 3BSE006513R1的使用尺寸
參數和鍵字符串部分QDATA文件有兩個部分:頂部的參數部分,后面是底部的鍵字符串部分。您可以分配給標識符的值類型在每個部分中都不同。3.4.1參數部分在參數部分,您將為每個標識符分配兩個項目中的一個:?keywords(on,off,replace,df8n1)?numbers(13,x1F)keywords。對于您分配關鍵字的每個標識符,允許的關鍵字列在標識符后面的注釋中。您選擇的關鍵字必須是注釋中列出的關鍵字之一。不要在關鍵字中使用引號。數字。對于接受數字而不是關鍵字的標識符,可以通過以下兩種方式之一指定數字:?十進制數(49,27)?十六進制數(x0D,x8C)這些數字始終是注釋指定范圍內的正整數。十六進制常量以字母“x”開頭。十進制和十六進制常量是等價的;任何時候都可以使用更容易的方法。由于QTERM-II電子設備最多可支持八行六列鍵,因此有48個非移位和48個移位鍵串的標識符,以及48個非平移和48個移動鍵釋放串的標識符。所有這些必須保留在文件中;但是,您將沒有理由為鍵盤上不存在的鍵指定鍵串。在key-string部分中,可以分配給鍵的值的類型是?用單引號括起來的字符串('abcde')?十進制數(49,27)?十六進制數(x0D,x8C)?關鍵字(\l1on,\d0off)?以上的組合,用逗號分隔
自定義顯示字符
QTERM-II能夠顯示八個用戶定義的字符。每個字符都由一個八行五列點陣組成,您可以在其中指定哪些點是打開的或關閉的。您還可以定義哪些代碼將導致QTERM-II顯示字符。您可以從00h到FFh中選擇任何8位值(代碼),07h到1Bh的值除外(參見附錄B中的圖表)。這允許您重新定義多達八個標準ASCII字符位模式。例如,您可以重新定義十六進制值x62,它通常顯示“b”,以顯示一個小框(G)。每個自定義字符在QDATA文件中定義為八字節值的字符串,其中每個字節指定一行點的點模式。對于每個字節,上三位設置為0,下五位對應行上的五個點。如果位設置為1,點將變暗(開);如果位設置為0,點將變亮(熄滅)。串。文本字符串可以包含任何可打印的ASCII字符,并用單引號括起來。如果需要在文本字符串中包含一個單引號,請終止字符串并將ASCII值指定為數字(x27十六進制或29十進制)。數字。數字始終是0到255范圍內的正整數。十六進制數字以字母“x”開頭。十進制數和十六進制數相等;隨時使用更容易的。關鍵詞。密鑰串分配中的關鍵字有兩個用途:在密鑰串傳輸中插入暫停(延遲),以及控制LED和數字輸出。有效關鍵字的完整列表如表3-1所示。最后一個示例顯示了如何在一個關鍵字字符串賦值中組合字符串、數字和關鍵字。請注意,將鍵分配拆分為多行(如這里所做)是完全可以接受的。
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.