用LabVIEW程式控制三菱PLC FX-2N

以下系列文章為最近才整理完畢,專門探討如何用LabVIEW程式來控制三菱PLC FX-2N的動作及讀取寫入資料。建議有興趣者最好也具備PLC程式的基礎知識,以免看不懂我在寫什麼。

因為文章很長加上有大量圖片,文章是放在部落格中。文章的主要內容程式都經過長時間測試除錯,保證可正確執行。

另外用的圖片是把程式中關於PLC通訊的部份分離出來說明,原始的程式是公司財產不要找我索取。若要轉貼文章請先通知。

用LabVIEW計算三菱PLC FX-2N單一元件通訊用位址
http://tw.myblog.yahoo.com/liu-yunan/article?mid=56&prev=100&l=f&fid=9

用LabVIEW計算三菱PLC FX-2N元件群組通訊用位址
http://tw.myblog.yahoo.com/liu-yunan/article?mid=100&prev=105&next=56&l=f&fid=9

用LabVIEW計算三菱PLC FX-2N字元群組通訊用位址
http://tw.myblog.yahoo.com/liu-yunan/article?mid=105&prev=190&next=100&l=f&fid=9

用LabVIEW控制三菱FX-2N PLC單點ON/OFF
http://tw.myblog.yahoo.com/liu-yunan/article?mid=325&prev=349&next=190&l=f&fid=9

用LabVIEW控制三菱FX-2N PLC多點監控及資料讀取
http://tw.myblog.yahoo.com/liu-yunan/article?mid=349&prev=359&next=325&l=f&fid=9

用LabVIEW控制三菱FX-2N PLC多點ON/OFF及資料寫入
http://tw.myblog.yahoo.com/liu-yunan/article?mid=359&next=349&l=f&fid=9

有這些資料,以後如果遇到FX系列的PLC就可以直接拿來使用了。

謝謝liuyunan的無私分享...

謝謝分享,已將此文加入星號標記

Dear sir

          是否方便將圖片面放大,因為圖片太小看不清楚.

真是太棒了!感謝您無私的分享

樓上劉大附上labview與Plc溝通程式.((如何用LabVIEW程式來控制三菱PLC FX-2N )))….

我送上三菱FX2N,,,FX2NC系列编程手册,免得大家花大部分時間到其它網路上找這方面的資料。。

三菱FX2N_FX2NC系列编程手册.part1.rar

三菱FX2N_FX2NC系列编程手册.part2.rar

三菱FX2N_FX2NC系列编程手册.part3.rar

三菱FX2N_FX2NC系列编程手册.part4.rar

三菱FX2N_FX2NC系列编程手册.part5.rar

xiehaifeng40071.0304861111

FX2N系列通訊手冊==》三菱PLC使用者手冊[通訊篇]

在Liuyunan大大部落格有講,“網路上的電子書可找到三菱PLC使用者手冊[通訊篇],目前只有英文和簡體中文”,我找了好久,在穀歌裡找到了這本電子版的FX2N系列通訊手冊,因為體積比較大,上傳需要很長時間,所以我給以後需要下載的網友附上下載位址.<!–[if gte mso 9]><>
<w:word>
<w:view>Normal</w:view>
<w:zoom>0</w:zoom>
<w:trackmoves/>
<w:trackatting/>
<w:punctuationkerning/>
<w:drawinggridverticalspacing>7.8 磅</w:drawinggridverticalspacing>
<w:displayhorizontaldrawinggridevery>0</w:displayhorizontaldrawinggridevery>
<w:displayverticaldrawinggridevery>2</w:displayverticaldrawinggridevery>
<w:validateagainstschemas/>
<w:saveifinvalid>false</w:saveifinvalid>
<w:ignoremixedcontent>false</w:ignoremixedcontent>
<w:alwaysshowplaceholdertext>false</w:alwaysshowplaceholdertext>
<w:donotpromoteqf/>
<w:lidthemeother>EN-US</w:lidthemeother>
<w:lidthemeasian>ZH-CN</w:lidthemeasian>
<w:lidthemecomplex>TH</w:lidthemecomplex>
<w:compatibility>
<w:spaceforul/>
<w:balancesinglebytedoublebytewidth/>
<w:donotleavebackslashalone/>
<w:ultrailspace/>
<w:donotexpandshiftreturn/>
<w:adjustlineheightintable/>
<w:breakwrappedtables/>
<w:snaptogridincell/>
<w:applybreakingrules/>
<w:wraptextwithpunct/>
<w:useasianbreakrules/>
<w:dontgrowautofit/>
<w:splitpgbreakandark/>
<w:dontvertaligncellwithsp/>
<w:dontbreakconstrainedforcedtables/>
<w:dontvertalignintxbx/>
<w:word11kerningpairs/>
<w:cachedcolbalance/>
<w:usefelayout/>
</w:compatibility>
<w:browserlevel>MicrosoftInternetExplorer4</w:browserlevel>
<m:mathpr>
<m:mathfont m:val=“cambria math”/>
<m:brkbin m:val=“before”/>
<m:brkbinsub m:val=“–”/>
<m:smallfrac m:val=“off”/>
<m:dispdef/>
<m:lmargin m:val=“0”/>
<m:rmargin m:val=“0”/>
<m:defjc m:val=“centergroup”/>
<m:wrapindent m:val=“1440”/>
<m:intlim m:val=“subsup”/>
<m:narylim m:val=“undovr”/>
</m:mathpr></w:word>
</><![endif]–>

