蓝月亮四肖四吗

技術文章

當前頁面: 首頁 >技術文章 >赫優信基于 netX90 實現 PROFINET 從站開發操作手冊

赫優信基于 netX90 實現 PROFINET 從站開發操作手冊

供稿:赫優信(上海)自動化系統貿易有限公司 2020/1/7 13:18:52

0 人氣:63

  • 關鍵詞: PROFINET netX90
  • 摘要:netX90 是基于 netX51/52 的成功開發的新一代網絡控制器,其安全性是產品的核心價值,可實現具有更高性能的集成,并提高功率效率等級。

blob.png

1.產品簡介

蓝月亮四肖四吗1.1 netX 90 JIESHAO

蓝月亮四肖四吗netX90 SHIJIYU netX51/52 DECHENGGONGKAIFADEXINYIDAIWANGLUOKONGZHIQI,QIANQUANXINGSHICHANPINDEHEXINJIAZHI,KESHIXIANJUYOUGENGGAOXINGNENGDEJICHENG,BINGTIGAOGONGLVXIAOLVDENGJI。ZAI netX90 SoCZHONGJICHENGLELIANGGEDULI CPU NEIHE ,QIZHONGYIGEYONGYUSHISHIGONGYETONGXUN,LINGYIGEKESHIXIANYONGHUYINGYONGCHENGXUDEKAIFA。ZHELIANGGE CPU ZHIJIANDESHUJUJIAOHURENGJIYUSHUANGDUANKOUNEICUN DPM JIEGOU,TONGYIDE API JIEKOU。GONGYETONGXUNXIEYIZHANYIKEJIAZAIGUJIAN(LFW)XINGSHITIGONG,JINGGUOQUANMIANDECESHIHEXIEYIYURENZHENG,YINGYONGCHENGXURUANJIANKAIFARENYUANNENGKUAISUDESHIXIANQUDONGDEYIZHIHEYINGYONGCHENGXUDEKAIFA。

blob.png

TU 1 netX90 XINPIANYINGJIANKUANGTU

WULUN netX 90 SHIZUOWEIDANXINPIANJIEJUEFANGAN,HUANSHIZUOWEIPEIYOU HOST CPU DETONGXUNXIECHULIQI,JIYUKEJIAZAIGUJIAN(LFW)XINGSHIDEXIEYIZHAN,DOUKEZUOWEIDANDUBUJIANDULIYUNXING。QIWAIBU HOST ZHUJIJIEKOU,BUJINNENGGOUMANZUGUOCHENG I/O SHUJUDATUNTULIANGDEGAOSUFANGWEN,TONGSHIMANZUWANGLUOTONGXUNZHOUQIDEJINGQUESHIZHONGTONGBU。

蓝月亮四肖四吗1.2 NXHX 90-JTAG JIESHAO

XHX 90-JTAG SHIHEYOUXUNJIYU netX90 XINPIANZIZHUYANFADEKAIFABAN,FANGBIANKEHUQIANQIPINGGUCESHI,BENWENCESHIYICIKAIFABANWEIZHU。

blob.png

TU 2 NXHX 90-JTAG YINGJIANKUANGTU

蓝月亮四肖四吗JIYU netX90 DEKAIFABAN NXHX 90-JTAG,ZHUYAOTEXING:

(1) ZHUJIJIEKOU:

  • ZUOWEIPEIYOU Host MCU TONGXUNCHULIQI:8 WEI/16 WEIDEBINGXING DPM MOSHI,2xSPI/SQI CHUANXING DPM MOSHI;

  • DANXINPIANJIEJUEFANGAN:16 bit SDRAM,YONGYUYITAIWANG PHY DE MII,DINGZHIHUAMOKUAIFANGAN。

(2) TONGGUO SPI/SQI WEICHUANXING DPM(SPM0)TIGONGEWAIDEZHUJIJIEKOUYINJIAO;

(3) YONGYUDIAOSHIDE JTAG MIPI-20 JIEKOU;

(4) YONGYU OpenOCD DEBANZAI JTAG-to-USB SHIPEIQI(FTDI)

