論脈沖計數(shù)板DSDP140B 57160001-ACX的使用方法
XON/XOFF模式-ESC l
此命令啟用或禁用QTERM-II的XON/XOFF操作。#的有效值為@-disable XON/XOFF operation A-enable XON/XOFF operations如果禁用XON/X-OFF操作,則用戶按下的任何鍵都將立即發(fā)送到主機。如果主機以足夠快的速度向QTERM-II發(fā)送數(shù)據(jù)以填滿接收緩沖區(qū),則會忽略其他字符。2.2.49用戶區(qū)域讀/寫-ESC m#此命令允許您在QTERM-II非易失性EEPROM中存儲多達63字節(jié)的自己的信息(如序列號或參數(shù)),然后從終端讀取。#有兩個有效值:@-讀取用戶數(shù)據(jù)A-寫入用戶數(shù)據(jù)(后跟數(shù)據(jù))read data:如果#=“@”,QTERM-II將以以下格式將用戶區(qū)域中的數(shù)據(jù)傳輸?shù)街鳈C:#….其中#是40h到7Fh范圍內(nèi)的字符,表示后面將跟隨0到63字節(jié)的用戶數(shù)據(jù),以及“….”是相應(yīng)的用戶字節(jié)數(shù)。這些字節(jié)將與最初存儲的字節(jié)完全相同,因此它們可以是任何8位值。如果#=“@”(后面是0字節(jié)),則用戶區(qū)域中沒有存儲數(shù)據(jù)。寫入數(shù)據(jù):要寫入用戶數(shù)據(jù),請使用以下格式:ESC m A#….其中#在41h到7fh('A'到DEL)的范圍內(nèi),并指示后面是1到63字節(jié)的數(shù)據(jù),以及“….”是要存儲的數(shù)據(jù)字節(jié)。這些數(shù)據(jù)字節(jié)可以是任何8位值。收到整個字符串后,QTERM-II將通過向主機發(fā)送一個字符進行響應(yīng):06h-確認字符(ACK),數(shù)據(jù)存儲屬性15h-否定確認字符(NAK),未存儲數(shù)據(jù)
使用QDATA文件
3.1 QDATA文件QDATA用于配置終端。您可能有三個原因需要使用QDATA文件:?您希望更改按鍵被按下時發(fā)送的內(nèi)容,或設(shè)計自己的顯示字符(這必須使用QDATA文件完成)。?您想更改一些其他默認設(shè)置(如蜂鳴音長度、標簽設(shè)置等)。?您希望通過修改終端的出廠默認操作來保護您的開發(fā)投資。如果第三個原因?qū)δ鷣碚f很重要,請務(wù)必考慮修改識別碼,以確保您的投資得到保護。數(shù)據(jù)無法正確存儲的兩個原因是沒有足夠的區(qū)域來存儲數(shù)據(jù),或者硬件故障。有關(guān)存儲區(qū)域的詳細信息,請參見獲取可用用戶區(qū)域-ESC n命令。有關(guān)讀取和寫入命令的#值和相應(yīng)數(shù)據(jù)字節(jié)數(shù)的完整列表,請參閱表1-4。2.2.50獲取自由用戶區(qū)-ESC n此命令告訴QTERM-II向主機傳輸一個字符。此字符的范圍為40h到7Fh(“@”到DEL),表示用戶區(qū)域的總大小。這將始終是63字節(jié)(字符7Fh),除非QDATA文件太大,用戶區(qū)域可用的字節(jié)更少。請注意,此命令返回的值并沒有告訴您可以向用戶區(qū)域?qū)懭攵嗌賰?nèi)容,而是告訴您可以寫入用戶區(qū)域的總內(nèi)容。
XON/XOFF Mode - ESC l
This command enables or disables the XON/XOFF operation of the QTERM-II. Valid values for # are @ - disable XON/XOFF operation A - enable XON/XOFF operation If you disable XON/XOFF operation, then any keys pressed by the user will be sent to the host immediately. If the host sends data fast enough to the QTERM-II to fill up the receive buffer, additional characters will be ignored. 2.2.49 User Area Read/Write - ESC m # This command allows you to store up to 63 bytes of your own information (such as serial numbers or parameters) in the QTERM-II nonvolatile EEPROM, then later read them from the terminal. There are two valid values for #: @ - read user data A - write user data (followed by data) READ DATA: if # = '@', the QTERM-II will transmit the data in the user area to the host in the following format: # . . . . where # is a character in the range of 40h to 7Fh, and indicates that 0 to 63 bytes of user data will follow, and '. . . .' is the corresponding 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 data stored in the user area. WRITE DATA: to write user data, use the format: ESC m A # . . . . where # is in the range of 41h to 7fh ('A' to DEL), and indicates that from 1 to 63 bytes of data are to follow, and '. . . .' are the data bytes to be stored. These data bytes may be any 8-bit value. After the entire string has been received, the QTERM-II will respond by transmitting one character to the host: 06h - Acknowledge character (ACK), data stored propery 15h - Negative Acknowledge character (NAK), data not stored
USING THE QDATA FILE
3.1 QDATA Files
A QDATA file is used to configure your terminal. There
are three reasons you may want to use a QDATA file:
? You want to change what keys send when they are
pressed or design your own display characters (this
must be done with the QDATA file).
? You want to change some of the other defaults (such
as beep length, tab settings, etc.).
? You want to protect your development investment by
modifying the terminal from its factory-default operation.
If the third reason is important to you, be sure to consider
modifying the