產品內容介紹
FLOWSERVE UKC-5125-5X4A軸承伺服控制器
使用QTERM-II有三種方法可以“自定義”應用程序的QTERM-II操作:?開機設置要設置顯示對比度、波特率和數(shù)據格式,請參閱本章開頭部分。?軟件命令如果要將命令從主機發(fā)送到QTERM-II,請參閱第2章,以獲取所有命令的列表以及如何使用這些命令的詳細信息。其中一些命令允許您控制顯示器(如光標移動、清晰屏幕和換行),其他命令控制硬件的操作(如LED控制和按鍵控制),以及其他命令控制外部設備(條形碼控制和數(shù)字輸出控制)。?QDATA文件下載可以使用軟件命令控制QTERM-II的所有可配置參數(shù),也可以在QDATA中設置適當?shù)闹挡⑵湎螺d到QTERM-II中。修改密鑰字符串(即按下密鑰時QTERM-II傳輸?shù)膬热荩┗蛐薷陌藗€自定義字符的唯一方法是修改和下載QDATA文件。第3章介紹了如何修改此文件以及如何將其加載到QTERM-II中。還有幾個例子利用了鍵字符串的強大功能。QTERM-II的操作非常簡單:?QTERM-II通電。?命令或數(shù)據可以傳輸?shù)絈TERM-II。根據需要執(zhí)行命令;顯示數(shù)據。?當按下某個鍵時,QTERM-II會將相應的字符傳輸?shù)街鳈C。QTERM-II具有許多附加功能,可通過三種方式訪問:?開機設置(參見第1章)?主機軟件命令(本章)?配置文件下載(參見第3章)2.1.1握手QTERM-II具有接收和發(fā)送字符的緩沖區(qū)。然而,對于某些應用程序來說,這些緩沖區(qū)可能不夠大。如果您的應用程序就是這種情況,那么您的主機必須使用XON/XOFF握手來優(yōu)化QTERM-II的功能。
QTERM-II的傳輸緩沖區(qū)(16字節(jié)長)
當主機在一段時間內不希望接收字符時使用。主機向QTERM-II發(fā)送一個XOFF字符。QTERM-II開始將鍵盤代碼(每次擊鍵一個字符,無論分配給該鍵的字符串中有多少個字符)放入傳輸緩沖區(qū),而不是傳輸它們。當主機準備好接收字符時,它發(fā)送一個XON字符,此時QTERM-II將開始在緩沖區(qū)中傳輸字符。QTERM-II的接收緩沖區(qū)足夠大,可以以最大波特率(9600)接受全屏文本,而不會超出緩沖區(qū)。但是,有些操作可能需要更長的時間才能執(zhí)行,例如將整個屏幕向下滾動一行。在這種情況下,當QTERM-II的緩沖區(qū)中只有六個字節(jié)為空時,它將向主機發(fā)送一個XOFF。當它處理輸入數(shù)據到緩沖區(qū)只使用了六個字節(jié)時,它將發(fā)送一個XON,主機可以繼續(xù)傳輸。附錄C中的命令摘要顯示了QTERM-II各種操作的大致執(zhí)行時間。如果您不想使用XON/XOFF握手,也可以禁用它(通過軟件命令或QDATA文件)。但是,如果不使用握手,則必須格外小心,不要溢出QTERM-II的接收緩沖區(qū)。最簡單的兩種方法是使用較慢的波特率(這給QTERM-II更多的時間來處理每個字節(jié)),或者在每次寫入QTERM-II后為代碼添加延遲。2.1.2命令與QDATA參數(shù)有許多參數(shù)由QDATA配置文件設置(見第3章),但可以由軟件命令覆蓋。例如,制表符間距在QDATA文件中設置,但可以通過“設置制表符間隔”命令進行更改。
Using the QTERM-II
There are three ways to "customize" the operation of the QTERM-II for your application: ?Power-On Setup To set the display contrast, baud rate and data format, see the beginning of this chapter. ? Software Commands If you want to send commands from your host computer to the QTERM-II, see Chapter 2 for a list of all commands and details on how to use them. Some of the commands allow you to control the display (such as cursor movement, clear screen and line feed), others control operation of the hardware (such as LED control and key click control), and others control external devices (bar code control and digital output control). ?QDATA File Download All configurable parameters of the QTERM-II can be controlled using software commands or by setting the proper values in the QDATA file and downloading it into the QTERM-II. The only way to modify the key strings (i.e. what the QTERM-II transmits when a key is pressed), or to modify the eight custom characters, is by modifying and downloading the QDATA file. Chapter 3 shows how to modify this file and how to load it into your QTERM-II. There are also several examples that utilize the powerful capabilities of key strings.The operation of the QTERM-II is quite simple: ? Power is applied to the QTERM-II. ?Commands or data can be transmitted to the QTERM-II. Commands are executed as required; data is displayed. ?When a key is pressed, the QTERM-II transmits the appropriate character(s) to the host. The QTERM-II has many additional capabilities which are accessed in three ways: ? Power-On Setup (see Chapter 1) ? Software commands from host (this chapter) ?Configuration-file download (see Chapter 3) 2.1.1 Handshaking The QTERM-II has buffers for both receiving and transmitting characters. However, these buffers may not be large enough for some applications. If this is the case for your application, then your host must use XON/XOFF handshaking to make optimal use of the QTERM-II's capabilities.
The QTERM-II's transmit buffer (16 bytes long)
is used when a host does not wish to receive characters for a period of time. The host sends an XOFF character to the QTERM-II. The QTERM-II starts placing keycodes (one character per keystroke, regardless of how many characters are in the string assigned to the key) into the transmit buffer rather than transmitting them. When the host is ready to receive characters, it sends an XON character, at which time the QTERM-II will start transmitting the characters in the buffer. The QTERM-II's receive buffer is large enough to accept a full screen of text at the maximum baud rate (9600) without overrunning the buffer. However, some operations can take a longer time to execute, such as scrolling the entire screen down one line. In this case, the QTERM-II will send an XOFF to the host when it has only six bytes empty in its buffer. When it has processed input data to the point that the buffer only has six bytes used, it will send an XON, and the host can resume transmitting. The command summary in Appendix C shows approximate execution time for each of the various operations of the QTERM-II. XON/XOFF handshaking can also be disabled (by software command or the QDATA file) if you do not wish to use it. However, if you do not use handshaking, you must take extra care that you do not overrun the QTERM-II's receive buffer. The two easiest ways to do this are to use a slower baud rate (which gives the QTERM-II more time to process each byte) or add delays to your code after each write to the QTERM-II. 2.1.2 Commands vs QDATA Parameters There are numerous parameters which are set by the QDATA configuration file (see Chapter 3) but which can be overridden by a software command. For example, tab spacing is set in the QDATA file, but can be changed by the Set Tab Spacing command.
產品優(yōu)勢
1:國外專業(yè)的供貨渠道,具有價格優(yōu)勢
2:產品質量保證,讓您售后無憂
3:全國快遞包郵
4:一對一服務
公司主營范圍簡介
PLC可編程控制器模塊,DCS卡件,ESD系統(tǒng)卡件,振動監(jiān)測系統(tǒng)卡件,汽輪機控制系統(tǒng)模塊,燃氣發(fā)電機備件等,優(yōu)勢品牌:Allen Bradley、BentlyNevada、ABB、Emerson Ovation、Honeywell DCS、Rockwell ICS Triplex、FOXBORO、Schneider PLC、GE Fanuc、Motorola、HIMA、TRICONEX、Prosoft等各種進口工業(yè)零部件、歐美進口模塊。
產品廣泛應用于冶金、石油天然氣、玻璃制造業(yè)、鋁業(yè)、石油化工、煤礦、造紙印刷、紡織印染、機械、電子制造、汽車制造、塑膠機械、電力、水利、水處理/環(huán)保、鍋爐供暖、能源、輸配電等等