蓝月亮四肖四吗(5) YONGYUZHENDUANHEXIAZAIXIEYIZHANGUJIANDEBANZAI UART-to-USB DESHIPEIQI(FTDI)

(6) Mini-B 型 USB 連接器用于通過 FTDI 進行 JTAG-to-USB 調試和UART-to-USB 用于診斷及固件下載;

(7) DAIYOU“Link”HE“Activity”LED DENGDELIANGGE RJ45 YITAIWANGJIEKOU

(8) NXHX CHUANTONGXIANCHANGZONGXIANMOKUAIDEJIEKOU(PROFIBUS、CANopen、DeviceNetHE CC-Link)

蓝月亮四肖四吗(9) 4MB DE SQI Flash

(10)RS-232 CHUANKOU

(11)JUYOU Biss、SSI HUO ENDat LIANJIEDEBIANMAQIJIEKOU

蓝月亮四肖四吗(12)MOSHUZHUANHUANQI(ADC)JIEKOU

(13)MMIO LIANJIE

(14)PEIZHIQIDONGMOSHI(Alternative boot mode HE Console mode)DEKAIGUANNXHX 90-JTAG KAIFABANYOUBUTONGDE Debug FANGSHI:

蓝月亮四肖四吗(1)JTAG-to-USB:LIANJIEKAIFABANSHANG Mini-USB JIEKOU(X1000),S701Switch1=OFF;

(2)External debugger:LIANJIEKAIFABANSHANG JTAG JIEKOU(X400),S701 Switch1=ON。

1.3 netX Studio CDT PEIZHIRUANJIAN

netX Studio CDT(C/C++KAIFAGONGJU)SHIYONGYU Hilscher netX SoC DEJIYUEclipse DEJICHENGKAIFAHUANJING,KEYONGYUYIXIAJUTICAOZUO:

  • DUIXIANGDINGYIHEYINGSHE

  •  SHEBEIPEIZHI

  • 蓝月亮四肖四吗CHUANGJIANCHANPINWENJIAN(GOUJIANGUOCHENG)

  • JIANGCHANPINWENJIANHEKEJIAZAIGUJIANXIAZAIDAOYINGJIANSHEBEI

  • LIXIANMONIHUOZAIXIANZHENDUAN

蓝月亮四肖四吗netX Studio CDT GONGJUDEYINGYONGFANWEIJINXIANYUJIYU netX DECONGSHUSHEBEI,HUOZHESHIYONGKEJIAZAIDEGUJIANJINXINGCAOZUO,GAIGONGJUZHUYAOYONGYUSHISHIYITAIWANGCONGZHANSHEBEIDEKAIFA。

blob.png

蓝月亮四肖四吗TU 3 netX Studio CDT JIEMIAN

SHIYONGZHEGEGONGJUKEYIDUI NXHX 90-JTAG KAIFABANJINXINGXIANGYINGDEPEIZHI,BINGDIAOSHI netX90 YINGYONGCHENGXU。

2.實驗準備

SHIYANSUOXUSHEBEI:

blob.png

3. 硬件連接

蓝月亮四肖四吗SHOUXIANZUOWEIDANXINPIANJIEJUEFANGANSHI,JIANG NXHX 90-JTAG KAIFABANLIANJIEDAODIANNAO,CAIYONGnetX Studio CDT DUIQIJINXINGPEIZHI。QILIANJIETURUXIATUTU 4 SUOSHI。

對 NXHX 90-JTAG 開發板進行配置之后,通過以太網口與主站 PLC蓝月亮四肖四吗 連接,然后創建 PLC 工程即可。

blob.png

TU 4 NXHX 90-JTAG KAIFABANYU PC LIANJIETU

ZUOWEIJIYU STM32 DEPEITAOXINPIANJIEJUEFANGANSHI,XUTONGGUO SPI/SQI JIEKOU,TIAOXIANLIANJIEDAO STM32 KAIFABANDE SPI JIEKOUSHANG,RUXIATUSUOSHI:

blob.png

TU 5 YU STM32 KAIFABANLIANJIETU

4. 軟件安裝

