欢迎来到天天文库
浏览记录
ID:49408091
大小:91.00 KB
页数:6页
时间:2020-03-01
《MCT系列红外测试仪通信协议.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、AppendixV-SerialCommunicationsProtocolforMCT300附录V.MCT系列测试仪系列串行通信协议Cables电缆RS232:Connection:Viashieldedtwistedpair•屏蔽双绞线双绞线Signal信号Digital数字接口Connector#9Pin4T9针D接口Connector#TX32RX43GND55RS485:Viaashieldedtwistedpair.屏蔽双绞线Connection:RefertoSection11.0参考11.0Communic
2、ations通信Programmerswritingsoftwareshouldrefertothecommandlistbelow・Thecommunicationsisasimplerequest/replysystem.ThehostcomputersendsarequestandtheMCT300sendsareply.Hencetherearenospecialprotocolsorhandshakinginvolvedanditisalsoquiteeasyforapersontocommunicatewith
3、theMCT300viaasimpleterminal.程序员编写软件应参考下表的指令,通信指令是简单的应答应答系统。电脑主机发送请求MCT系列测试仪回应,中间没有特殊交换协议,MCT系列测试仪终端的人机通信十分简单Thetimingoftherepliesitdeliberatelylockedtothewheelrevolutionsandhencethemaximumcommunicationsrateisapprox・18requests/repliespersecond.Shouldthewheelormotor
4、failthenatimingsoftwaresystemof10loopspersecondtakesoversocommunicationsisnotlost回应时间与光轮转动对应,应答的最快通信频率为18次/秒,一但光轮和马达停止,为防止丢失信号,系统控制为【0次/秒WhenusingRS485aleadingM$norn#Mfollowedbyasingle,alphanumericnIDncharacterwakesupthetargetunitanditrespondswithareply.Eachuniton
5、theRS485daisychainhasauniqueIDandhenceallunitsmaybeaccessedacrossasimplesingletwistedpaircable.NormallyID'sareA-Z,andthedefaultIDis1.HencewhenaddingmoreMCT300'stoanexistingandrunningRS485system,theuserwilllookfortheIDoftheunitandassignitanewLD・Thisprocesscanberepe
6、atedforeachnewunitadded・RS485用S”或甘带单个字符的ID对测试仪进行唤醍和响应,毎台机在RS485小链上有独立ID,只要通过条双绞线电缆就能把全部的机接入,ID通常为A・Z,默认值为I,每次在现有工作中的RS485系统上增加MCT系列测试仪机要配置设定新ID。TheBAUDratemaybechangedbyaserialcommand,butthisshouldnotbenecessaryasthefilterdatacanbeextractedatthedefault9600rateandt
7、heBAUDrateisnotthelimitingfactoratthiscommunicationsspeed・MaximumBAUDrateis57600.因为BAUD率不是控制通信速度,而fl默认为9600,所以没必要通过指令來改变。ThecommunicationscircuitsdefaulttoRS485butcircuitsautomaticallydetectsRS232signalsandwhendetectedtheserialstreamisautomaticallyroutedtotheRS23
8、2inputandtheRS485goesintoahighimpedancestate.RS232stylecommunicationswillworkwithorwithouttheID.Thiscanbeusefulasanengineercanwalkuptoasystem,whichisonR
此文档下载收益归作者所有