ABB PLC基于MODBUS ASCII協(xié)議的多方通訊_第1頁(yè)
ABB PLC基于MODBUS ASCII協(xié)議的多方通訊_第2頁(yè)
ABB PLC基于MODBUS ASCII協(xié)議的多方通訊_第3頁(yè)
ABB PLC基于MODBUS ASCII協(xié)議的多方通訊_第4頁(yè)
ABB PLC基于MODBUS ASCII協(xié)議的多方通訊_第5頁(yè)
已閱讀5頁(yè),還剩62頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

???? C500??????????????BPLC????MBUSACII???????ABBPCsSrialCouicationbaedonMODBUSASCIIrotcol? ???ゴ???................................................................................................................................2.1?????.......................................................................................................................................2.2????...........................................................................................................................................2.3乍???...........................................................................................................................................2.4????...........................................................................................................................................3??ゴ?PLC?キ??.5.1??...................................................................................................................................................5.2?キ????...................................................................................................................................5.2.1CPU????.............................................................................................................................6.2.2X5??????..................................................................................................................6.2.3C5?????..................................................................................................................6.2.4????....................................................................................................................................6.3????...........................................................................................................................................7.4ConrlBildrls??Ё????................................................................................................72.4.1????????IO??AX2............................................................................................112.4.2??????CO1?Modbs??......................................................................................132.4.3??????DP?キ?P?キ............................................................................................172.4.4??????P?????..............................................................................................202.4.5??????PC?キ?P??............................................................................................21??ゴ????????...........................................................................................................431omModbus_Sender???.........................................................................................................24.2????MyACIISend??........................................................................................................25.3????PL_PG????...........................................................................................................27.4????MyACIIRec??..........................................................................................................27.5????PL_PG????...........................................................................................................28??ゴ??????????.0.1???PC?キ???...................................................................................................................30.2????..........................................................................................................................................32.3????..........................................................................................................................................32.4?????????⑤??...........................................................................................................32??AB??????????C??? 1 C00ss:1.011??ゴ???1.1???????????????BBC500PLC???????????????????????偠??C???????????Ms??????Mobs???????????????????1.2???????????MbsASCII?????CPUП????????ModbusASCII?????MosRTU??????????Ё????????????????ㄝ????????????????????????????Ё?Н??????????????????????????????????????????????????????Ё?????????????????????????Ё???????????????????MbsASCII???????????Rerece1 CDSys????2 ABBPLC?催????????????arare1 P3-EH2.12 ????

Decrition?????????SotareorBlrls2.1BaseonC4WidosxpS3???1.3乍??????Ё???????????C?キ???????U?C1????Mbs?キ????????Ё???U乍????????MosACII??????C?キ???????乍?????????AB??????????C??? 2 C00ss:1.011DC24VDC24VDC24V??乍????1.4?????? ???? ???? ????AB??????????C??? 3 C00ss:1.0111 CoMos_Sener2 CoMos_Save23 CoMos_Save34 15

C500??CC500??CC500??C??????

?Mbs??Ё????????????キ???Mbs??Ё????????????キ???Mbs??Ё????????????キ??????????trlBlls2.1????????AB??????????C??? 4 C00ss:1.011??ゴ?PLC?キ??2.1??????Ё?????3?????偠C?????MbsASCII????????Mo??????U????COM1??ッ????????????????????CPUг???MbsASCII????????????????⑤????????????キЁ?????г????????????キ???????????? ?? ??1 M573-EHV2.12 CM572 CM57-DP3 DC505 D2-FPDC5054 X522 X5225 CPU?? B5x-EH6 O??? 51x?7 ????? 505-P???8DP??9DP??

??U??PROFIBUS-DP?キ??????DP??Ё???キPROFIBUS-DP?キ??????DP??Ё???キ?????8???????8???????????8I?8O?S500-O????????CPU???????U?CM572??????X5????????????DC5052.2?キ????+DC2V-??PLC?キ???????AB??????????C??? 5 C00ss:1.011???CPU????Ё?????????X522????CPU???????Ё?????CM572??PROFIBUS-DP???キ??ROBS-DP??Ё?????キDC505?D55???????????DI?DC??????)???????CPU???AX522?D5???DCV?? ???????????????????????2.CPU??????CPU????ッ??L+???M??????????Ё????????????????FE??????222AX52??????PED???????1.8???DC24V??ッ?PED????ッ?19???M??ッ???AX522??????ッ1.8?2.8?3.8?48??ッ?????1.9?2.9?3.9?4.9??ッ??????????????????????2.3DC505????????X522??2.4????COM1??????COM1?9?????????????????????AB??????????C??? 6 C00ss:1.011?? ????1riatrP2RxD/x-P3RxD/x-N4riatrN5S67GND8RxD9S