<!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.5pt; mso-bidi-font-size:14.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Cordia New"; mso-bidi-theme-font:minor-bidi; mso-font-kerning:1.0pt;}

<![endif]–> 這本通訊手冊對labviewFx-2N寫程式有幫助
http://down.gkooo.com/FX/3.rar


xiehaifeng40079.0646875

楼主的链接地址怎么都打不开啊?想学习一下,最好能直接贴在这里,谢谢了!

[QUOTE=tulipmah]楼主的链接地址怎么都打不开啊?想学习一下,最好能直接贴在这里,谢谢了![/QUOTE]
<!–[if gte mso 9]><>
<w:word>
<w:view>Normal</w:view>
<w:zoom>0</w:zoom>
<w:trackmoves/>
<w:trackatting/>
<w:punctuationkerning/>
<w:drawinggridverticalspacing>7.8 磅</w:drawinggridverticalspacing>
<w:displayhorizontaldrawinggridevery>0</w:displayhorizontaldrawinggridevery>
<w:displayverticaldrawinggridevery>2</w:displayverticaldrawinggridevery>
<w:validateagainstschemas/>
<w:saveifinvalid>false</w:saveifinvalid>
<w:ignoremixedcontent>false</w:ignoremixedcontent>
<w:alwaysshowplaceholdertext>false</w:alwaysshowplaceholdertext>
<w:donotpromoteqf/>
<w:lidthemeother>EN-US</w:lidthemeother>
<w:lidthemeasian>ZH-CN</w:lidthemeasian>
<w:lidthemecomplex>TH</w:lidthemecomplex>
<w:compatibility>
<w:spaceforul/>
<w:balancesinglebytedoublebytewidth/>
<w:donotleavebackslashalone/>
<w:ultrailspace/>
<w:donotexpandshiftreturn/>
<w:adjustlineheightintable/>
<w:breakwrappedtables/>
<w:snaptogridincell/>
<w:applybreakingrules/>
<w:wraptextwithpunct/>
<w:useasianbreakrules/>
<w:dontgrowautofit/>
<w:splitpgbreakandark/>
<w:dontvertaligncellwithsp/>
<w:dontbreakconstrainedforcedtables/>
<w:dontvertalignintxbx/>
<w:word11kerningpairs/>
<w:cachedcolbalance/>
<w:usefelayout/>
</w:compatibility>
<w:browserlevel>MicrosoftInternetExplorer4</w:browserlevel>
<m:mathpr>
<m:mathfont m:val=“cambria math”/>
<m:brkbin m:val=“before”/>
<m:brkbinsub m:val=“–”/>
<m:smallfrac m:val=“off”/>
<m:dispdef/>
<m:lmargin m:val=“0”/>
<m:rmargin m:val=“0”/>
<m:defjc m:val=“centergroup”/>
<m:wrapindent m:val=“1440”/>
<m:intlim m:val=“subsup”/>
<m:narylim m:val=“undovr”/>
</m:mathpr></w:word>
</><![endif]–>

<!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.5pt; mso-bidi-font-size:14.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Cordia New"; mso-bidi-theme-font:minor-bidi; mso-font-kerning:1.0pt;}

<![endif]–>

不知道你說的那個連結位址打不開,請PO上來。我剛剛試了全部的連結位址,可正常。包Liuyuan大大的。不知道你的意思是。。。。。。?????


xiehaifeng40084.6185763889

不好意思,先跟liuyunan說聲抱歉,現在才看到轉貼要先告之,我有轉貼到以下NI論壇

http://forums.ni.com/t5/LabVIEW/Mitsubishi-FX-thru-LabVIEW/m-p/1187397#M513560

因應YAHOO部落格關站,相關文章搬移到下列新網址
http://liuyunantw.pixnet.net/blog/category/3496742
圖片點選可直接連到相簿看放大的圖片

感謝各位先進!! 這樣一來往後對於PLC控制有更豐富的資源

為什麼

所有連結
我點了  都直接 進入YAHOO的首頁
看不到文章........

[QUOTE=KINGJACK]為什麼

所有連結
我點了  都直接 進入YAHOO的首頁
看不到文章........
[/QUOTE]
在11樓有說明.....

不知大大有用過Fx3u的嗎

[QUOTE=Derekfrat]不知大大有用過Fx3u的嗎[/QUOTE]


程式有在FX-3U測試過,可以通用

可否求範例

如何設定

謝謝分享!收益良多。

我想請問,NI-AMX 有抓到PLC 的COM1  , NI-OPC也有抓到CO1,為甚麼上範例VISA 抓不到,我也照著 PLC-LabVIEW圖型監控這本書做範例,VISA一樣也抓不到PLC COM1