ABPLC变频器触摸屏通信实例.docx
《ABPLC变频器触摸屏通信实例.docx》由会员分享,可在线阅读,更多相关《ABPLC变频器触摸屏通信实例.docx(16页珍藏版)》请在冰豆网上搜索。
ABPLC变频器触摸屏通信实例
ThisdocumentwilldescribeindetailhowtoconfigureandprogramtheMicroLogix1100forModBuscommunicationstoaPowerFlex4/40drive.ThisdocumentwillalsoillustratecommunicationsviaEtherNettoaPanelViewPlusforcontrol.该文件将详细描述如何配置和编程Modbus通信MicroLogix1100控制器的PowerFlex4/40驱动器。
此文件也将说明通过以太网通讯的PanelViewPlus为控制。
CreationDate:
11/30/2005
Becauseofthevarietyofusesforthisinformation,theuserofandthoseresponsibleforapplyingthisinformationmustsatisfythemselvesastotheacceptabilityofeachapplicationanduseoftheprogram.InnoeventwillRockwellAutomationberesponsibleorliableforindirectorconsequentialdamagesresultingfromtheuseorapplicationofthisinformation.由于此信息的各种用途,对用户和负责应用此信息必须满足每个应用程序的可接受性和使用程序。
在任何情况下,罗克韦尔自动化公司负责或承担此信息的使用或应用程序造成的间接或相应损害
Theillustrations,chartsandexamplesshowninthisapplicationnoteareintendedsolelytoillustratetheprinciplesofprogrammablecontrollersandsomeofthemethodsusedtoapplythem.Particularlybecauseofthemanyvariablesandrequirementsassociatedwithanyparticularinstallation,RockwellAutomationcannotassumeresponsibilityorliabilityforactualusebasedupontheillustrationsusedandapplications.在本应用笔记中的插图,图表和例子的目的纯粹是为了说明可编程控制器的原理和一些用于应用它们的方法。
特别是由于许多变数,并与任何特定的安装要求,罗克韦尔自动化公司可以不承担责任或法律责任根据所用的插图和应用的实际使用。
RockwellAutomationassumesnopatentliabilitywithrespecttouseofinformation,circuits,equipment,orsoftwaredescribedinthistext.罗克韦尔自动化与信息,电路,设备,或在这个文本中描述的软件使用方面没有专利责任。
Reproductionsofthecontentsofthisapplicationnote,inwholeorinpart,withouttheexpresswrittenconsentofRockwellAutomationareprohibited.本应用笔记的内容的复制品,没有罗克韦尔自动化公司的明确书面同意,全部或部分,是禁止的。
SoftwareandFirmwareUsed
AllexamplesshownweredevelopedusingRSLogix500v7.0andRSViewStudiov4.0软件和固件用例子所示,使用RSLogix500V7.0和RSView工作室V4.0
DocumentPurpose
Thisdocumentisnotamanualortrainingmaterial,butanApplicationNote,whichcouldbeusefulinhelpingaRockwellAutomationcustomerwithconfiguringandprogrammingcommunicationsviaModBustoaPowerFlex4/40driveandviaEthernettoaPanelViewPlus.这个文件是不是一本手册或培训材料,但应用笔记,可以帮助罗克韦尔自动化客户的PanelViewPlus的配置和编程通过Modbus通信的PowerFlex4/40驱动器,并通过以太网有用。
IntendedAudience
ThisdocumentistobeusedbyRockwellAutomationemployeesandcustomerssupportingandsellingtheMicroLogix1100,PowerFlex4/40and/orPanelViewPlus.
这份文件是由罗克韦尔自动化公司的员工和客户支持和销售的MicroLogix1100控制器的PowerFlex4/40和/或PanelViewPlus使用。
UsersareexpectedtohaveathroughunderstandingandprogrammingexperiencewithRSLogix500andRSViewStudio.Thisdocumentisnotintendedforbeginningprogrammers,manyassumptionsofknowledgeandhowtoprogramaremadewithinthisdocument.用户预计将有一个通过与RSLogix500和RSViewStudio的理解和编程经验。
本文件的目的不是开始的程序员,许多知识的假设,以及如何编写本文件内。
SystemLayout
FRONT
NOTE:
Multi-DroporDaisyChainingofdevicesispermitted.Properinstallationandterminationofmulti-dropnetworkisrequired.Seespecificproductdocumentationforproperinstallation注意:
多点或菊花链接的设备是允许的。
多点网络的正确安装和终止是必需的。
为正确安装,请参阅特定的产品文档。
点或菊花链接的设备是允许的。
多点网络的正确安装和终止是必需的。
为正确安装,请参阅特定的产品文档。
多点网络的正确安装和终止是必需的。
为正确安装,请参阅特定的产品文档。
ProgrammingtheMicroLogix1100
NOTE:
TheRSLogix500v7.0projectcanbedownloadedfromtheRockwellAutomationKnowledgedatabaseandusedasisoreditedtofityourexactapplicationneeds.
1.CreateanewRSLogix500applicationforaMicroLogix1100.
2.ConfigureChannel0communicationsforModBusasshownbelow.
编程与MicroLogix1100注意:
下载的RSLogix500V7.0项目可以从罗克韦尔自动化知识数据库,并作为或编辑,以满足您的确切的应用需求。
1。
创建一个新的使用RSLogix500MicroLogix1100控制器为应用程序。
2。
配置的Modbus通道0,如下图所示的通信。
IMPORTANTNOTE(s):
oTheBaudrateandparityoftheMicroLogix1100mustmatchtheModbusdevice.
Useofthe1763-CBL-NC01deviceonChannel0oftheMicroLogix1100automaticallyconvertsfromRS232toRS485.重要注意事项(S):
O对MicroLogix1100的波特率和奇偶必须符合Modbus设备。
Ø对MicroLogix1100通道01763-CBL-NC01设备使用自动转换RS232到RS485。
o
WhenmakingyourProtocolControlselectionunderControllineyoumustbesuretoproperlyselect“NOHandshaking(485Network)”whenusingthe1761-CBL-NC01otherwiseyoumayencounterissuessuchasMSGinstructionsgeneratingerrorcodesof37H.当您的协议控制选择控制线下,你必须确保正确选择“无握手(485网络)”时,使用1761-CBL-NC01,否则你可能会遇到问题,如味精产生的错误代码37H的指令。
o
ConfigureChannel1(EtherNet)communicationsasshownbelow.3。
配置通道1(以太网)通信,如下图所示。
3.
NOTE:
IfusingaMicroLogix1100outoftheboxyoumustdownloadtheprogramviatheRS232cable(1761-CBL-PM02)orusingtheBOOTPutilityfirstconfiguretheMicroLogix1100fortheaboveIPaddressinordertodownloadviaEtherNet.注意:
如果使用MicroLogix1100控制器盒,则必须通过RS232电缆(1761-CBL-PM02)或使用BOOTP实用工具配置上面的IP地址以下载通过以太网对MicroLogix1100下载程序。
EnterthefollowingrungsforProgramFile:
LAD2-Main_Prog4。
输入下列程序文件的梯级:
法援署2-Main_Prog
4.
5.CreatethefollowingsubroutineLADfiles
a.LAD3–LCD
b.LAD4–MODBUS
c.LAD5–PF4_CNTRL
EnterthefollowingladderlogicforLAD3–LCD.ThissubroutinewillplaceontotheLCDdisplayoftheMicroLogix1100theactualoutputfrequencyofthePowerFlexdrive.5。
创建下面的子程序法援署文件A.法援署3-液晶B.4-法援署的MODBUSC.法援署5-PF4_CNTRL6。
输入下面的梯形逻辑法援署3-液晶。
这个子程序将放置到了MicroLogix1100PowerFlex变频器实际输出频率的液晶显示器
6.
EnterthefollowingladderlogicforLAD4–MODBUS.ThissubroutinewillperformtheModBusmessagingtoandfromthePowerFlexdrive.7。
输入下面的梯形逻辑法援署4-MODBUS。
这个子程序将执行Modbus消息和从PowerFlex变频器。
7.
ConfigureeachoftheMSGinstructionsasshownbelow.RememberforPowerFlex4/40drivesyoumustaddavalueof“1“totheModBusregister(MBDataAddress)thatislistedinthePowerFlexmanual.8。
MSG指令配置如下图所示的每个。
记住的PowerFlex4/40硬盘,您必须添加一个“1”的价值的PowerFlex手册中列出的Modbus寄存器(MB数据地址)。
8.
MSGCommandWord
MSGSpeedReference味精速度参考
MSGLogicStatus逻辑状态
MSGFeedback(OutputFrequency)
MSGDriveFaults驱动器故障
EnterthefollowingladderlogicforLAD5–PF4_CNTRL.ThisladderlinksobjectsonthePanelViewPlustotheladderlogicforcontrolofthePowerFlexdrive.9。
输入下面的梯形逻辑法援署5-PF4_CNTRL。
这个阶梯链接对象在PanelViewPlus上的梯形逻辑控制PowerFlex变频器。
9.
ThatcompletestheMicroLogixprogramming.这完成了MicroLogix编程。
ConfiguringthePanelViewPlusEtherNetaddress.
UsingthePanelViewTerminalconfigureyourPanelViewPlusforthefollowingIPAddressandsub-netmask.配置的PanelViewPlus以太网地址。
1。
使用PanelView终端配置您的PanelView加上下面的IP地址和子网络掩码。
1.
IPADDRESS:
192.168.1.5
SUB-NETMASK:
255.255.255.0
2.
ProgrammingthePanelViewPlus
NOTE:
Thefollowingisagoodexampleofatypicalcontrolscreenforadrive.Therearemanyobjectscontainedinthisscreen.Wewillhighlightthecreationofjustafew.TheRSViewStudioapplicationback-upfilecanbedownloadedfromtheRockwellAutomationKnowledgedatabaseandusedasisoreditedtofityourexactapplicationneeds.
2。
编程的PanelViewPlus注意:
下面是一个典型的控制屏,驱动器的一个很好的例子。
在此屏幕中有许多对象。
我们将突出短短几年的创作。
罗克韦尔自动化知识数据库RSVIEWStudio应用程序备份文件,可以下载和使用是或编辑,以满足您的确切的应用需求。
1.CreateanewPanelViewPlusapplicationForthisexampleaPanelViewPlus700willbeused.
2.ConfigureRSLinxEnterpriseforcommunicationstotheMicroLogix1100.IfyouhavetheMicroLogix1100connectittotheEthernetswitchalongwithyourcomputer,thiswillallowyoutobrowsedirectlytothecontroller.IfyoudonothavethecontrollerconnectedtoyourcomputerthenyouwillneedtomanuallyaddtheMicroLogix1100.
3.LocatetheRSLinxEnterprisebranchonyourprojecttreeanddouble-clickonthe“CommunicationsSetup”.
4.Undershortcutsclick“Add”andentertheshortcutname“Micro1”
1。
对于这个例子一个的PanelViewPlus700将被用于创建一个新的PanelViewPlus应用程序。
2。
配置RSLinx中对MicroLogix1100通信企业。
如果您对MicroLogix1100将它连接到以太网交换机,随着您的计算机,这将允许您直接浏览到控制器。
如果你没有连接到您的计算机控制器,那么您将需要手动添加了MicroLogix1100。
3。
上找到你的项目树在RSLinx企业分支机构和双
Clickon“Ethernet,Ethernet”underthelocaltab.IfconnectedandproperlyconfiguredtheMicroLogix1100willappear.Againifyoudonothavethecontrolleryouwillneedtomanuallyaddthedevice.ThiscanbedonebyRight-Clickingon“Ethernet,Ethernet”.5。
当地选项卡下点击“以太网,以太网”。
如果连接并正确配置了MicroLogix1100会出现。
同样地,如果你不具备控制器,您将需要手动添加设备。
这可以通过右击“以太网,以太网”。
5.
6.Nowclick“Copy”tocopythisconfigurationtothe“Target”tab.The“Target”configurationiswhatthePanelViewPluswilluseforcommunicationswhentheprojectisdownloadedtothedevice.
7.Click“OK”andaccepttheRSLinxEnterpriseconfigurationchanges.
8.Nowcreateanewdisplayscreen
Adda“CloseScreen”button.Thiswillclosetherunningapplicationandallowyoutoreturntotheterminalconfigurationscreen.Normallythisbuttonmaybehiddenbehindagraphicorplacedonamaintenancescreensoonlyauthorizeduserscanactuallyclosetherunningapplication.6。
现在,点击“复制”,复制此配置“目标”选项卡。
“目标”的配置是在PanelViewPlus将使用通信项目时下载到设备中。
7。
点击“OK”,并接受在RSLinx企业配置变化。
8。
现在创建一个新的的显示屏幕。
添加一个“关闭屏幕”按钮。
这将关闭正在运行的应用程序,并让您返回到终端配置屏幕。
正常情况下,这个按钮可能背后隐藏着一个图形或上午
9.
10.
Nowaddamomentary“Start”buttontoallowforstartingthePowerFlexDrive.
10。
现在添加一个瞬间的“开始”按钮,以便开始的PowerFlex变频器。
11.ConfigurethisbuttonState0captiontoread“Start”andchangethebackcolortogreen.
12.ClickontheconnectionstabandenterthefollowingpathtotheMicroLogix1100.
(Note:
IntheCPR9releaseofRSView,browsingdirectlytotheMicroLogix1100foraddresseswillbeavailable)11。
配置这个按钮的状态0标题改为“开始”,改变背景色为绿色。
12。
点击“连接”选项卡,并输入以下路径到MicroLogix1100。
(注:
在RSVIEWCPR9释放,直接浏览地址到MicroLogix1100可用)
TheValue,Tag/Expression={:
:
[micro1]b23:
0/0}
13.AddadditionalMomentaryPushButtonsforSTOP,JOG,FORWARD,REVERSEusingtheConnectionspathsshownbelow.
a.STOP={:
:
[micro1]b23:
0/1}
b.FORWARD={:
:
[micro1]b23:
0/3}
c.REVERSE={:
:
[micro1]b23:
0/2}
JOG={:
:
[micro1]b23:
0/4}日停止额外的瞬时按钮,慢跑,FORWARD,逆向使用连接如下图所示的路径。
A.停止={:
[micro1]B2