蓝月亮四肖四吗ANZHUANGPEIZHIRUANJIAN netX Studio CDT , SHUANGJIANZHUANGBAO netX Studio CDTV1.XXXX.X.XXXX xXX Setup.msi ZHIJIEANZHUANG,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 4 netX Studio CDT ANZHUANGJIEMIAN

KECANKAOWENDANG:netX Studio CDT-netX90 development GS 04 EN.pdfANZHUANGWAN netX Studio CDT RUANJIAN,GENJUDIANNAODESHEZHIHUICHUXIANANZHUANG USB DEJIEMIAN:

blob.png

TU 5 USB ANZHUANGJIEMIAN

蓝月亮四肖四吗DIANJI Install ANZHUANG USB QUDONG。

5. 單芯片解決方案實例介紹

netX90 ZUOWEIDANXINPIANJIEJUEFANGAN,JITONGSHICAIYONGNEIBUFUZE Communication HEApplication DENEIHE,LIANGGEHETONGGUO DPM JIANLILIANJIE。CISHI,ZHIXUYAOTONGGUO netX StudioCDT PEIZHI NXHX 90-JTAG BAN,RANHOU,TONGGUOYITAIWANGKOULIANJIEZHUZHAN PLC JIKEJIANLITONGXUN。

蓝月亮四肖四吗5.1 PEIZHI NXHX 90-JTAG BAN

蓝月亮四肖四吗TONGGUO miniUSB DUANKOU,JIANG NXHX 90-JTAG LIANJIEZHIDIANNAOJINXINGPEIZHI,XUSHEZHIKAIFABANSHANG S701 Switch1=OFF,BINGQIEQIDONGMOSHIWEI Stand boot Mode,SUOYI S400 Switch 5= OFF,Switch 6 = OFF。

(1)CHUANGJIANZHENGGEGONGCHENG

蓝月亮四肖四吗YINGJIANKAIFABANSHEZHIWANBIZHIHOU,DAKAI netX Studio CDT RUANJIAN,ZAIHUANYINGJIEMIANZHONGXUANZEOpen project , JINRUGONGCHENGWENJIANXUANZEJIEMIAN , XUANZEnetXStudio_PNSV5_simpleConfig_V2.1.0.0,DAKAI。

blob.png

TU 1 netX Studio CDT HUANYINGJIEMIAN

blob.png

TU 2 DAKAIGONGCHENGWENJIAN

蓝月亮四肖四吗DAORUGONGCHENGWENJIANZHIHOU,XUYAOXIANGOUJIANZHENGGEGONGCHENG,XUANZE Build,DIANJI Build Solution,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 3 XUANZE Build ZHENGGEGONGCHENG

blob.png

TU 4 Build GUOCHENG

蓝月亮四肖四吗(2)GOUJIAN Doxygen html WENDANG

XUANZE Doxygen,DIANJI Build Documentation,RUXIATUSUOSHI:

blob.png

TU 5 GOUJIAN Doxygen html WENJIAN

蓝月亮四肖四吗GOUJIANWAN Doxygen html WENJIANZHIHOU,ZAI Doc WENJIANJIAXIAHUIZIDONGSHENGCHENGYIGE Html WENJIANJIA,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 6 SHENGCHENG Html WENJIANJIA

蓝月亮四肖四吗(3)SHENGCHENGYINGJIANPEIZHIERJINZHIWENJIAN

蓝月亮四肖四吗ZAIHEYOUXUNTIGONGDEGONGCHENGWENJIANZHONG,BAOHANYINGJIANSHEZHIWENJIANDE xml WENDANG,KEZAI netXStudio CDT RUANJIANZHONGSHENGCHENGERJINZHIWENJIAN,ZAIDANXINPIANJIEJUEFANGANZHONG,XUYAOQIDONGNEIBU idpm,SUOYIXUYAOXUANZEhardware_config_idpm.xml,YOUJIANDIANJI Build Hardware ConfigurationMINGLING,RUXIATUSUOSHI:

blob.png

TU 7 SHENGCHENGERJINZHIGESHIYINGJIANPEIZHIWENJIAN