??R-485P?ッ??キ???ッ????ッ??;?キ?Ё????????R-485?????PR-485?????NR-485N?ッ??キ???ッ????ッ??;?キ?Ё????????R-232???(?)R-232???(?)???R-232???(?)R-232???(?)???????????作???????????ッ??120????ッ????????????????????????????ッ????????????キ??????ッ???????ッ?????????????キ?????ッ??ッ??????????????キ?????Ё????????ッ?????????????キ????Ё???ッ??????????Ё????????????ッ???????????????????????ッ??????〇??2.3????????????????????????????????⑤??????WR?????????PWR????IO??UP?????????⑤??????????????2.4ontrlBilerPls??Ё??????CrBulderPls2.1??????Ё??ā???????ā??????????????????に?Ё????????U?????????V2.1??Н?????????????AB??????????C??? 7 C00ss:1.011???????LC???????????乍?????????乍?????Н???????乍?????????????????U????C?キ?????????????乍???キ???????????キ???????咬??????Н??(乍????????????ā???ā?乍????????)????????????乍????????C?キ?????乍???????????Ё??ā????”??AB??????????C??? 8 C00ss:1.011??????乍?Ё????PLC?キ????ā????ā???Ё?????????????????????????ā????ā??????????AB??????????C??? 9 C00ss:1.011???乍?Ё?????????偸?????????C500M573-EHV2.1?C?キ?????乍????キ???????Ё?乍?????ModbusComBetweenCPUS???????キ????ComModbus_Sender?CoMob_S?ComModbus_Slave3??????????????AB??????????C??? 10 C00ss:1.011??乍??????oMbSen?キ??????????????????キ??????2.??????????AX522???に???に?Ё?????C?キЁ?“IO_Bus(I/O??)ā乍???????Ё??ā????ā???IO??Ё??????AB??????????C??? 11 C00ss:1.011??ā????ā??????IO??Ё??????????“AX522ā?????ā????ā?????“IO_Bus(I/O??)ā乍???????“AX522(AX522)ā??乍???????????????に???に????????????????????????????????????AB??????????C??? 12 C00ss:1.011??IO???????2.???????M?????キ????Ё?“Interfaces(??)ā??“+ā????乍??乍?????乍????“COM1_Online_Access(COM1-????)ā?“COM2_Online_Access(COM2-????)ā?“FBP_Online_Access(FBP-????)ā?????“COM1_Online_Access(COM1-????)ā?乍?????????Ё??ā????ā????????AB??????????C??? 13 C00ss:1.011?????CM?Ё?Н??????????Ё???????“COM1-ASCIIā???????AB??????????C??? 14 C00ss:1.011???НCOM1?AI?C1????????П??????????O1SI(COM1-ASCII)????に???に?Ё??COM1_ASCII???????????????AB??????????C??? 15 C00ss:1.011??COM1_ASCII????CoMos_Sener?キ??????? ??1????2 S???3 LS4 D5 ????6 ?????7 ?????8 ?????9 ???10 ???11 ???12 ???13 ???14 ??????

?????000???(????)216#0505?19200?81?

???咬?????RS-485?????乏??ā??”咬??咬??咬????Н???????????(????)?????????????????Н?????(0..255)??Н?????(0..65535)咬??咬??-????????Н??咬??-????????Н??咬??-????????Н??咬??-????????Н??咬??

???????R-485???R-485???R-485???R-485????????????????????г?????????乏???????乏???????乏???????乏???????乏???????????CoMob_S?キ??????? ??1????2 S???3 LS4 D5 ????6 ?????

?????000???(????)

???咬?????RS-485?????乏??ā??”咬??咬??咬????Н???????????(????)??????????

???????R-485???R-485???R-485???R-485????????????????????г??AB??????????C??? 16 C00ss:1.0117 ?????8 ?????9 ???10 ???11 ???12 ???13 ???14 ??????

216#0506?19200?81?

???????Н?????(0..255)??Н?????(0..65535)咬??咬??-????????Н??咬??-????????Н??咬??-????????Н??咬??-????????Н??咬??

