控制卡件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.