




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、Talking to Power PMACFebruary 2012Power PMAC CommunicationsPower PMAC provides powerful communications tools using standard interfaces and protocolsEmploys standard 100 MHz / 1 GHz Ethernet physical linkUses protocols from all 4 “l(fā)ayers” of Internet Protocol SuiteActs as “server” in client/server mo
2、del, host computer is “client”Can communicate in direct link to host computer for setup or in applicationCan communicate over LAN and/or InternetAccepts text commands using Telnet or SSHCommands can be to Linux computer promptCommands can be to Power PMAC applicationCan transfer files using FTPCan t
3、ransfer HTML information using HTTPGeneral Internet Protocol Suite OverviewSet of communications protocols for Internet and similar networksConsists of 4 “encapsulated” abstraction layersLink Layer (lowest)Handles specific networking requirements on the local linke.g. ARP, NDP, MAC (for Ethernet, DS
4、L, FDDI)Internet LayerProvides basic datagram transmission between (potentially) different networkse.g. IPv4, IPv6Transport LayerEstablishes data channels between host portse.g. UDP, TCP, RTP, DCCP, RSVPApplication Layer (highest)Implements process-to-process communications across network(s)e.g. Tel
5、net, SSH, FTP, HTTP, DHCP, POP, SMTPPower PMAC Internet Protocol Suite UseLink layer protocol supported:Media Access Control (MAC) for EthernetUses unique physical address of device (not changeable)Internet layer protocol supported:Internet Protocol Version 6 (IPv6)Each Power PMAC has a user-settabl
6、e IP address (e.g. 00)Transport layer protocol supported:Transport Communications Protocol (TCP)For reliable, ordered data transmissionApplication layer protocols supportedTelnet: for open text communications by virtual terminalSecure Shell (SSH): for protected text communications by virtual termina
7、lFile Transfer Protocol (FTP): For moving entire files (of any type)Hypertext Transfer Protocol (HTTP): For hypermedia information (e.g. web)Starting a Terminal Utility to Talk to Power PMACAlmost all PCs have terminal utility programs installedTo start Windows “cmd.exe”:Windows XP: Click on “Start”
8、, “Run”, type “cmd”, click on “OK”Windows 7: Click on Windows logo, type “cmd” enterAt prompt, type “telnet IPAddress”To start Windows XPs HyperTerminal:Click on “Start”, “Programs”, “Accessories”, “Communications”, “HyperTerminal”Can provide connection name and icon, then click “OK”For “Connect usi
9、ng”, select “TCP/IP (Winsock)”For “Port Number”, enter “22” (for SSH) or “23” (for Telnet)For “Host Address”, enter IPAddress (e.g. “00”)Click “OK”In both cases, should now get login prompt from Power PMACStarting Power PMAC SSH/Telnet Session At login prompt e.g.: Power PMAC Debian Based GNU/Linux
10、5.0powerpmac login:Type “root”At password prompt, type password (“deltatau”)Will get response like the following: - Power PMAC 440EP bash shell -root00:/opt/ppmac#You are now talking to the Linux computer (but not the PMAC app)Type “gpascii -2” to start the PMAC communications appWill get response:S
11、TDIN Open for ASCII inputYou are now talking to the PMAC application, and can now use Power PMAC in terminal modeExample Terminal SessionIDE Communications to Power PMACTerminal and status windows use text communications through gpascii and SSH (older versions use Telnet)Project manager uses FTP to
12、copy project files to Power PMACTuning and plotting use SSH for setup, FTP for transferring gathered dataFTP Access to Power PMACFTP protocol permits access to Power PMACs directories and files for the active projectCan be used from Browser program, as shown hereAccess limited to active directories
13、with user project files (/var/ftp/usrflash)Changing Power PMACs IP AddressSelect “Options” from IDE “Tools” menuExpand “Power PMAC” from left section of pop-up windowSelect “Network Settings”Enter new desired IP addressClick on “Test”If successful, click on “Apply Permanently”Finding an Unknown IP A
14、ddressMethod 1:On PC, create root-level folder named PowerPmacIP on USB memory stick or SD card that employs FAT32 partitioning (very standard)Plug USB stick or SD card into Power PMACTurn on Power PMACAfter boot sequence is complete (when relay clicks), turn off Power PMAC and remove USB stick or S
15、D cardOn PC, view contents of interfaces text file in PowerPmacIP folder to find IP addressMethod 2:Connect host computer RS-232 port to Power PMAC RS-232 portStart terminal utility (e.g. HyperTerminal, PuTTY) on PC to use this COM portTurn on Power PMAC, wait for command promptLogin as root, then e
16、nter password (deltatau)Watch terminal display for IP addressOn-Line vs. Buffered Script CommandsOn-line Script commandsExecuted immediately, not stored (cannot be listed back)Some are motor-specific, acting on addressed or listed motorSome are coordinate-system-specific, acting on addressed or list
17、ed C.S.Some are globalIndependent addressing of motor and C.S. for different communications threadsBuffered Script program commandsStored in open program buffer for future executionSeparate step required for actual executionIllegal command empties and closes open bufferIf no program buffer open when
18、 sent:Rejected with error if not also valid as on-line command (e.g. X10)Executed immediately if also valid as on-line command (e.g. P1=1)On-line and buffered commands have separate chapters in SW Reference ManualAddressing Motors and Coordinate SystemsMany on-line commands are motor or coordinate-s
19、ystem specificEach communications thread has independent addressing of motor and C.S.Power-on/reset default addressing is Motor 0 (#0) and C.S. 0 (&0)#x command, &x command modally address Motor x, C.S. xWith modal addressing, do not need to precede each command with addressing (useful for interacti
20、ve work)#list (e.g. #1.3), &list (e.g. &2,4,6) specify multiple motors, C.S.s affected by immediately following command, do not affect modal addressing of thread#*, &* specify that all motors, C.S.s be affected by immediately following command (e.g. #*k, &*a), do not affect modal addressing#, & commands query for modally addressed motor, C.S.Echo Mode of Variable Query Responsesecho constant command specifies format of many variable query command responses for this communications threadconstant value (0 . 15) has 4 independent control bitsB
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025-2030年中國智能戒指行業(yè)市場現(xiàn)狀供需分析及投資評(píng)估規(guī)劃分析研究報(bào)告
- 2025-2030年中國掃雪車行業(yè)市場現(xiàn)狀供需分析及投資評(píng)估規(guī)劃分析研究報(bào)告
- 2025-2030年中國帆布面板行業(yè)市場現(xiàn)狀供需分析及投資評(píng)估規(guī)劃分析研究報(bào)告
- 2025-2030年中國安全玻璃行業(yè)市場深度分析及前景趨勢(shì)與投資研究報(bào)告
- 2025-2030年中國動(dòng)態(tài)電子病歷行業(yè)市場現(xiàn)狀供需分析及投資評(píng)估規(guī)劃分析研究報(bào)告
- 2025-2030年中國低速車輛行業(yè)市場現(xiàn)狀供需分析及投資評(píng)估規(guī)劃分析研究報(bào)告
- 2025-2030年中國乙丙橡膠行業(yè)市場發(fā)展分析及發(fā)展趨勢(shì)與投資前景研究報(bào)告
- 2025-2030年中國丁咯地爾行業(yè)發(fā)展分析及投資價(jià)值評(píng)估研究報(bào)告
- 2025-2030年一次性醫(yī)療保健品行業(yè)市場發(fā)展分析及發(fā)展趨勢(shì)與投資前景研究報(bào)告
- 2025-2030交通信號(hào)控制系統(tǒng)行業(yè)市場現(xiàn)狀供需分析及重點(diǎn)企業(yè)投資評(píng)估規(guī)劃分析研究報(bào)告
- 國標(biāo)美標(biāo)德標(biāo)日表法蘭尺寸標(biāo)準(zhǔn)
- 測(cè)繪生產(chǎn)困難類別細(xì)則及工日定額
- 國民經(jīng)濟(jì)行業(yè)分類2022年
- 獸醫(yī)藥理學(xué) 第15章 特效解毒藥
- 空乘人員職業(yè)形象設(shè)計(jì)與化妝(169張課件)
- 會(huì)計(jì)工作年限證明個(gè)人承諾書
- 物業(yè)公共秩序管理課件
- 淺談摩托艇的安全管理
- 女性功能治療方案ppt課件
- 公路工程計(jì)量與計(jì)價(jià)考試B本科
- 醫(yī)用耗材分類目錄 (低值 ╱ 高值)
評(píng)論
0/150
提交評(píng)論