Quickbuilder点参数modbus地址格式

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

DefiningaModbusAddressforaPointParameter给一个点参数规定一个Modbus地址EnteringanAddress访问一个地址ForPVSourceAddress,SourceAddress,andDestinationAddresstheformatforanModbuscontrolleraddressis:一个Modbus控制器地址的PV源地址,源地址和目标地址格式是:ControllerNameLocation控制器名字位置Part部分Description描述ControllerName控制器名ThenameoftheModbuscontroller.Modbus控制器的名字Location位置Theaddresswithinthecontrollerwherethevalueisstored.SeeLocationSyntax.这个值储存在控制器里的位置。查看LocationSyntax.Ifyouwouldlikehelpwhendefininganaddress,clicknexttoAddresstodisplayAddressBuilder.当你规定地址的时候如果你希望得到帮助的话,点击下一步去处理建立地址的显示UsingtheAddressBuildertoEnteranAddress用这个地址建立提示去建立地址TospecifyaModbuscontrolleraddress,specifytheitemsasfollows:制定一个Modbus控制器地址,制定项目如下:Property性能Description描述AddressType地址类型SelectController.选择控制器Controller控制器SelecttheappropriateModbuscontroller.选择一个适当的Modbus控制器Location位置Theaddresswithinthecontrollerwherethevalueisstored.SeeLocationSyntax.这个值储存在控制器里的位置。查看LocationSyntax.LocationSyntax位置语法Theformatforthelocationis:位置格式是:Address[DataFormat|BitNumber]地址[数据格式|字节数]Part部分Description描述Address地址Theaddress(decimal)fortheparametervaluewithinthecontrollertable.在控制器表格里参数值的地址Iftheaddressisprefixedwiththetablenumber,omitthetablenumber.Forexample,thefirstregisterintable4isoftenwrittenas40001or400001.Enter1astheaddress.如果位址与表数目一起前缀,省略表数目。例如,在表4里的第一个注册位置经常被写成40001或者400001.写1作为地址。ThetablenumberprefixisshownontheScanningtabofthePointDetaildisplayandwhenyouusethecommandslistag,rtusumandlisscn.前缀的桌面数被显示在点细节显示扫描界面当你用listag,rtusum和lisscn命令时DataFormat点格式Thedataformatacronymorstartingbitnumber,dependingonhowyouwantthevaluetoberead:点格式的首字母缩写或者起始位数字,取决于你想用哪个值读取DataFormatforScaling16-bitIntegers16位整形缩放比例的点格式DataFormatforReadingFloatingPointValues浮点数的点格式DataFormatforReadingRawValuesWithoutScaling没有缺陷的不成熟点的数据格式Ifyouwanttouseauser-defineddataformat,youmustdefinetheformatontheserver.SeetheConfigurationGuidefordetails.如果你想用一个用户自定义的点格式,你必须在服务器上定义这个格式,查看theConfigurationGuidefordetails.BitNumber位数OnlyapplicabletoInputRegisterandHoldingRegisterdatatables.Thestartingbitnumber,rangingfrom0(default)to15,where0istheright-mostbitinthe16-bitregister.仅仅适用于输入寄存器和保持寄存器的数据表。起始位数从0到15,0在16位里是最右边的Analogandaccumulatorpointparameterscanreadupto16bits模拟和累加点是16位.Statuspointparametersread1,2or3consecutivebits.位参数读1,2,或者3连续Example例如Analogpoint模拟量点PVsource:161U4095PV源:161U4095SPdestination:162U4095SP目标:162U4095Modedestination:251方式目的:251Statuspoint状态点PVsource:26PV来源:26Accumulatorpoint累加点PVsource:171C16PV来源:171C16DataFormatforScaling16-bitIntegers16位整形资料格式YoucanscalepointparametervalueswithadataformatiftheyhaveaddressesintheInputRegisterandHoldingRegisterdatatables.Selecttheformatthatcorrespondstothecountsthathavebeensetinthecontrollerregister.DataFormatCountsinControllerRegisterU4095(default)0to4095U99990to9999U9990to999U15B0to32767U16B0to65535S16B-32768to32767Note:Ifauxiliaryparametershaveadataformattypethatrequiresscaling(U4095,U999,andsoon),theytakethesamerangeasthePV.DataFormatforScaling32-bitIntegersTheModbusInterfacewillcombinetwo16-bitregisters(asdefinedbytheModbusprotocolstandard)intoa32-bitvalue.Thelittle-endianwordformatslistedinthefollowingtable.DataFormatDescriptionCountsinControllerRegisterS32BUnsigned32-bitBinaryLittle-endianNotscaledU32BUnsigned32-bitBinaryLittle-endianNotscaledS32BSSigned32-bitBinaryScaledLittle-endian-32768to32767U32BSSigned32-bitBinaryScaledLittle-endian0to65535Thesedataformatsassumethefollowingword/byteorder:two16-bitregistersinbigendianbyteorderthefirstregistertransmittedisthelowwordthesecondregistertransmittedisthehighwordThevalueiscalculatedas(highregisterx65536)+lowregister.Thebig-endianwordformatslistedinthefollowingtable.DataFormatDescriptionCountsinControllerregisterU32BBU32BSBS32BBUnsigned32-bitBinaryBig-endianNotscaledUnsigned32-bitBinaryScaledBig-endian0to65535Signed32-bitBinaryBig-endianNotscaledS32BSBSigned32-bitBinaryScaledBig-endian-32768to32767Thesedataformatsassumethefollowingword/byteorder:two16-bitregistersinbigendianbyteorderthefirstregistertransmittedisthehighwordthesecondregistertransmittedisthelowwordThevalueiscalculatedas(highregisterx65536)+lowregister.DataFormatforReadingFloatingPointValuesSelectformatIEEEFPtoreadtwoconsecutiveregistersasasingleprecisionfloatingpointnumber.VariationsontheIEEEFPformatthatyoucanspecifyinclude:FormatDescriptionIEEEFPBBytesarebigendianformat(thisisthesameasIEEEFP)IEEEFPBBBytesarebyte-swappedbigendianformatIEEEFPLBytesarelittleendianformatIEEEFPLBBytesarebyte-swappedlittleendianformatNoteIEEEFPnumbersusetwodataaddresses,addressandaddress-1.Donotspecifyaddress-1(theloweraddress)asthepointparameterlocationaddress.Whenconfiguringcontrollerdatatables,donotassignoverlappingdataaddressesiffloatingpointvaluesareusedanddonotsetanIEEEFPaddressto1.DataFormatforReadingRawValuesWithoutScalingSelectaformatofC16,orentera0,toreadall16bitsintheregisterwithoutscaling.Toreadlessthan16bitswithoutscalingenterthestartingbitnumber(1to15).Ifyouarenotusingscaling,thepointrangeisstillusedforPVindicatorbarheightonly(thePVindicatorbarisonthePointdetaildisplayonStation).

1 / 6
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功