蓝月亮四肖四吗WENJIANSHENGCHENGWANBIZHIHOU,HUIDANCHUYIGEBAOCUNCHUANGKOU,SHOUXIANSHENGCHENGJIYU LMF DEPEIZHIWENJIAN,hardware_config_idpm.hwc,DIANJI OK JIKE,RUXIATUSUOSHI:

blob.png

TU 8 BAOCUNWENJIAN

蓝月亮四肖四吗BAOCUNGUOHOU,HUANHUIJIXUDANCHUCHUANGKOU,SHENGCHENGJIYU MFW DEERJINZHIYINGJIANPEIZHIWENJIAN,DIANJI OK BAOCUNJIKE,RUXIATUSUOSHI:

blob.png

TU 9 BAOCUNWENJIAN

蓝月亮四肖四吗(4)SHAOXIEYINGJIANPEIZHIWENJIANHEXIEYIZHANGUJIAN,DIANJI Tool,XUANZE Flasher,RUXIATUSUOSHI:

blob.png

TU 10 XUANZE Flasher GONGJU

蓝月亮四肖四吗HUOZHEKEYIZHIJIEDIANJISHANGCEDAOHANGLANDEXIAOSHANDIANANNIU,JINRUZHIHOU,HUIZIDONGSAOMIAOSUOLIANJIEDEKAIFABAN,RUXIATUSUOSHI:

blob.png

TU 11 SAOMIAOSHEBEI

SAOMIANDAOSHEBEIZHIHOU,DIANZE,DIANJI Next,JINRU Flasher,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 12 JINRU Flasher GONGJU

XUANZE Brower Project,XUANZEYINGJIANPEIZHIWENJIAN,YINBENCESHIXUANZEDE Loadable Firmware,SUOYIXUANZEYINGJIANPEIZHIWENJIANSHIXUANZE hardware_config_idpm.hwc,DIANJI OK JIKE:

blob.png

TU 13 XUANZEYINGJIANPEIZHIWENJIAN

XUANZEHAOYINGJIANPEIZHIWENJIANZHIHOU,Flash Type ZIDONGXUANZEWEI Internal Flash 01(COM),

DIANJI Write ANNIUJIKE:

blob.png

蓝月亮四肖四吗TU 14 SHAOLUYINGJIANPEIZHIWENJIAN

SHAOXIEHAOYINGJIANPEIZHIWENJIANHUITIAOCHUYIGEXUANZEKUANG,YINHUANYAOJIXUSHAOXIEXIEYIZHAN,DIANJI YesJIKE,RUXIATUSUOSHI:

blob.png

TU 15 XUANZEJIXUSHAOXIE

蓝月亮四肖四吗XUANZEXIEYIZHANWENJIAN X090D000.nxi,RUXIATUSUOSHI:

blob.png

TU 16 XUANZEXIEYIZHANWENJIAN

YUZHIQIANSHAOXIEYINGJIANPEIZHIWENJIANYIYANG,DIANJI Write JINXINGSHAOXIEJIKE,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 17 SHAOXIEXIEYIZHANWENJIAN

蓝月亮四肖四吗XIEYIZHANSHAOXIEWANBIZHIHOUYEHUICHUXIANYIGEXUANZEKUANG,YINSHAOXIEGONGZUOYIWANCHENG,DIANJIFOUJIKE,RUXIATUSUOSHI:

blob.png

TU 18 XUANZEWANCHENG

NXHX 90-JTAG PEIZHIGONGZUOYIWANCHENG。

5.2 DIAOSHIGONGCHENGWENJIAN

NXHX 90-JTAG 開發板完成之后,可以 netX Studio CDT 軟件中調試應用程序,首先,設置調試相關參數,點擊 Debug,選擇 Set Startup Target,以確定所要測試的為armv7em-none-eabi/4.9.3/netx90_app_iflash 如下圖所示:

blob.png

TU 19 XUANZESHEZHIDIAOSHICANSHU

蓝月亮四肖四吗DIANJI Start Debugging ZHIHOU,CHUXIANYIGE Debug Setting XUANZEKUANG,RUXIATUSUOSHI,XUANZEMUBIAOBANWEI NXHX-90,Debugger WEI NXHX-90 On-Board Debugger,DIANJI DebugJIKE。

