欢迎来到天天文库
浏览记录
ID:45759236
大小:82.14 KB
页数:9页
时间:2019-11-17
《SHIMAXMAC3系列仪表支持RS485接口与紫金桥软件的通讯,通讯协议是》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SHIMAXMAC3系列仪表支持RS485接口与紫金桥软件的通讯,通讯协议是Modbus协议。下图是SHIMAXMAC3通过RS485与紫金桥软件通讯的接线图。[RS-485]terminalresistance(120Q)controller1
2、MAC3rastercontroller2controlIerN+terminalresistance(120Q)MAC3teiminalnumberMAC3A.MAC3BNLXC3D+123]117]—121]118]MAC3通过RS485与紫金桥软件通讯接线
3、图还要对SHIMAXMAC3系列仪表的通讯参数进行设定,按住仪表的MENU键3s,会弹nodE通过向上键选到通过MENU一次进行如下参数设置。4*3.SetupofCommunicatioiiParityIQ口一Initialvalue・LSettingrange・none:none,oddnumber,evennumberCommunicationparityischosenandsetup.InitialvaluenonMENUkey4*4,SetupofCommunicationStopBitSko
4、P,Initialvalue:1Settingrange:12Communicationstopbitischosenandsetup.4*.SetupofCommunicationSpeedbPS95Initialvalue:96Settingrange:12(1200bps)21(2400bps),48(4800bps).96(9600bps)192(19200bps).384(38400bps)Thetransmissionspeed(ortranMnittingdiitatoahostischos
5、enandsetup.MENUkey4-2SetupofCoanunicationDataLengthd砒/?Initin!value:7Settingrange:7.8Communicationdatabitlengthischosenandsetup.(Fixedat8bitsatthetimeofMODBUSRTUsetup)nonMENUkeyofBCCOperationTypeLhHInitialvalue:noneSettingrange:none,Add?Add2TXor,LrC,Ci'16
6、choiceoperationmethodprotocolnonenoneSHIMAXstandardserialprotocolAddadditionAdd2addition+complementof2XorexclusiveORLrCLRCMODBUSASCIICr16CRC-16MODBUSRTUBCCoperationtypeischosen.Thecontentselectedheredeterminestheprotocol・这甲.需要注意,选择Modbus通讯,需要选择后面的两种检验方式。4
7、*7.SetupofCommunicationAddress(SlaveAddress)Initialvidue:1Settingrange:1AST・1~255RS*!85adoptsthemultidropsystemandupto31equipments(maximum)twoconnectable.Byallottingannddress(machnwNo.)totheeachequipment,onlyspeafiedeaddrpssholdingequipmentcanrespond.MEN
8、UkeyNote1:Anaddiesscanbesetupto1^255.H(nvever.themaximumnumberofconnectableequipmentis31.Note2:Thenumbersofaddressesyoucanappointasaslaveis1~2』7inthespeaficationofMODBUS.(Sinceappointmentispossiblein1~255)Note&Whendecrementisfullhercan-iedoutfromAddress1.
9、anddecided.MAC3operatesasmastermode(胡5七)下面以ModbusRTU方式为例,通讯参数设置为:9600,8,无,1。校验方式为CRC-16.设备地址为1。这样SH1MAXMAC3系列仪表端的通讯参数就设置好了。卜而打开紫金桥软件,在数据库页下而找到设备驱动/MODBUS/MODBUS仪表/MODBUS(ASCII&RTUCH串行口通讯),双击弹出设备定义对话框,』越画面□数据库
10、昌公共
11、田Q
此文档下载收益归作者所有