版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、欧姆龙PLC通信协议参考:W342-SYSMACCS/CJSeriesCommunicationsCommands欧姆龙通信命令可分为两类:1:C-modecommands只可通过串口通讯2:FINScommands既可通过串口通讯也可通过各类网络通信(适应性较强)下面只讲FINS命令一、命令发送FINS直连发送命令如下:SendingCommandstoaCPUUnitDirectlyConnectedtotheHostComputerNoteThefollowingformati$alsoapplicableforahostcomputerconnectedto皐SerialCammuni
2、caiionsBoardoraSerialCommunicationsUnit.ResponaewaitlimeX1KxaL.ResponseWmiLTimeTheresponsewaittimesetsthetimefromwhentheCPUUnitreceivesacommandblockuntilitstartstoreturnaresponse.Itcanbesettram0toFinhexadecimalinunitsof10ms.Example.IfF(15Isset,lheresponsewillbegintobereturned1150ms(15x10ms)afterlhec
3、ornmandblockwasreceived.SID(SourumID1TheSIDisusedasacounterwhenresending.ItshouldnormallybesettoW(ASCII:30,30).FINScommandcode见下表5-1-1FINSCommandsThefcllowingtableliststheFINScommands.TypeCommandcodNameFunctionMRSRVOmcrroryareaaccess0101MEMORYAREAREADRoadsthecontentscfconoocubvo19memccyarcaworCs0102
4、MEMORYAREAWRITE(Seencte)Writesthecorrentscfconciitive19rremcryareaworcs.0103MEMORYAREAFILL(Seenote.)WritesthesamedatatothespeckedrangeofI/Omenoryareav.cxd5.0104MULTIPLEMEMCRYAREAREADReedsthecontentsofspecifiednonconsecutiveI/Omemoryareav.ords.01OSMEMORYAREATRANSFER(Secrote.)Copc5thecortentsofconsecu
5、tive/OjnemccydzwctojIoanotherI/Orremayae乱Parametera0CCC33OQ01FARAMETERAREAREADRojidcthocontontGcfconsocutivaparsmetercreaweeds.a?02FARAMETERAREAWRITE(Seenote)Writesthecortentscfconcutiveparametersmwerdsoe03WRAM6TERAREAFILL(CLEAR(Seenote.)Writesthesamedatatotnespeededrangedparameterareawords.Programa
6、reaaccess0006PROGRAMAREAREADReadstneUM(UserMencry)area.0007PROGRAMAREAV/RI7E(Seencte)WritestotheUM(UserMemory)area0300PROGRAMAREACLEAR(Seenc(e)CearstheUM(UserMencryiarea.OpcratirgmodochangeeCM01RUN(3noto.lChcngobtheCPUUniteoporatingmxJetoRJNorMONITOR.(M02STOP(Seenote.)ChsngestheCPUUnitsoperatingrroc
7、otoPROGRAM.Laciineconfigurationreading0601CPUUNITDATAREADReadsCPUunitdata.0602CCNMECT.ONDATAREADReodethemode:numbersMthedevicecorrespondingtoaddresses.SiAtusreading0601CPUUNITSTATUSREADReadsthesaiuscftneCPUUnitOO20CYCLETIMEREADReadslhemaxlmtniminimum:ancaraqecycetlm色Timeda:aaccess0701CLOCKREADRoodst
8、hepresentyear,nonthdateminuce.second,andJayoftreweeEqualsFlag()1D-O5r00LessThon10-04D-3F啣l=jNotEqulAsg(o)IDAEDOLessTha仃orEqualsFlagU=i10AAO0AIvtaysOFFFlagjON)1DDED0AlwaysONFag|OFF)KlflFDOAccbseErrorFsag3001001NoteTheonlycurrenlEMbankthatcanwithFINScammandGisthe*onceinthesneneorkC6;Nodeaddressduplica
9、tionNodeaddressesThusamenodeaddresshasbeensettviceinthesanenetork.Oiangetheaddressofoneoftherodeswiththesaneaddress02:Destinationnodeeror01:Destinationrodnotinret-vtorkINSindicatoronLbftThedestinationrodeisrotinthenetAork.Addthedestinationnodetothenet-work02:UnitmissingInstructionntroldataThereisnoU
10、nitwiththespecifieduniladdress.Checkthdestirationunitaddres3.03:ThirdnodemissingInstructioncontroldataThethirdnodedocsnotexist.ChecktheunitaddressofthethirdrodeCheckthenoaeadaressofthethirdnodeinthesenddataforCMKD|490).CbmmarddataBroadcastingv/asspecified.Specifyontyonenodeforthethirdrod匕04:Destinat
11、ionnodebusyThede3tnationrod6isbusy.Increasethenumberofretriesorrevie/vHiesystemsottiatthedestinationnodedoesnotreceivesomarrymessages.05:ResponsetimeoutThemessajewasdestroyedbynoise.IncreasethenumberofretriesortestcommuricatonsbeMsenrodesioseeIfthereistoomuchraise.instructioncontroldatameresporsenon
12、itornmeistooshortincreasethelengtnoftreresponsemonitortimeErrorhistoryThesend-recer/eframewasdscarded.Takeappropriatemeasuresbasedcntheerrorhistory.MaincodeSub-codeCheckpointProbablecauseCorrectlon03:Controllereror01:CommunicationscontrollererrorUnit/BcardindicatorsAnerroroccurredinthecomminicatiors
13、controller.Takeappopri&temeasuresbasedcntheoperationmantasfortherelatedUnitsBoards.02:CPUUniterrorCPUUnitindicatorsatcfestlnationnodeACPUerroroccurredinthedsstinaticnCPUUnit.CleartheerrorfromtheCPUUnittosedonitsoperationmanuals.G3:ControllererrorBoardndicalorsAresponsev/asnetreturnedbecauseanerroroc
14、curredinfreBoard.ChecknetworkcommunicationssatusardresiarttheBeard,iftneprobtenpersists,replacetheBoard.Oi:UnrtrunbererrorUnitnunberTheunrtnumberviessetircorrcctly.Settherotaryswitchescorrectly,tcingsuretheunitrunbersarcv/itninrangeandthateachrumoerisusedonlyonce.04:Serviceirsupported01:Undefinedcom
15、mandCommardcodeTheUnitSoarddoesnotsupportthespecifiedcommardcode.Checkthecomrrandcode.02:Notsupportedbymodel/VersionUnitmodelandversionThecommandcannotbeexecutedbecausethemodelorversionisincorrect.Checkthemodelnumberandversion.05:Routingtableerror01:DestinationaddresssettirgerrorRoutngtableTneaestna
16、tionnetworkornodeaddessisnotsetintheroutingtables.RegisterthedestinationnetAorkandnodeintheroutingtables02:KoroutingtabesRoutngtableRelayingisnotpssblebecausetherearenoroutingtabesSetroutingtablesinthesourcerode.desigrationnode,andrelayrodes.03:RoutingtabeerrorRoutngtableThereIsanerrorIntherautinata
17、bles.Settneroutingtabescorrectly.04;ToomanyrelaysNetworkconfijuratiorAnattempt讥asmadetoserdtoanetworkthato/er3networksawayReconstructttis仃etworksorchangetheroutingtatiessothataonnandsarcsentwithinarargeof3networksorless.10:Commandtormaterror01:CommandtoolongCommanddataThecommandislongerthanthemaximu
18、mpermissiblelength.Checkthecommandformatandcorrectthecommanddata.02:CommandtooshortCommarddataTheconnandisshorterthanlbminmumpermissiblelength.Checkthecommandformatandcorrectthecommanddata.08:Elements.ctetadontmatchCommanddataThedesignatednumberofeementsdiffersfromthenumberofwritedataitems.Checkthnu
19、mberofelementsard虫ldatatoreachelement.04:CommandformaterrorCommarddataAnincorrecttormatwasusedChecktheccmmanaformatanacorrectthecommanddata05:HeaoererrorRoutngtableEithertherelaytatleintnelocalnodeorthelocalnetworktableintherelaynodeisircorrect.Settnerottinatabescorrectly.MaincodeSub-codeCheckpointP
20、robablecauseCorrection11:Parametererror01:AreaclassificationmissingMemoryareaodeinommanddetsmespeofieaworeaoesnotexistinthememoryareaorthereisnoEMArea.Checkthememoryareasandparametercodesiniheccmmandendcorrectthecommarddata02:AccesssizeerrorAccesssizespecificationinommanddataTheaccesssizespecilicati
21、onisincorrccloraneddwrdadefessisspecified.Checkthememoryareasandaccesssizeandcorrecttheaccesssze.03:AddressrangeerrorStartingenddressncommanddataThestartaddressincomrranaprocessisbeyondtheaccessiblearea.C)ecktlieareaboingprocessedandsetthecorrecirange.04:AddressrangeexceededStartingaddressandnumbero
22、fdementsinommanddataTheendaodressincommandprocessisbeyondtheaocewsibleareaChecktheareabeingprocessedsndsetthecorrecirange.DalalinktablesThetotalnumberofwordsisbeyondthelimit.Correctthedatalinktables.5:ProgrammissingProgramrunberinommanddetsFFFFHexwasnotspecified.SpecifyFFFFHex09:RebtonalerrorCommand
23、dataAlarge-smallrebtonshipintheelenentsinthcommanddatasincorrectCheckthecommanddataandorrecttherelstiorshipbetveertheeements.atalinktableArodenotsetinthecommonlinkparametersissetasarefreshparameter.Correctthedatalinktables.OA:Duplicatedataaccess1.0accessinCPUUnitDifferentialmonitoringwasspedfiedduri
24、ngdatatracingordatatracingwasspecifieddunngditfe-enttaimcnttcring.人bortthecurrentprocessorwaituntiliterdsbeforeexecutingthecommandDalalinktablesThesamenodeaddressisspecifiedmorethanonce.Correctthedatalinktables.08:ResponsetoolongNumberofelementsincomranddataTneresporseforma:islengertharthemaximumper
25、missiblelergth.Checkthecommanaformatandcorrectthenumberofelements00:ParametererrorParametersincommanddataThereisanerrorinoneoftheparametersettings.CheckthecommanddataandcorrecttheparametersgtaIinkt3blefileThereisanerrorinthefile.Checkthcontentsofthfile.20:Readnotpossible02:ProtectedTheprogramaneaisp
26、ro-tecied.ReleaseprotectionfromaProgrammingDeviceandthenexecutetheaonnand.03:TablemissingTableAtabehasnotbeenregisteredRegisteratable.Thereisanerrorinthetatle.Correctthetable.04;CaiamissingThesearchdatadoesnotexist.-05;ProgrammissingProgramnumterincommarddataAron-existingprogramnumberhasbeenspecifie
27、d.Checktheprogramnumbersands)eafyavalidone.06:FilemissingRlerameardfiledeviceThefiledoesnotexistatthespecifiedfibdeviceCheckthepathandfilenameandcorrectthem.07:DatarrismaichContertsofmemorybeingonparedAdatabeingcomparedisnotthesame.Checkmemor/contentsandusethecorrectdata.AfilereadoperailonfailedChec
28、kthecontentsofthefile.MaincodeSub-codeCheckpointProbablecauseCorrection21:Writenotpossible01:Read-onlyThespecifiedareaisread-only.IftheareaisprotectedusingaMehsettngreleaseprotection3ndtherexecutethecommand.Iftfieareaispermanentlyread-only,thecommandcannotbeexecuted.oz:ProtectedCannotwritedatalinkta
29、bleTheprogramareaisprotected.HeeaseprotectionfromaProcrammingDeviceardtbenexecutethecommand.FLCSetupWritingisrotpossiblebecauseautomaticdatalinktablegeneraiionhasDeenspecifiedChangethePLCSetupsothatthedatalinktabescanbemonuollywrinen.03:CannotregisterNumberoffilesinfiledeviceThefilecannotbecreatedbe
30、causethlimithasbeenexceeded.Deeteanyunnecessaryfilesorcreatemorfilememory.NumberoffilesopenThemaxmumnumberoffileshasalreadybeenopenedforthesystemlimitCloseoreormorefilesandthenexecutethecommand05:ProgrammissingProgramnjnberincommenddataAnonex)s;ingprogramnumberhasbeenspecified.Creektreprogramnumbers
31、ardspecifyavaldone06:FilemissmjAlenameThefiledoesnotexistatthespecifiedfidovicCorrectthefilenameandthende01:KotpossbeduringexecutionThemodeisincorrect.Checkthemode.DatalinkstatusTnedatalinkiseperatng.Checkthestatusofthedatalinks.02:NotpossibleAhilerunningThemodeisincorrectCbsckthcmode.Datalinkstatus
32、ThedatalinksareactiveCheckthstatusofthedst3links.C0:WronqPLCmodeThePLCisinPROGRAMmode.CheckthemodesofthePLCandcomputer.O4:WronqPLCmodThePLCisinDEBUGmode.CheckthemodesofthePLCandcomputer.C6:WrorgPLCmodeThePLCisinMONITOPmode.CheckthemodesofthePLCandcomputer.(B:WrongPLCmodeThePLCisinRUNmode.Checkt卜emod
33、esofthPLCandcomputer.07:SpecfiednodenotpDliirgnodeThespecifiedrodeisnotthepollingnode.Checknodefunctionirgasthepollingnodeforthenetwork08:Stepcannotbee*ecutedThemodeisincorrect.Checksiepstatus.23:Nosuchdevice01:AledeviceminingUnitconfigurationThespecifiedmemorydoesnotexistasafiledevice.h4ountmemoryo
34、rformatEMasfilememory.02:MemoryminingThereisnofiememory.Checkt卜efilememorytoseeifitismountedCB:ClockmissingThereisnoclock.Checkthemodel.24:Cannotstarvstop01:TabicmissingDatalinktablesThedatalinktabeshavenotD%nregisteredortre/cortainanerror.Setthedatalinktabes.MaincodeSub-codeCheckpointProbablecauseC
35、orrection25:Uniterror02;MemoryerrorContentsofmemorybeingpocessedThecontentsofmemory8ntansanerrorTransferthecorrectcontentstomemory.03:I/OsettingerrorI/OUnitconfigurationTheregisteredI/Otablesdonotagreev/iththactual1.0configuration.Correctthe1.0tablesortheI/Oconfigurstion04:ToomanyI/OpointsNumberofMO
36、inregisieredI/OtabesTherearetoomany1*0pointsandremote/Opointsregistered.Chargetheregistered1.0tabsothatitiswithinthellmil.05:CPUbuserrorCPUbuslineAneroroccurredindatatrarsferbetweentheCPUand&CPUBusUnit.Checkunits.Boards,andcabestotesuretheyareconnactwdcorrectlyendthenexecutetheERRORCLEARcommard.06:I
37、/OduplicationFicknumbers,initnimbersaid1*0cddncsscsinPLCSetupThesamenumber.etddresswasseimorethanonce.CheckthePLCSetipandcorrecttenumbersaddressessothateachisusedonlyor-ce.07;1.0buserror1.0buslineAnerroroccurredIndatatrarsferbetweentheCPUandanI/OUnit.CheckUnits.Boards,andcabestotesuretheyareconnecte
38、dcorrectlyandthenexecutetheERRORCLEARcommard.09:SYSMACEUS/2errorSYSMACBUS-2ansmissionpathAneroroccurredindat3trarsferontreSYSMACBUS/2line.CheckUnits.Boards,andcabestotesuretheyareconnectedcorrectlyandthenexecutetheERRORCLEARcommard.OACPUBusUniterrorCPUBusUnitIransmissicnpathAneroroccurredindatatrars
39、ferforaCPU3usUnit.CheckUnits.Boards,andcabestotosuretheyarcconnectedcorrectlyandtnenexecutetneERRORCLEARcommardOD:SYSMACBUSNo.duplicationvaasettingsTnesameworaisallocatedrrorethanonce.Checkthel*0tablesandcorecttreailocatbnsOF:MemoryerrorStatusofmemcrybeingprocessedAmemoryerrorhasoccurredininternalme
40、mory,smemorycard.orEMfilememory.Forinternalmemory,v/ritethecornsetdataandthenexecutethecommand.FOramemorycardorEMfilememory.thefiedatahasbeencfestrayed.ExecutetheFILEMEMORYFORMATcommand.Iftheproblempersistsreplacethememory.10:SYSMACBUSterminatormissingTerminatorshaverotteenset.Setthetermnator8correc
41、tly.P.1sincadeSubcodeCheckpointProbablecauseCGrreciion6;Commanderror01;NdprelectionCominardprotectionforprogramamaTTiespecifiedareaIsnotprole-ted.AnattemptmadetodearprotEctonOnanarEalhatisnotprotectsd.i.e.stberBis.ndneasentodearprdtectiDn.02:In-CDrr白ctpaxwordAnincorFBctpa&BWDrdhaabeenspKilied.Specif
42、jthscorrHDlpsaBword.04:户Ot曰utsHTheEpeafiBd日bbieprolected.ClBBrprot日ciionfromaPrograimririgDevceandtneiExecutethecammand.NumberofcommandsbeingTTieroderetellingthecomniandisalreMiyproce&s-irg5Gammande.V/alttorcurrentprocessingIdendorforcetheendofacurrentproGBsaarclthsnbxbcuIb七卜日commindi03:SbividbaJrea
43、dyeJcecutingTheEBivicsisbsingeiecutedVJsitforthsE-erviDBtnendorforcemeendoftheseniiceandthenexecutelheconnrrand.as;ServicestoppedTheebmcbisnetbeingesecutedifnecessarystarttheservice.07;NoeecutidnrightLNKindicatoronUnitBoardThenghttoececuteiheservicehasnolbeenobtaincdaThelocalrodeisnotinlhedatalink.E
44、xecutethecommand1rimarodethathparticipatinginthedatalinkAresponsewasnotreiurnedbecauseaDuffsrerrornccurredAcstarttheBoard.IftheproblempersistSjreplacetheBoard.08:SettirgsnOtompletESettingsrequiredbeforeexscutionThesettingsreziuiredbeioreesecutingtheseruicEhsvEnotbeenmade.Maketherequiredsettings.09:N
45、ECESsaryitem-3no!setCommanddataTherequiredeenentshaBnotbeensetinthecommanddata.ChedtthecommandformatandsetIfiereqjirbJelementinthecommanddata.OA;NumberareadydelinedActonnumbersandtransitionnumbersofprograminprogramareaTTiespedf1edaclton/tra闾-tionlurnbe-hasalreadybssnregisteredinappYipu冯program.Check
46、me呂ctlon-lransitlonrunberstoonesthatarenotbeingussdandthensmscutsth日command.OB:ErrorvuiIIratclearCauseoferrorbeingdearBdTliecauseoftheerrorhasnotbeenremoved.Removettvcaus-eoflheerrorandthenexecuteERRORCLEAR.30;Accessrighterror01;NdaccessrightTheaccessnghtis仃已idDyanotherdevice(OnlineeditingbsingEXBCutedfromanothEnodeOrACCESSRIGHTACQUIREor4匚亡ESSSIGHTFOREADOUIREhasbeeneiecutedtrbrothernode.)v/aituntiltheaccessrightisreleasedandthenexecutethemm3nd.ACCESSRIGHTACQUIREdrACCES
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 部编本二年级上册语文第二至七单元(内容含课文口语交际及语文园地)全部教案
- 油气勘探钻探施工合同
- 汽车制造锅炉房施工合同
- 硫酸厂宿舍楼施工协议
- 科技园区研发创新车库改造协议
- 石油公司出纳人员聘用合同
- 室内运动场地坪施工协议
- 宅基地共有权协议
- 工业厂房铝合金施工合同范本
- 广告传媒塔吊租赁协议
- 目标管理PPT完整版
- 英语六年级上册Unit3AnimalWorld大象
- 精装工程述标演示文稿
- 《中国气候变化蓝皮书(2023)》发布:气候系统变暖加速
- 2023年安徽学位英语考试试题答案
- 平凡的世界英文简介ppt
- 四年级湘版美术知识点(复习提纲)
- 牙、牙合、颌的生长发育 颅面的生长发育
- 幕墙预埋件工程专项施工方案
- 公文管理中的错误
- 2023年11月北京地区成人本科学士学位英语真题及答案
评论
0/150
提交评论