blob.png

蓝月亮四肖四吗TU 20 SHEZHI Debug MUBIAO

ZAI Debug GUOCHENGZHONG,HUICHUXIANYIGEXUANZEKUANG,SHIFOUJIANGSHIFOUJIANGYINGYONGCHENGXUSHAOXIEZHI APPDUANDE Internal Flash ZHONG,XUANZE Yes JIKE,RUXIATUSUOSHI:

blob.png

TU 21 XUANZEKUANG

蓝月亮四肖四吗DIAOSHIWANCHENGZHIHOU,KEYIKANDAOYINGYONGCHENGXUYIJINGYUNXING,RUXIATUSUOSHI:

blob.png

TU 22 YUNXINGYINGYONGCHENGXU

5.3 TONGXUNCESHI

蓝月亮四肖四吗GUANYU NXHX 90-JTAG KAIFABANNEIBIANDESHEZHIYIJIYINGYONGCHENGXUDEDIAOSHIYIJINGWANCHENG,JIEXIALAIKEYIYUZHUZHANJIANLITONGXUN,BENWENXUANZE PROFINET ZHUZHANWEIXIMENZI PLC1200,ZAIBOTUZHONGWANCHENGZUTAI,CONGZHANSHEBEIMIAOSHUWENJIANKEYIZAI netX Studio CDT ZHONGFUZHICHULAI,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 23 XUANZE netX90 SHEBEIMIAOSHUWENJIAN

ZAIBOTUZHONG,CHUANGJIANZUTAIGONGCHENG,SHOUXIANJIANGCONGZHANSHEBEIMIAOSHUWENJIANDAORUBOTURUANJIAN,RANHOUCHUANGJIAN PN GONGCHENG,YIN netX90 DESHEBEIMIAOSHUWENJIANYUYINGYONGCHENGXUXIANGPIPEI,SUOYIWUXUJINXINGSHURUSHUCHUMOKUAIDESHEZHI,ZHIJIEJIANGPEIZHIXINXIXIAZAIDAO PLC JIKE。WANCHENGZHUANGZAIZHIHOU,KEJINXINGZAIXIANKANTONGXUNZHUANGTAI,RUXIATUSUOSHI,NXHX 90-JTAG YUXIMENZI PLC CHENGGONGJIANLITONGXUN。

blob.png

TU 24 YUZHUZHANJIANLITONGXUN

6.配有主 CPU 的解決方案實例介紹

netX90 KEZUOWEIPEIYOUZHU CPU DETONGXUNCHULIQI,ZHICAIYONGQINEIBUFUZETONGXUNDENEIHEYUNXINGXIEYIZHAN,ERBUSHIYONGYINGYONGCHENGXUNEIHE。BENWENZHONG,XUANZE STM32-F7 KAIFABANZUOWEIZHU CPU,CAIYONG netX90 JIYU STM32 DEYINGYONGANLIZUOWEIZHUYINGYONGCHENGXU,ZHUZHANWEIXIMENZI PLC JINXINGCESHI。

6.1 PEIZHI NXHX 90-JTAG KAIFABAN

PEIZHI NXHX 90-JTAG KAIFABANYU netX90 ZUOWEIDANXINPIANJIEJUEFANGANSHIDEBUZOUYIYANG,QIANMIANDI(1)(2)BUBUZAIZUOXIANGXIJIESHAO。netX90 ZUOWEIPEIYOUZHU CPU DETONGXUNCHULIQISHI,BUZAIQIYONGQINEIBU idpm,ERSHITONGGUO SPI DEFANGSHILIANJIEDAPEIZHUJI,SUOYIZAIYINGJIANPEIZHIZHONGYOUBUTONG,XUXUANZEhardware_config_spm.xml SHENGCHENGERJINZHIYINGJIANPEIZHIWENJIAN,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 25 XUANZEYINGJIANPEIZHI xml WENJIAN

blob.png

TU 26 DIANJISHENGCHENGMINGLING

