論脈沖計(jì)數(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ā)送到主機(jī)。如果主機(jī)以足夠快的速度向QTERM-II發(fā)送數(shù)據(jù)以填滿接收緩沖區(qū),則會(huì)忽略其他字符。2.2.49用戶區(qū)域讀/寫(xiě)-ESC m#此命令允許您在QTERM-II非易失性EEPROM中存儲(chǔ)多達(dá)63字節(jié)的自己的信息(如序列號(hào)或參數(shù)),然后從終端讀取。#有兩個(gè)有效值:@-讀取用戶數(shù)據(jù)A-寫(xiě)入用戶數(shù)據(jù)(后跟數(shù)據(jù))read data:如果#=“@”,QTERM-II將以以下格式將用戶區(qū)域中的數(shù)據(jù)傳輸?shù)街鳈C(jī):#….其中#是40h到7Fh范圍內(nèi)的字符,表示后面將跟隨0到63字節(jié)的用戶數(shù)據(jù),以及“….”是相應(yīng)的用戶字節(jié)數(shù)。這些字節(jié)將與最初存儲(chǔ)的字節(jié)完全相同,因此它們可以是任何8位值。如果#=“@”(后面是0字節(jié)),則用戶區(qū)域中沒(méi)有存儲(chǔ)數(shù)據(jù)。寫(xiě)入數(shù)據(jù):要寫(xiě)入用戶數(shù)據(jù),請(qǐng)使用以下格式:ESC m A#….其中#在41h到7fh('A'到DEL)的范圍內(nèi),并指示后面是1到63字節(jié)的數(shù)據(jù),以及“….”是要存儲(chǔ)的數(shù)據(jù)字節(jié)。這些數(shù)據(jù)字節(jié)可以是任何8位值。收到整個(gè)字符串后,QTERM-II將通過(guò)向主機(jī)發(fā)送一個(gè)字符進(jìn)行響應(yīng):06h-確認(rèn)字符(ACK),數(shù)據(jù)存儲(chǔ)屬性15h-否定確認(rèn)字符(NAK),未存儲(chǔ)數(shù)據(jù)
使用QDATA文件
3.1 QDATA文件QDATA用于配置終端。您可能有三個(gè)原因需要使用QDATA文件:?您希望更改按鍵被按下時(shí)發(fā)送的內(nèi)容,或設(shè)計(jì)自己的顯示字符(這必須使用QDATA文件完成)。?您想更改一些其他默認(rèn)設(shè)置(如蜂鳴音長(zhǎng)度、標(biāo)簽設(shè)置等)。?您希望通過(guò)修改終端的出廠默認(rèn)操作來(lái)保護(hù)您的開(kāi)發(fā)投資。如果第三個(gè)原因?qū)δ鷣?lái)說(shuō)很重要,請(qǐng)務(wù)必考慮修改識(shí)別碼,以確保您的投資得到保護(hù)。數(shù)據(jù)無(wú)法正確存儲(chǔ)的兩個(gè)原因是沒(méi)有足夠的區(qū)域來(lái)存儲(chǔ)數(shù)據(jù),或者硬件故障。有關(guān)存儲(chǔ)區(qū)域的詳細(xì)信息,請(qǐng)參見(jiàn)獲取可用用戶區(qū)域-ESC n命令。有關(guān)讀取和寫(xiě)入命令的#值和相應(yīng)數(shù)據(jù)字節(jié)數(shù)的完整列表,請(qǐng)參閱表1-4。2.2.50獲取自由用戶區(qū)-ESC n此命令告訴QTERM-II向主機(jī)傳輸一個(gè)字符。此字符的范圍為40h到7Fh(“@”到DEL),表示用戶區(qū)域的總大小。這將始終是63字節(jié)(字符7Fh),除非QDATA文件太大,用戶區(qū)域可用的字節(jié)更少。請(qǐng)注意,此命令返回的值并沒(méi)有告訴您可以向用戶區(qū)域?qū)懭攵嗌賰?nèi)容,而是告訴您可以寫(xiě)入用戶區(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