WinCC V7.2 Modbus TCP 通讯

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

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

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

资源描述

ᑨ䰞䰞仈y07/2014WinCCV7.2ModbusTCP䙊䇟SimaticWinCCV7.2¤SiemensAGCopyrightyearAllrightsreservedⴞᖅ1㰑承........................................................................................................................32WinCC✛QuantumPLC抩帾.............................................................................32.1PLC兓㊐..................................................................................................32.2WinCC兓㊐..............................................................................................53WinCC✛PremiumPLC抩帾............................................................................143.1PLC兓㊐.................................................................................................143.2WinCC兓㊐.............................................................................................164WinCC✛䶻ₘ㡈ModbusTCPIP幍⮖抩帾........................................................183Copyright¤SiemensAGCopyrightyearAllrightsreserved1ᾲ䘠Ӿ⡸ᵜWinCCV7.0ᔰ࿻ˈWinCC᭟ᤱModbusTCP䙊䇟ˈWinCCѝⲴModbusTCP傡ࣘѫ㾱ᱟ䪸ሩᯭ㙀ᗧPLCᔰਁⲴˈ᭟ᤱⲴPLC㊫රྲл˖മ1ᵜ᮷ẓԕQuantumCPU651઼PremiumP57Ѫֻˈӻ㓽WinCCV7.2ⲴModbusTCP䙊䇟Ⲵ㓴ᘱ↕僔DŽᒦ൘ᴰਾࡇࠪWinCC઼ㅜйᯩModbusTCP䇮༷䙊䇟Ⲵ⌘᜿һ亩DŽ2WinCC઼QuantumPLC䙊䇟2.1PLC㓴ᘱ2.1.1⺜Ԧ䝽㖞൘PLCⲴ㕆〻䖟ԦUnityProѝ᤹ྲл䝽㖞⺜Ԧ˖മ24Copyright¤SiemensAGCopyrightyearAllrightsreservedമ32.1.2㖁㔌䝽㖞൘䙊䇟Æ㖁㔌лࡋᔪᯠ㖁㔌˖മ4ৼࠫᯠᔪⲴ㖁㔌ˈ䝽㖞IPൠ൰৺㖁㔌㊫ර˖മ5൘⺜Ԧ䝽㖞ѝˈѪCPUкⲴԕཚ㖁ਓ࠶䝽㖁㔌˖5Copyright¤SiemensAGCopyrightyearAllrightsreservedമ62.1.3ࡋᔪᮠᦞ㺘QuantumPLCᇴᆈಘ㕆൰Ӿ1ᔰ࿻ˈоModbusൠ൰Ⲵሩᓄޣ㌫Ѫ˖%mሩᓄ0X,%iሩᓄ1X,%iwሩᓄ3x,%mwሩᓄ4xDŽֻྲ˖%i1ሩᓄ100001;%mሩᓄ000001;%iw1ሩᓄ300001;%mw1ሩᓄ400001DŽമ72.2WinCC㓴ᘱ2.2.1㓴ᘱ䘎᧕ਣ䭞Āਈ䟿㇑⨶ā䘹ᤙĀᢃᔰā˖6Copyright¤SiemensAGCopyrightyearAllrightsreservedമ8മ9ਣ䭞“ModbusTCP/IPUnit#1ā䘹ᤙĀᯠᔪ䘎᧕ā˖7Copyright¤SiemensAGCopyrightyearAllrightsreservedമ10ѪᯠᔪⲴ䘎᧕ભ਽ˈᒦਣ䭞Ā䘎᧕৲ᮠāˈ䇮㖞䘎᧕኎ᙗ˖മ11മ128Copyright¤SiemensAGCopyrightyearAllrightsreservedCPU㊫ර˖н਼CPUⲴᆇ઼սⲴޣ㌫ǃᇴᆈಘ䎧࿻ൠ൰ᆈ൘н਼ˈᡰԕ䘹ᤙн਼ⲴCPU㊫රˈWinCCਈ䟿ൠ൰䇮ᇊ৺ᮠᦞ༴⨶ՊᴹӋн਼DŽ䘉䟼䘹ᤙ“CompactˈQuantumˈMomentumāDŽᴽ࣑ಘ˖PLC֌ѪModbusTCP䙊䇟Ⲵᴽ࣑ಘˈWinCC֌ѪᇒᡧᵪDŽ䘉䟼䗃ޕPLCⲴԕཚ㖁IPൠ൰DŽㄟਓ˖ModbusTCP䙊䇟唈䇔ㄟਓѪ502䘌〻ӾㄉⲴൠ൰˖֯⭘ẕ᧕ಘ˄ֻྲMB+ࡠModbusTCPIP˅ᰦˈ↔༴䗃ޕ䘌〻᧗ࡦಘⲴӾㄉൠ൰DŽྲ᷌ᵚ֯⭘ẕ᧕ಘˈࡉᗵ享䗃ޕ唈䇔٬255ᡆ0֌Ѫൠ൰DŽ䖜ᦒᆇ㊫රᮠᦞѪ16սᮠ٬˖↔༴㘫䈁ᴹ⛩䰞仈ˈᓄ䈕ѪĀӔᦒ32ս٬ѝⲴᆇ”(Swapwordsin32-bitvalues)DŽമ13↔䘹ᤙਚᖡ૽Āᴹㅖਧ32սᮠ”“ᰐㅖਧ32սᮠā઼Ā⎞⛩ᮠ32սIEEE754āй⿽ᮠᦞ㊫රDŽ䘎᧕ᯭ㙀ᗧPLCᰦˈ↔༴н㾱䘹ᤙDŽ2.2.2ࡋᔪਈ䟿“ModbusTCPIPā䙊䚃᭟ᤱԕлᮠᦞ㊫ර˖Ҽ䘋ࡦਈ䟿ǃᴹㅖਧ16սᮠǃᰐㅖਧ16սᮠǃᴹㅖਧ32սᮠǃᰐㅖਧ32սᮠǃ⎞⛩ᮠ32սIEEE754ǃ᮷ᵜਈ䟿8սᆇㅖ䳶ǃ᮷ᵜਈ䟿16սᆇㅖ䳶DŽ൘Modbus䘎᧕лࡋᔪԕлਈ䟿˖9Copyright¤SiemensAGCopyrightyearAllrightsreservedമ14ަѝ“tag_i01āൠ൰%i1ˈሩᓄmodbusൠ൰100001˖മ15“tag_m1āൠ൰%m1ˈሩᓄmodbusൠ൰000001˖മ16“tag_iw1āൠ൰%iw1ˈሩᓄmodbusൠ൰300001˖മ17“tag_mw1āൠ൰%mw1ˈሩᓄmodbusൠ൰400001˖മ1810Copyright¤SiemensAGCopyrightyearAllrightsreserved2.2.3䘀㹼㔃᷌л䖭亩ⴞࡠPLCˈᢃᔰunitypro亩ⴞѝⲴᮠᦞ㺘ˈ൘㓯ⴁ㿶PLCਈ䟿Ⲵ٬˖മ19䘀㹼WinCC˖മ20൘WinCCѝ؞᭩ਈ䟿Ⲵ٬˖മ21PLCⲴᮠ٬ਁ⭏⴨ᓄਈॆ˖11Copyright¤SiemensAGCopyrightyearAllrightsreservedമ222.2.4᤹ս䇯䰞ᆇᇴᆈಘWinCCҼ䘋ࡦਈ䟿ൠ൰ਟԕ䇮ᇊѪ4x(ᡆ㘵3x)ⲴḀаսˈֻྲ˖മ23ޣҾ䘉⿽䇯䰞ᯩᔿˈᴹє⛩䴰㾱⌘᜿˖1ǃսоᆇⲴޣ㌫QuantumPLCǃWinCCModbusѝⲴսоᆇⲴሩᓄޣ㌫ྲл㺘˖㺘12ǃሩҾ߉᫽֌൘ᴤ᭩ᤷᇊսਾˈᮤњᆇሶ߉എPLCDŽնᵏ䰤ᒦнỰḕᆇѝⲴަᆳսᱟ੖ᐢ᭩ਈDŽ2.2.5ᇎᮠǃ32սᮤᮠਈ䟿PLCѝⲴDINT઼REALਈ䟿˖12Copyright¤SiemensAGCopyrightyearAllrightsreservedമ24WinCCࡋᔪ⴨ᓄਈ䟿˖മ25䘀㹼WinCC˖മ262.2.6ModbusTCPIPᆇㅖѢਈ䟿ࡋᔪྲлⲴᆇㅖѢਈ䟿˖മ2713Copyright¤SiemensAGCopyrightyearAllrightsreserved䘀㹼˖മ28൘unityproᮠᦞ㺘ѝⴁ㿶˄ᢺᱮ⽪Ṭᔿ᭩ѪASCII˅˖മ2914Copyright¤SiemensAGCopyrightyearAllrightsreserved3WinCC઼PremiumPLC䙊䇟3.1PLC㓴ᘱ3.1.1⺜Ԧ䝽㖞൘PLCⲴ㕆〻䖟ԦUnityProѝ᤹ྲл䝽㖞⺜Ԧ˖മ30മ313.1.2㖁㔌䝽㖞൘䙊䇟Æ㖁㔌лࡋᔪᯠ㖁㔌ˈᒦ䝽㖞㖁㔌IPൠ൰৺㖁㔌㊫ර˖15Copyright¤SiemensAGCopyrightyearAllrightsreservedമ32൘⺜Ԧ䝽㖞ѝˈѪԕཚ㖁ਓ࠶䝽㖁㔌˖മ3316Copyright¤SiemensAGCopyrightyearAllrightsreservedPremiumPLCਚ᭟ᤱ0x઼4xˈҏቡᱟModbusTCPIPᇒᡧㄟਚ㜭䈫ਆPremiumPLCⲴ%m઼%mw४DŽਖཆˈPremiumPLCⲴ਴ᇴᆈಘ㕆൰Ӿ0ᔰ࿻DŽമ343.2WinCC㓴ᘱ3.2.1ࡋᔪ䘎᧕൘ModbusTCPIPлᯠᔪ䘎᧕ˈ䘹ᤙCPU㊫රѪ“Premium,Microā˖മ35മ3617Copyright¤SiemensAGCopyrightyearAllrightsreserved3.2.2ࡋᔪਈ䟿൘WinCCѝࡋᔪਈ䟿ˈਈ䟿ൠ൰ѝⴤ᧕䗃ޕሩᓄⲴൠ൰ˈ㘼нᱟModbusḷ߶ൠ൰DŽമ37മ38䘉䟼䴰㾱䈤᰾є⛩˖㲭❦PremiumPLCਚ᭟ᤱ0x઼4xˈնCPU㊫ර䘹ᤙ“Premium,MicroāᰦˈWinCCModbusTCPIP傡ࣘҏਟԕ䈫ਆ1x઼3x㊫රⲴᮠᦞ˄䘎᧕ㅜйᯩModbusTCPIP䇮༷ᰦ˅DŽPremiumPLC਴ᆈۘಘൠ൰Ӿ0ᔰ࿻㕆൰ˈᒦфWinCCਈ䟿ൠ൰ሩᓄⲴᱟPLCⲴⴤ᧕ൠ൰ˈնަ઼ḷ߶ModbusҏᱟሩᓄⲴDŽֻྲ%m0ሩᓄ000001ˈ%mw0ሩᓄ400001DŽWinCCᡰᴹਈ䟿ࡋᔪྲл˖മ3918Copyright¤SiemensAGCopyrightyearAllrightsreserved3.2.3䘀㹼WinCC˖മ404WinCC઼ㅜйᯩModbusTCPIP䇮༷䙊䇟ᖃ֯⭘WinCC઼ㅜйᯩModbusTCPIP䇮༷䙊䇟ᰦˈ䴰㾱⌘᜿ԕлєᯩ䶒˖4.1ǃWinCC֯⭘ⲴModbus࣏㜭⸱ྲл㺘ᡰ⽪˖㺘219Copyright¤SiemensAGCopyrightyearAllrightsreserved4.2ǃWinCCModbusTCPIPѝ਴CPU㊫රⲴ४࡛ৼᆇǃᆇǃսⲴޣ㌫ᖃ൘䘎᧕৲ᮠѝ⋑ᴹ䘹ᤙ“Swapwordsin32-bitvaluesāᰦˈн਼CPU㊫රⲴৼᆇǃᆇǃսѻ䰤Ⲵޣ㌫ྲл˖984઼Compact,QuantumˈMomentum˖㺘3Premium,Micro˖㺘4WinCCModbusTCPIP傡ࣘሶ᤹➗ԕкޣ㌫ᶕ༴⨶䈫ࡠⲴᆇ઼սDŽᖃ൘䘎᧕৲ᮠѝ䘹ᤙ“Swapwordsin32-bitvaluesāᰦˈWinCCՊ⴨ᓄӔᦒ儈ᆇ઼վᆇⲴ亪ᒿѻਾ޽䍻٬㔉ሩᓄⲴৼᆇਈ䟿˄वᤜᇎᮠ˅DŽ

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

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

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

×
保存成功