SHENGCHENGERJINZHIWENJIANSHI,TONGYANGHUISHENGCHENGJIYU LFW HE MFW DELIANGGEERJINZHIWENJIAN,DOUDIANJIBAOCUNJIKE。RANHOUJIANGYINGJIANPEIZHIWENJIANHEXIEYIZHAN hardware_config_spm.hwc HEXIEYIZHANWENJIAN X090D000.nxi SHAOXIEDAOKAIFABAN,BINGJINXING Debug JIKE。

6.2.YUNXINGJIYU STM32 DEYINGYONGCHENGXU

ZAIXUANZEJIYUWAIBU CPU JINXINGTONGXUNCESHISHI,XUYAOTONGGUO SPI YINJIAO,YUZHU CPU JIANLILIANJIE。RANHOU,DAKAI System Workbench for STM32 RUANJIAN,XUANZESHANGCEDAOHANGLAN File→Import,DAORUGONGCHENGWENJIAN,RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 25 DAORUGONGCHENGWENJIAN

ZAITIAOCHUDEJIEMIANXUANZE Existing Projects into Workspace,RANHOUDIANJI Next,XUANZEJIANGWENJIANBAOCUNZAI STM32 GONGZUOQU。RUXIATUSUOSHI:

blob.png

蓝月亮四肖四吗TU 26 XUANZEJIANGWENJIANBAOCUN

RANHOUJINRUJUTIDEGONGCHENGWENJIANXUANXIANG,RUXIATUSUOSHI:

blob.png

TU 27 XUANZEWENJIAN

DIANJI Brown,GENJUXIANGYINGDELUJINGXUANZE STM32 WENJIANJIAZHONGDE Project,RUXIATUSUOSHI:

blob.png

TU 28 GONGCHENGWENJIAN

HEYOUXUNTIGONGDEZILIAOZHONGBAOHANDUOZHONGYITAIWANGSHILI,YONGHUKEGENJUZIJIDECESHIXUANZEXIANGYINGDEWENJIAN,BENWENCESHI PROFINET,SUOYIKEZHIXUANZE PROFINET GONGCHENGWENJIAN。BIANYIZHENGGEGONGCHENG,DIANJI Build→Build all,RUXIATUSUOSHI:

blob.png

TU 29 BIANYI

BIANYIHAOZHENGGEWENJIAN,JINRUCHENGXUDIAOSHIMOSHI,XUANZE Run→Debug,RUXIATUSUOSHI:

blob.png

TU 30 CHENGXUDIAOSHI

6.3 TONGXUNCESHI

蓝月亮四肖四吗YUDANXINPIANJIEJUEFANGANYIYANG,ZAIBOTURUANJIANZHONGCHUANGJIANZUTAIGONGCHENG,JINXINGTONGXUNCESHI,YOUXIATUKEJIAN,DANGYINGYONGCHENGXUYUNXINGQILAIZHIHOU,TONGXUNCHENGGONG,TONGSHICAIYONGCHUANKOUGONGJU Tera Term,KEYICHAKANYINGYONGCHENGXUDAYINXINXI,YIJIZHOUQISHUJUDEJIAOHUANQINGKUANG,RUXIATUSUOSHI:

blob.png

TU 31 TONGXUNCESHI

7. 總結

ZAIBENWENDECESHIZHONG,netX90 WULUNSHIZUOWEIDANXINPIANJIEJUEFANGANHUANSHIZUOWEIPEIYOUZHU CPUDETONGXUNCHULIQIJIEJUEFANGAN,ZAIHEYOUXUNTIGONGDEYINGYONGCHENGXUSHANGDOUKEYIFANGBIANKUAIJIEDESHIXIANPROFINET CONGZHANDEKAIFA。CIWAI,HEYOUXUNYETIGONGQITASHISHIYITAIWANGKAIFADEYINGYONGANLI,BIRU:EtherCAT Slave、Ethernet/IP Adapter、Open Modbus TCP DENG。

審核編輯(王靜)
更多內容請訪問 赫優信(上海)自動化系統貿易有限公司(http://c.like-img.com/?cid=35397)

SHOUJISAOMIAOERWEIMAFENXIANGBENYE

GONGKONGWANGAPPXIAZAIANZHUANG

 

我來評價

評價:
一般