?????????乏???????乏???????乏???????乏???????乏???????????CoMob_S?キ??????? ??1????2 S???3 LS4 D5 ????6 ?????7 ?????8 ?????9 ???10 ???11 ???12 ???13 ???14 ??????

?????000???(????)216#0507?19200?81?

???咬?????RS-485?????乏??ā??”咬??咬??咬????Н???????????(????)?????????????????Н?????(0..255)??Н?????(0..65535)咬??咬??-????????Н??咬??-????????Н??咬??-????????Н??咬??-????????Н??咬??

???????R-485???R-485???R-485???R-485????????????????????г?????????乏???????乏???????乏???????乏???????乏???????????2.??????DP?キ?DP?キ???Ё?CPU???????Ё?????CM572?CPU?????????CPU?0?CPU??????1???????2????3????4???????Ё?????????AB??????????C??? 17 C00ss:1.011??CPU????TA524_Slot1(????)??????1?????????????????????Ё?1?????????????????????????Ё??ā????ā?????ā????ā???Ё?????ribs乍??CM572????????AB??????????C??? 18 C00ss:1.011????CM-DP????CM572????????????“TA524_Slot1(????)ā???“CM572_DP(CM572-DP)ā?????????“CM572_Master(CM572-Master)ā??乍?????????“CM572_Master(CM572-Master)ā?乍?????????Ё??ā????”??乍?????ā????ā???Ё???ā?????Profibus?DP?キā??“PDP22-FBPDC505ā???ā????ā?DC505????DP??Ё?????????“CM572_Master(CM572-Master)ā乍????“PDP22-FBP_DC505(PDP22-FBPDC505)ā??乍?“PDP22-FBP_DC505(PDP22-FBPDC505)ā?乍???????“DC505_FBP(DC505_FBP)ā??乍??????????AB??????????C??? 19 C00ss:1.011??DP????????2.??????DP??????DP??Ё????Н???Ё??????????キ??Ё???催キ??????????????????咬?????“CM572_Master(CM572-Master)ā乍????に???に?Ё???キ???????????咬?????“PDP22-FBP_DC505(DP22-FBPDC505)ā乍????に???に?Ё???キ????????????āキ??ā???????咬?????キ???????????????????????????????????????????????10?Ь??????????????????AB??????????C??? 20 C00ss:1.011??????????2.??????PC?キ?P????????????C?キ????????????????C?キ?????P??????に???に?Ё?“Communication_modules(????)ā乍??“PM5x1_ETH_Onboard_Ethernet(PM5x1-ETH-?????)ā??????乍“IP_Settings(IP??)ā????に???に?Ё??IP????????????IP????IP?????????に????????????????????AB??????????C??? 21 C00ss:1.011??????????????????PLC?キ?????????????????に?Ё????????????????????MAC???????????????ID???IP??????IP??????偠??????????ā??IP??ā?ā???IP??ā????????????????IP???х?????????????????IP???????????????????????????????????????????????????????????????????????????????????????????????????????C?キ??????????????????キ??????Ё??????Ё?????P?C?キ?????????IP??????ā????”??????????AB??????????C??? 22 C00ss:1.011???P????????IP?????C?キ?IP?PLC?乏???????????????IP?????Ё??????IP?????ā????ā??????ā??????P?????C?????????????ā?????IP?????????????????????Ё??????????????????????????????????????偸???IP???????ā??IP??ā?ā???IP??”?????????????????????偸???????偸???CoMobs_S?キIP???1???CoMobave3?キ???2???AB??????????C??? 23 C00ss:1.011??ゴ??????????????????????????????????MobsASCII?????????????????????????????????????????????????????????????ッ??Н?????????ㄝ??????????????????????????????????????????????ED?????????????CC????????COM_SEND???CO_END(EN:=,COM:=,DA:=,EN:=,END_EN:=,END_CH=,DONE=>,ER=>,ENO>;???Н???? ????EN????CM????D????EN ????END_EN ????END_H ????DO ???? ????ENO ????

???? ??BOOL ???????????????????Y ????M?????Ё?1DORD ??ッ??????????Н???(array)????(struct)???DR??????WD ??????WD ???????????0?1?2WD ???????????BOOL ??????????true????false??????????????BOOL ????????????true????false???????DO????????O?true?ER???true??????????DO?true?ER???false?????????ERR??????????????????????WD ??????DONE?true?R???true?????????0?????Н?????????????????3.1CoModbs_Sender??????C?キ??DS??乍???Dss???????AB??????????C??? 24 C00ss:1.011??CoDesys????Ds????咬????に?????に??????????????義????“POUsā?“Datatypesā?“Visualizationsā?“Resourcesā??義??“POUsā??義Ё???????“AddObject…ā??乍??????“MyASCIISendā????(FunctionBlock)????????????????3.2????MyASCIIend???MyASCIISend???CO_END????????????????????????MyASCIISend???????Н??????FNCTOCKMySCISendR_NUTBEN:OO;EdtrWORD;END_RR

????????????????????Н??????НBOOL???B_E-?????НWD???Etr–?????????????Н????????Н????Mm :OM_END; ??НCO_ND??????(*??????-???乏?Y?MMbsSenata:Y[1..10]OFWORD;(??????)

??Н????Н??-??????????Н??CNOK:IN:; ??НINT??-????????????AB??????????C??? 25 C00ss:1.011CNErrCErrNOEND_R

:;IN;

??НINT??-????????????НINT??-???????????????Н?????ST??????????????????????????????????MMbSenData[].2MMbSenData[].3MMbSenData[].4MMbSenData[].5MMbSenData[].6MMbSenData[].7

:=%IX1.0.2;:=%IX1.0.3;:=%IX1.0.4;:=%IX1.0.5;:=%IX1.0.6;:=%IX1.0.7;?DC505??8??????????????????????????????????????????????????????????????????????MCComm(EN:=BEN,OMDA:D(MMobsenDaa),EN:=20,END_EN:2,END_CH=ESr,DONE=>,ER=>,ENO>;??????Ё?????????ED????????????Н??EN???????????FB_EN?????F???????COM?????1????Ё???C?MbsACSII???ッ??????COM2?????2?DATA???????????MbenDaa????EN?????20?????????????20???????END_LEN?????2?????????2??????????2??END_?????????EndStr????????????????????CoMobeキMbSeata????20??????????ESr???????キЁ??????????????FMASIICom.DONEHENMCoT??AB??????????C??? 26 C00ss:1.011CErrNO(?????)CNErrESECNOKEND_END_

ComN;:=SIINuErr+1;:=ANu+1;??????????????????CINuOK??????????ASCIINumErr??????????ASCIIErrNO????????CO_END???DONE?ERR?E???????????DOE?true?R?tre?????????ASCIINumErr?1???ENO???ErrNOЁ??DONE?true?R?false????????ASCIINumOK?1????????乏?????????????????????г???????????????3.3????PLCPRG????????(rra)P_Ё????????MACISe?????CI??????????Н???????G_RMASedTstACISn;MACISedTstWOCIen;END_R??⑤???MASISensONE(F_EN:=%IX1.0.0,EdSr:=16#0506;MAISedTstWO(F_EN:=%IX1.0.1,EdSr:=16#0507;

???????????????????Н??????MyASCIISend??????????MyASCIISend?????????????????Н????D5???%IX1.0.0?%IX1.01????????16#056?160507????????????????3.4????MyASCIRec???????ッ??????????????ッ??????????????MC?????????COM_REC????????????AB??????????C??? 27 C00ss:1.011?? ????EN????CM????D????DO ???? ????ENO ????EN ????

???? ??BOOL?????TRUE???Y ????M?????Ё?1DORD ??ッ??????????Н???(array)????(struct)???DR??????BOOL ??????????true????false??????????????BOOL ????????????true????false???????DO????????O?true?ER???true??????????DO?true?ER???false?????????ERR??????????????????????WD ??????DONE?true?R???true?????????0?????Н?????????????????WD ????????(????)???????????NC_OCKyIRecRCIo:MEC;MASIIDataAT%MW0.100:RY[1..10]OFORD;END_RST????m(EN:=RE,OMDA:=DR(yCIData),DOE=>,ER=>,ENO>,EN=>;%QX1.0.1:=MIIData[].1;%QX1.0.2:=MIIData[].2;%QX1.0.3:=MIIData[].3;%QX1.0.4:=MIIData[].4;%QX1.0.5:=MIIData[].5;%QX1.0.6:=MIIData[].6;%QX1.0.7:=MIIData[].7;

????????????????????Н???????MEC?????Н????-????????????????Н??佪????COM_REC?????????????????????????OM????????????????????????????????????????????????D5???????????????????3.5????PLCPRG??????AB??????????

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論